Fixed regexp in test_match_process_uid_against_data_owner.

This commit is contained in:
Vladimir Chebotaryov 2022-07-11 07:39:03 +03:00
parent 07210c7b55
commit 39edbeba35

View File

@ -33,7 +33,7 @@ def test_different_user(started_cluster):
node.start_clickhouse(start_wait_sec=3) node.start_clickhouse(start_wait_sec=3)
log = node.grep_in_log("Effective") log = node.grep_in_log("Effective")
expected_message = "Effective user of the process \(.*\) does not match the owner of the data \(.*\)\. Run under 'sudo -u .*'\." expected_message = "Effective user of the process (.*) does not match the owner of the data (.*)\\. Run under 'sudo -u .*'\\."
if re.search(expected_message, log) is None: if re.search(expected_message, log) is None:
pytest.fail( pytest.fail(
'Expected the server to fail with a message "{}", but the last message is "{}"'.format( 'Expected the server to fail with a message "{}", but the last message is "{}"'.format(