1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

tests/krb5: Be less particular about getting NTSTATUS codes for KDC TGS tests

Samba currently doesn’t return a status code in these error cases.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-05-17 16:42:08 +12:00 committed by Andrew Bartlett
parent 9d3c3f06ab
commit 4a3f764f7f

View File

@ -1623,7 +1623,9 @@ class KdcTgsTests(KdcTgsBaseTests):
self._run_tgs(tgt, creds, expected_error=(KDC_ERR_GENERIC,
KDC_ERR_BADKEYVER),
expect_edata=True,
expect_status=self.expect_nt_status,
# We arent particular about whether or not we get an
# NTSTATUS.
expect_status=None,
expected_status=ntstatus.NT_STATUS_INSUFFICIENT_RESOURCES)
def test_renew_rc4(self):
@ -1650,7 +1652,9 @@ class KdcTgsTests(KdcTgsBaseTests):
self._s4u2self(tgt, creds, expected_error=(KDC_ERR_GENERIC,
KDC_ERR_BADKEYVER),
expect_edata=True,
expect_status=self.expect_nt_status,
# We arent particular about whether or not we get an
# NTSTATUS.
expect_status=None,
expected_status=ntstatus.NT_STATUS_INSUFFICIENT_RESOURCES)
def test_user2user_rc4(self):