tests auth log winbind: Fix flapping test
commit968434525480020999a30881ca20b9b13c99ad65
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 5 Jun 2019 02:52:03 +0000 (5 14:52 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 5 Jun 2019 15:40:23 +0000 (5 15:40 +0000)
tree4b1854c66f25a5e73a4e0aa1e4b2f209dbd618e7
parentaabdcc91513e242c4f191e1bbbb70c890416d213
tests auth log winbind: Fix flapping test

Fix flapping auth_log_winbind tests, were seeing failures like

UNEXPECTED(failure):
samba.tests.auth_log_winbind.samba.tests.auth_log_winbind.AuthLogTestsWinbind.
test_wbinfo(ad_member:local)
REASON: Exception: Exception: Traceback (most recent call last):
  File "bin/python/samba/tests/auth_log_winbind.py", line 328, in
  test_wbinfo
      self.assertEquals(logon_id, msg["Authentication"]["logonId"])
      AssertionError: '812b7158bff1660e' != '2cfc1fed76ff8865'
      - 812b7158bff1660e
      + 2cfc1fed76ff8865

Test had a race condition with other SamLogon events on the domain
server. The tests can now handle multiple SamLogon messages and filter
out the SamLogon messages for other logons.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/auth_log_winbind.py