From b597df70ac4c1de126887b6f2e1826a3bcd99df3 Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Wed, 24 Jan 2024 11:34:28 -0500 Subject: [PATCH] [6.13.z] fix in test_permission (#13892) --- 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 d97c592d05b..95da3c5ccce 100644 --- a/tests/foreman/destructive/test_auth.py +++ b/tests/foreman/destructive/test_auth.py @@ -18,8 +18,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 @@ -46,5 +44,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()