diff --git a/src/tests/system/tests/test_ldap.py b/src/tests/system/tests/test_ldap.py index c7155223dbd..1ee2890f14a 100644 --- a/src/tests/system/tests/test_ldap.py +++ b/src/tests/system/tests/test_ldap.py @@ -144,10 +144,10 @@ def test_ldap__password_change_new_password_does_not_meet_complexity_requirement "user1", "Secret123", "red_32" ), "Password should not have been able to be changed!" - assert ( - "pam_sss(passwd:chauthtok): User info message: Password change failed." - in client.host.conn.run("journalctl").stdout + log = client.journald.journalctl( + grep="pam_sss(passwd:chauthtok): User info message: Password change failed.", unit="sssd" ) + assert log.rc == 0, "'Password change failed.' message is not in log!" @pytest.mark.ticket(bz=[1695574, 1795220])