tests samba_tool: fix flapping user-virtualCryptSHA test
authorGary Lockyer <gary@catalyst.net.nz>
Thu, 3 Aug 2017 18:45:37 +0000 (06:45 +1200)
committerGarming Sam <garming@samba.org>
Mon, 7 Aug 2017 03:34:23 +0000 (05:34 +0200)
commit6d65d679f151aea7b4d8137112aad25455c803d8
tree2d37c7df64eabb5cba83279fc5123cace4d24efd
parent3a2a9d8d3f054d6b31689388c09153f36be57e07
tests samba_tool: fix flapping user-virtualCryptSHA test

Fix flapping test, occasionally a password would be generated that failed
the password criteria, which resulted in the test user not being
created.  The tests relying on this user being present then failed.

This patch ensures that the generated password contains at least one digit,
at least one upper case letter and at least one lower case letter.
The generated passwords do not contain special characters to avoid shell
escaping issues.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Garming Sam <garming@samba.org>
Autobuild-Date(master): Mon Aug  7 05:34:24 CEST 2017 on sn-devel-144
python/samba/tests/samba_tool/user_virtualCryptSHA.py