From dd7deab33d0974538de37d8662535cb10a23f721 Mon Sep 17 00:00:00 2001 From: Lukas Hellebrandt Date: Thu, 5 Dec 2024 15:23:14 +0100 Subject: [PATCH] Fix an assert in RHSSO test --- 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()