From 1d55ad2f1f934a544c5ea95a6dc7fd590fbe4d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hellebrandt?= Date: Thu, 25 Apr 2024 13:33:50 +0200 Subject: [PATCH] Fix expected user name (#14303) Co-authored-by: Jameer Pathan <21165044+jameerpathan111@users.noreply.github.com> --- tests/foreman/ui/test_ldap_authentication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/foreman/ui/test_ldap_authentication.py b/tests/foreman/ui/test_ldap_authentication.py index a6e3af6d612..554244957fe 100644 --- a/tests/foreman/ui/test_ldap_authentication.py +++ b/tests/foreman/ui/test_ldap_authentication.py @@ -275,7 +275,7 @@ def test_positive_add_katello_role( session.activationkey.create({'name': ak_name}) assert session.activationkey.search(ak_name)[0]['Name'] == ak_name current_user = session.activationkey.read(ak_name, 'current_user')['current_user'] - assert ldap_data['ldap_user_name'] in current_user + assert f"{auth_source.attr_firstname} {auth_source.attr_lastname}" in current_user @pytest.mark.parametrize('ldap_auth_source', ['AD', 'IPA'], indirect=True)