diff --git a/tests/integration/test_structured_logging_json/test.py b/tests/integration/test_structured_logging_json/test.py index 313fd0e205d..6d1455f6e0e 100644 --- a/tests/integration/test_structured_logging_json/test.py +++ b/tests/integration/test_structured_logging_json/test.py @@ -37,14 +37,14 @@ def validate_log_level(config, logs): key = root.findtext(".//names/level") or "level" valid_level_values = { - "Fatal", - "Critical", - "Error", - "Warning", - "Notice", - "Information", - "Debug", - "Trace", + "Fatal", + "Critical", + "Error", + "Warning", + "Notice", + "Information", + "Debug", + "Trace", "Test", } @@ -102,9 +102,11 @@ def validate_logs(logs): def valiade_everything(config, node, config_type): node.query("SELECT 1") logs = node.grep_in_log("").split("\n") - return validate_logs(logs) and validate_log_config_relation( - config, logs, config_type - ) and validate_log_level(config, logs) + return ( + validate_logs(logs) + and validate_log_config_relation(config, logs, config_type) + and validate_log_level(config, logs) + ) def test_structured_logging_json_format(start_cluster):