This commit is contained in:
Andrey Z 2021-07-07 20:11:54 +03:00
parent 66f1c4807c
commit 7a2291436a
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,6 @@
<?xml version='1.0' encoding='utf8'?>
<yandex>
<kerberos>
<realm>EXAMPLE.COM</realm>
</kerberos>
</yandex>
</yandex>

View File

@ -170,7 +170,7 @@ def check_wrong_config(self, node, client, config_path, modify_file, log_error="
config_contents = xmltree.tostring(root, encoding='utf8', method='xml').decode('utf-8')
command = f"cat <<HEREDOC > {full_config_path}\n{config_contents}\nHEREDOC"
node.command(command, steps=False, exitcode=0)
# time.sleep(1)
time.sleep(1)
with Then(f"{preprocessed_name} should be updated", description=f"timeout {timeout}"):
started = time.time()
@ -183,6 +183,7 @@ def check_wrong_config(self, node, client, config_path, modify_file, log_error="
assert exitcode == 0, error()
with When("I restart ClickHouse to apply the config changes"):
node.cmd("kdestroy")
if output:
node.restart(safe=False, wait_healthy=True)
else:
@ -201,7 +202,7 @@ def check_wrong_config(self, node, client, config_path, modify_file, log_error="
break
time.sleep(1)
else:
assert False, error()
assert output in r.output, error()
finally:
with Finally("I restore original config"):