#8432 test failure in test_commands.py::TestIPACommand::test_login_wrong_password: AssertionError
Closed: fixed by frenaud. Opened by fcami.

Sometimes test_login_wrong_password fails with the following Assertion:

AssertionError: assert 'pam_sss(sshd:auth): received for user testuser: 7 (Authentication failure)' in '-- Logs begin at Mon 2020-07-27 07:23:48 UTC, end at Mon 2020-07-27 07:51:55 UTC. --\nJul 27 07:51:54 master.ipa.test sshd[33296]: Failed password for testuser from 192.168.122.58 port 52848 ssh2\n'

The logs contain:

Jul 27 07:51:52 master.ipa.test sshd[33296]: pam_sss(sshd:auth): received for user testuser: 7 (Authentication failure)

right before:

Jul 27 07:51:54 master.ipa.test sshd[33296]: Failed password for testuser from 192.168.122.58 port 52848 ssh2

PR inbound.


Metadata Update from @fcami:
- Custom field changelog adjusted to Sometimes test_login_wrong_password fails because the log window the string message is searched in is too narrow. Broaden the window by looking at the past 10 seconds.
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/4947

master:

  • 3546fef0bbefba59c754f2fb18f4eeac2c3437ce ipatests: test_commands: test_login_wrong_password: look farther in time

ipa-4-6:

  • 81a0fdfea49e39c4ea0253c3e773d8625069cf9d ipatests: test_commands: test_login_wrong_password: look farther in time

ipa-4-8:

  • 64ef1a8e727689cd434888ba555a003934986d13 ipatests: test_commands: test_login_wrong_password: look farther in time

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

ipa-4-9:

  • cbe7d2258d6c900b2e02b2373e720275d9917316 ipatests: Don't assume sshd flush its logs immediately

ipa-4-8:

  • 7c667f64eef581ed54a3a7075d0fe63db62b0a1a ipatests: Don't assume sshd flush its logs immediately

master:

fdd5ba3 ipatests: Don't assume sshd flush its logs immediately
Metadata