]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/krb5: Decrease length of test account prefix
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 19 Oct 2021 23:39:05 +0000 (12:39 +1300)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Oct 2021 22:37:10 +0000 (22:37 +0000)
This allows us more room to test with different account names.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14874
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14881

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit a5a6296e57cab2b53617d997c37b4e92d4124cc7)

python/samba/tests/krb5/kdc_base_test.py

index 7cd3c5255f22b3814873036a537fa7ac8c511277..8f453b464fd6ed8a458500b81f3509e40bb940b7 100644 (file)
@@ -108,7 +108,7 @@ class KDCBaseTest(RawKerberosTest):
         # An identifier to ensure created accounts have unique names. Windows
         # caches accounts based on usernames, so account names being different
         # across test runs avoids previous test runs affecting the results.
-        cls.account_base = f'krb5_{secrets.token_hex(5)}_'
+        cls.account_base = f'{secrets.token_hex(4)}_'
         cls.account_id = 0
 
         # A set containing DNs of accounts created as part of testing.