diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2021-10-20 12:39:05 +1300 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2021-10-27 22:37:10 +0000 |
commit | 4056198f4c950b77569c247beaff1bbdf3acf8f5 (patch) | |
tree | e6368678c9b5c4a4f904771fb69785d77e2655d9 | |
parent | 89b9cb8b786c3e4eb8691b5363390b68d8228a2d (diff) | |
download | samba-4056198f4c950b77569c247beaff1bbdf3acf8f5.tar.gz |
tests/krb5: Decrease length of test account prefix
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)
-rw-r--r-- | python/samba/tests/krb5/kdc_base_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/tests/krb5/kdc_base_test.py b/python/samba/tests/krb5/kdc_base_test.py index 7cd3c5255f2..8f453b464fd 100644 --- a/python/samba/tests/krb5/kdc_base_test.py +++ b/python/samba/tests/krb5/kdc_base_test.py @@ -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. |