From dce77b5679a43b25d7f74a1fbbd56634354baa32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hellebrandt?= Date: Fri, 6 Dec 2024 11:31:42 +0100 Subject: [PATCH] Fix an assert in RHSSO test (#17089) (cherry picked from commit 27b62313217d3de25c67f9f8cad6b26d1ebdbb5f) --- tests/foreman/destructive/test_ldapauthsource.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/foreman/destructive/test_ldapauthsource.py b/tests/foreman/destructive/test_ldapauthsource.py index 8718b44cb87..d9e4dd50413 100644 --- a/tests/foreman/destructive/test_ldapauthsource.py +++ b/tests/foreman/destructive/test_ldapauthsource.py @@ -69,7 +69,10 @@ def test_rhsso_login_using_hammer( result = module_target_sat.cli.Auth.with_user( username=settings.rhsso.rhsso_user, password=settings.rhsso.rhsso_password ).status() - assert f"Session exists, currently logged in as '{settings.rhsso.rhsso_user}'." in result + assert ( + f"Session exists, currently logged in as '{settings.rhsso.rhsso_user}'." + in result[0]['message'] + ) task_list = module_target_sat.cli.Task.with_user( username=settings.rhsso.rhsso_user, password=settings.rhsso.rhsso_password ).list()