Skip to content

Commit

Permalink
pam/integration-tests/bad-pwquality: Sleep after Enter
Browse files Browse the repository at this point in the history
We were sleeping after typing and before actually submitting the new
password, leading to potential failures.

Do the other way around instead since it's after we hit Enter that we
could have slowdowns
  • Loading branch information
3v1n0 committed Oct 2, 2024
1 parent c8bb7d0 commit 89e8861
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,20 @@ Show

Hide
Type "1234"
Sleep ${AUTHD_SLEEP_DEFAULT}
Enter
Sleep ${AUTHD_SLEEP_DEFAULT}
Show

Hide
Type "12345678"
Sleep ${AUTHD_SLEEP_DEFAULT}
Enter
Sleep ${AUTHD_SLEEP_DEFAULT}
Show

Hide
Type "authd2404"
Sleep ${AUTHD_SLEEP_DEFAULT}
Enter
Sleep ${AUTHD_SLEEP_DEFAULT}
Show

Hide
Expand All @@ -57,13 +57,13 @@ Show

Hide
Enter
Sleep ${AUTHD_SLEEP_LONG} * 2
Sleep ${AUTHD_SLEEP_DEFAULT}
Show

Hide
Type "authd2404"
Sleep ${AUTHD_SLEEP_DEFAULT}
Enter
Sleep ${AUTHD_SLEEP_DEFAULT}
Show

Hide
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,32 @@ Sleep ${AUTHD_SLEEP_LONG} * 2
Show

Hide
Sleep ${AUTHD_SLEEP_DEFAULT}
Enter
Sleep ${AUTHD_SLEEP_DEFAULT}
Show

Hide
Type "1234"
Sleep ${AUTHD_SLEEP_DEFAULT}
Enter
Sleep ${AUTHD_SLEEP_DEFAULT}
Show

Hide
Type "12345678"
Sleep ${AUTHD_SLEEP_DEFAULT}
Enter
Sleep ${AUTHD_SLEEP_DEFAULT}
Show

Hide
Type "authd2404"
Sleep ${AUTHD_SLEEP_DEFAULT}
Enter
Sleep ${AUTHD_SLEEP_DEFAULT}
Show

Hide
Type "123456789"
Sleep ${AUTHD_SLEEP_DEFAULT}
Enter
Sleep ${AUTHD_SLEEP_DEFAULT}
Show

Hide
Expand All @@ -62,8 +62,8 @@ Show

Hide
Type "authd2404"
Sleep ${AUTHD_SLEEP_DEFAULT}
Enter
Sleep ${AUTHD_SLEEP_DEFAULT}
Show

Hide
Expand Down

0 comments on commit 89e8861

Please sign in to comment.