From 8bdacac9b7b7f926f700db909e845cb57af838ab Mon Sep 17 00:00:00 2001 From: Patrik Rosecky Date: Wed, 16 Aug 2023 11:30:55 +0200 Subject: [PATCH] Test: sssctl config-check: typo in option value --- src/tests/system/tests/test_sssctl_config_check.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/tests/system/tests/test_sssctl_config_check.py b/src/tests/system/tests/test_sssctl_config_check.py index 202ac3df199..81211534b89 100644 --- a/src/tests/system/tests/test_sssctl_config_check.py +++ b/src/tests/system/tests/test_sssctl_config_check.py @@ -112,6 +112,4 @@ def test_sssctl_config_check__typo_option_value(client: Client): result = client.sssctl.config_check() assert result.rc != 0, "Config-check did not detect misconfigured config" - - pattern = re.compile(r"Attribute 'id_provider' in section 'domain/local' has an invalid value: wrong value*") - assert pattern.search(result.stdout), f"Wrong error message was returned: {result.stdout}" + assert "Attribute 'id_provider' in section 'domain/local' has an invalid value: wrong value" in result.stdout_lines[1]