From 50a2674350a9626137abc00de852f94c72d94a24 Mon Sep 17 00:00:00 2001 From: Peter Ondrejka Date: Wed, 24 Jan 2024 17:03:19 +0100 Subject: [PATCH] fix in test_permission (#13879) (cherry picked from commit fff14fccd9980d9e0aad9c678f104c89ee137349) --- tests/foreman/destructive/test_auth.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/foreman/destructive/test_auth.py b/tests/foreman/destructive/test_auth.py index 7ff350b5196..78e19a61298 100644 --- a/tests/foreman/destructive/test_auth.py +++ b/tests/foreman/destructive/test_auth.py @@ -23,8 +23,6 @@ from robottelo.constants import HAMMER_CONFIG LOGEDIN_MSG = "Session exists, currently logged in as '{0}'" -LOGEDOFF_MSG = "Using sessions, you are currently not logged in" -NOTCONF_MSG = "Credentials are not configured." password = gen_string('alpha') pytestmark = pytest.mark.destructive @@ -52,5 +50,5 @@ def test_positive_password_reset(target_sat): {'username': settings.server.admin_username, 'password': reset_password} ) result = target_sat.cli.Auth.with_user().status() - assert LOGEDIN_MSG.format(settings.server.admin_username) in result[0]['message'] + assert LOGEDIN_MSG.format(settings.server.admin_username) in result.split("\n")[1] assert target_sat.cli.Org.with_user().list()