mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 18:02:24 +00:00
Automatic style fix
This commit is contained in:
parent
b512997e50
commit
fad3f2ff00
@ -1,7 +1,7 @@
|
||||
from enum import Enum
|
||||
import random
|
||||
import string
|
||||
import time
|
||||
from enum import Enum
|
||||
|
||||
import pytest
|
||||
|
||||
@ -10,18 +10,12 @@ from helpers.cluster import ClickHouseCluster
|
||||
cluster = ClickHouseCluster(__file__)
|
||||
good = cluster.add_instance(
|
||||
"good",
|
||||
main_configs=[
|
||||
"config/users.xml",
|
||||
"config/good_script.xml"
|
||||
],
|
||||
main_configs=["config/users.xml", "config/good_script.xml"],
|
||||
stay_alive=True,
|
||||
)
|
||||
bad = cluster.add_instance(
|
||||
"bad",
|
||||
main_configs=[
|
||||
"config/users.xml",
|
||||
"config/bad_script.xml"
|
||||
],
|
||||
main_configs=["config/users.xml", "config/bad_script.xml"],
|
||||
stay_alive=True,
|
||||
)
|
||||
|
||||
@ -43,14 +37,20 @@ def test_startup_execution_state(start_cluster):
|
||||
STATE_SUCCESS = 1
|
||||
STATE_FAILURE = 2
|
||||
|
||||
assert int(
|
||||
good.query(
|
||||
"SELECT value FROM system.metrics WHERE metric = 'StartupScriptsExecutionState'"
|
||||
).strip()
|
||||
) == STATE_SUCCESS
|
||||
assert (
|
||||
int(
|
||||
good.query(
|
||||
"SELECT value FROM system.metrics WHERE metric = 'StartupScriptsExecutionState'"
|
||||
).strip()
|
||||
)
|
||||
== STATE_SUCCESS
|
||||
)
|
||||
|
||||
assert int(
|
||||
bad.query(
|
||||
"SELECT value FROM system.metrics WHERE metric = 'StartupScriptsExecutionState'"
|
||||
).strip()
|
||||
) == STATE_FAILURE
|
||||
assert (
|
||||
int(
|
||||
bad.query(
|
||||
"SELECT value FROM system.metrics WHERE metric = 'StartupScriptsExecutionState'"
|
||||
).strip()
|
||||
)
|
||||
== STATE_FAILURE
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user