]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/krb5: Use None for the default values of parameters
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 18 Oct 2023 01:17:59 +0000 (14:17 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 19 Oct 2023 21:37:36 +0000 (21:37 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/krb5/conditional_ace_tests.py

index e294fbd41d9527c782bac40246e4aeef79a3c6a1..55fca83adea3cc3501d09e92743ad1b65c504f1c 100755 (executable)
@@ -2724,8 +2724,8 @@ class ConditionalAceTests(ConditionalAceBaseTests):
              reason=AuditReason.NONE,
              status=None,
              edata=False,
-             client_from_rodc=False,
-             device_from_rodc=False,
+             client_from_rodc=None,
+             device_from_rodc=None,
              client_sids=None,
              client_claims=None,
              device_sids=None,
@@ -2741,6 +2741,12 @@ class ConditionalAceTests(ConditionalAceBaseTests):
         except TypeError:
             self.assertIsNot(code, CRASHES_WINDOWS)
 
+        if client_from_rodc is None:
+            client_from_rodc = False
+
+        if device_from_rodc is None:
+            device_from_rodc = False
+
         client_creds = self.get_cached_creds(
             account_type=self.AccountType.USER,
             opts={