Skip to content

Commit

Permalink
Tests: Update password change expect to work
Browse files Browse the repository at this point in the history
The message changed between RHEL 9 and RHEL 10.
From: "passwd: all authentication tokens updated successfully"
To: "passwd: password updated successfully"

Reviewed-by: Tomáš Halman <[email protected]>
  • Loading branch information
jakub-vavra-cz committed May 20, 2024
1 parent d13dc32 commit 9a5a54c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tests/multihost/sssd/testlib/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,7 @@ def change_user_password(self, username, login_password, current_password,
expect_script += 'send "' + retype_new_password + '\r"\n'
expect_script += 'expect {\n'
expect_script += '\ttimeout { set result_code 0 }\n'
expect_script += '\t"passwd: all authentication tokens updated ' \
'successfully" { set result_code 3 }\n'
expect_script += '\t" updated successfully" { set result_code 3 }\n'
expect_script += '\t"passwd: Authentication token is no longer ' \
'valid; new one required" { set result_code 4 }\n'
expect_script += '\t"Sorry, passwords do not match." ' \
Expand Down

0 comments on commit 9a5a54c

Please sign in to comment.