summaryrefslogtreecommitdiff
path: root/source4/setup/tests
diff options
context:
space:
mode:
authorAndrew Kroeger <andrew@id10ts.net>2009-09-08 06:01:18 -0500
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-09-10 01:09:56 +0200
commite3a2a22451b3f2b7294da0e6d1f1f6e6d4a33368 (patch)
treea2c159d1543c720f639d8c95106d93e7943586d8 /source4/setup/tests
parent67a8a8c9e652d0f1aa5a1c593177bd75bc4af284 (diff)
downloadsamba-e3a2a22451b3f2b7294da0e6d1f1f6e6d4a33368.tar.gz
samba-e3a2a22451b3f2b7294da0e6d1f1f6e6d4a33368.tar.bz2
samba-e3a2a22451b3f2b7294da0e6d1f1f6e6d4a33368.zip
s4:pwsettings: Added blackbox tests.
The added tests include basic validation that the script runs and accepts all custom arguments. The tests also verify changes to the password complexity, minimum password length, and minimum password length settings.
Diffstat (limited to 'source4/setup/tests')
-rwxr-xr-xsource4/setup/tests/blackbox_setpassword.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/setup/tests/blackbox_setpassword.sh b/source4/setup/tests/blackbox_setpassword.sh
index 70061f6ae7..77b41a2424 100755
--- a/source4/setup/tests/blackbox_setpassword.sh
+++ b/source4/setup/tests/blackbox_setpassword.sh
@@ -20,4 +20,6 @@ testit "setpassword" $PYTHON ./setup/setpassword --configfile=$PREFIX/simple-dc/
testit "setpassword" $PYTHON ./setup/setpassword --configfile=$PREFIX/simple-dc/etc/smb.conf testuser --newpassword=testpass --must-change-at-next-login
+testit "pwsettings" $PYTHON ./setup/pwsettings --quiet set --configfile=$PREFIX/simple-dc/etc/smb.conf --complexity=default --history-length=default --min-pwd-length=default --min-pwd-age=default --max-pwd-age=default
+
exit $failed