1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/python/samba
Jule Anger 9214fcec34 tests: avoid returning an already used ID in randomXid()
The error 'uidNumber xxx is already being used.' in the samba tool tests
occurs when the random.randint functions returns the same value twice and
therefore a user or group with an already used gid or uid should be created.

Avoid this error by adding a list that stores the used IDs, so that the randomXid
function can check wheter a value is already used before returning it.

Signed-off-by: Jule Anger <ja@sernet.de>
Reviewed-by: Björn Baumbach <bb@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Oct 29 18:54:24 UTC 2020 on sn-devel-184
2020-10-29 18:54:24 +00:00
..
emulate python2 reduction: Merge remaining compat code into common 2020-10-02 14:49:36 +00:00
gp_parse python2 reduction: Merge remaining compat code into common 2020-10-02 14:49:36 +00:00
kcc python2 reduction: Merge remaining compat code into common 2020-10-02 14:49:36 +00:00
netcmd python: Create targetdir recursively 2020-10-22 16:05:30 +00:00
provision python2 reduction: Merge remaining compat code into common 2020-10-02 14:49:36 +00:00
samba3 python2 reduction: Merge remaining compat code into common 2020-10-02 14:49:36 +00:00
subunit python: Remove remaining references to third_party python libs 2020-08-21 00:12:51 +00:00
tests tests: avoid returning an already used ID in randomXid() 2020-10-29 18:54:24 +00:00
__init__.py py3: Add is_ad_dc_built option to python glue 2020-10-23 03:25:34 +00:00
auth_util.py python: fix slow's mail address 2020-06-05 10:32:30 +00:00
colour.py
common.py python2 reduction: Merge remaining compat code into common 2020-10-02 14:49:36 +00:00
dbchecker.py python: Move dsdb_Dn to samdb 2020-10-02 13:29:35 +00:00
descriptor.py
dnsresolver.py DNS Resolver: support both dnspython before and after 2.0.0 2020-10-26 18:33:40 +00:00
dnsserver.py
domain_update.py
drs_utils.py drs_utils: Avoid invalid dereference of v8 requests 2018-11-06 07:15:33 +01:00
forest_update.py
getopt.py python getopt: Add bytes option type 2019-07-02 02:23:08 +00:00
gp_ext_loader.py
gp_msgs_ext.py GPO: Add rsop output for Messages policy 2020-08-27 17:19:48 +00:00
gp_scripts_ext.py gpo: Script ext should not crash if script missing 2020-08-27 15:59:33 +00:00
gp_sec_ext.py python2 reduction: Merge remaining compat code into common 2020-10-02 14:49:36 +00:00
gp_smb_conf_ext.py GPO: Add rsop output for smb.conf policy 2020-08-27 15:59:34 +00:00
gp_sudoers_ext.py gpo: Sudoers ext should not crash if policy missing 2020-08-27 15:59:33 +00:00
gpclass.py python2 reduction: Merge remaining compat code into common 2020-10-02 14:49:36 +00:00
graph.py py/graph: use 2.6 compatible check for set membership 2019-03-20 06:36:05 +00:00
hostconfig.py
idmap.py
join.py python2 reduction: Merge remaining compat code into common 2020-10-02 14:49:36 +00:00
logger.py logger: use color automatically for a tty 2018-11-21 10:46:20 +01:00
mdb_util.py mdb_util: Better error message if lmdb-utils not installed 2018-11-09 21:07:47 +01:00
ms_display_specifiers.py
ms_forest_updates_markdown.py python2 reduction: Merge remaining compat code into common 2020-10-02 14:49:36 +00:00
ms_schema_markdown.py
ms_schema.py python compat: remove string_types 2020-08-11 16:37:35 +00:00
ndr.py
ntacls.py pysmbd: add "session_info" arg tp py_smbd_create_file() 2019-12-20 11:41:42 +00:00
remove_dc.py python/remove_dc: fix Exception construction 2018-11-01 05:08:13 +01:00
samdb.py python2 reduction: Merge remaining compat code into common 2020-10-02 14:49:36 +00:00
schema.py python2 reduction: Merge remaining compat code into common 2020-10-02 14:49:36 +00:00
sd_utils.py
sites.py
subnets.py python/subnets: use the correct variable name 2018-11-01 05:08:11 +01:00
tdb_util.py
upgrade.py classicupgrade: fix a a bytes-like object is required, not 'str' error 2019-09-23 12:58:20 +00:00
upgradehelpers.py python2 reduction: Merge remaining compat code into common 2020-10-02 14:49:36 +00:00
uptodateness.py python/uptodateness: cope with unknown invocation ID 2019-01-19 19:21:19 +01:00
xattr.py python/xattr: remove unused variable 2018-11-01 05:08:14 +01:00