python tests Blackbox: add random_password
authorGary Lockyer <gary@catalyst.net.nz>
Tue, 16 Oct 2018 20:10:10 +0000 (09:10 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 19 Oct 2018 04:17:25 +0000 (06:17 +0200)
commitb6e45fb479689cff028b1fe626533b035e313ce3
tree51092751bbe73a7f5363fd9646652f9e6e0222d3
parenta0bad1364a9403afc5f457bf71a1eae48ab7b54e
python tests Blackbox: add random_password

Add the random_password method to the BlackboxTestCase class and remove
duplicated copies from other test cases. Also use SystemRandom so that
the generated passwords are more cryptographically sound.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/__init__.py
python/samba/tests/samba_tool/base.py
python/samba/tests/samba_tool/user.py
python/samba/tests/samba_tool/user_virtualCryptSHA.py