Skip to content

Commit

Permalink
tests: Update ldap test to use journal utility.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-vavra-cz committed Sep 27, 2024
1 parent 0f351c2 commit 92ff101
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tests/system/tests/test_ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 92ff101

Please sign in to comment.