]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python: Fail the test if we don’t receive an NTSTATUSError
authorJo Sutton <josutton@catalyst.net.nz>
Mon, 19 Feb 2024 23:27:36 +0000 (12:27 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 27 Feb 2024 01:11:37 +0000 (01:11 +0000)
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/auth_log_netlogon_bad_creds.py

index e97ca851d110469eb3f1e3f21a0e598630416e7e..9894d9bfd03b2ca15b03ed8ccf97f75418bf00df 100644 (file)
@@ -159,6 +159,8 @@ class AuthLogTestsNetLogonBadCreds(samba.tests.auth_log_base.AuthLogTestBase):
                                        0)
         except NTSTATUSError:
             pass
+        else:
+            self.fail()
         self.waitForMessages(isLastExpectedMessage)
 
     def test_netlogon_password_HMAC_MD5(self):
@@ -187,4 +189,6 @@ class AuthLogTestsNetLogonBadCreds(samba.tests.auth_log_base.AuthLogTestBase):
                                        NETLOGON_NEG_STRONG_KEYS)
         except NTSTATUSError:
             pass
+        else:
+            self.fail()
         self.waitForMessages(isLastExpectedMessage)