mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
selftest: add new credential change test
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
2fae806550
commit
48820b9528
16
source3/script/tests/test_net_cred_change.sh
Executable file
16
source3/script/tests/test_net_cred_change.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ $# -lt 1 ]; then
|
||||
cat <<EOF
|
||||
Usage: test_net_cred_change.sh CONFIGURATION
|
||||
EOF
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
incdir=`dirname $0`/../../../testprogs/blackbox
|
||||
. $incdir/subunit.sh
|
||||
testit "first change" $VALGRIND $BINDIR/wbinfo -c || failed =`expr $failed + 1`
|
||||
testit "first join" $VALGRIND $BINDIR/net rpc testjoin $@ || failed =`expr $failed + 1`
|
||||
testit "second change" $VALGRIND $BINDIR/wbinfo -c || failed =`expr $failed + 1`
|
||||
|
||||
testok $0 $failed
|
@ -167,6 +167,9 @@ for env in ["s3dc", "member", "s3member"]:
|
||||
|
||||
plantestsuite("samba3.ntlm_auth.(%s:local)" % env, "%s:local" % env, [os.path.join(samba3srcdir, "script/tests/test_ntlm_auth_s3.sh"), valgrindify(python), samba3srcdir, ntlm_auth3, '$DOMAIN', '$DC_USERNAME', '$DC_PASSWORD', configuration])
|
||||
|
||||
for env in ["member", "s3member"]:
|
||||
plantestsuite("samba3.blackbox.net_cred_change.(%s:local)" % env, "%s:local" % env, [os.path.join(samba3srcdir, "script/tests/test_net_cred_change.sh"), configuration])
|
||||
|
||||
env = "s3member"
|
||||
t = "--krb5auth=$DOMAIN\\\\$DC_USERNAME%$DC_PASSWORD"
|
||||
plantestsuite("samba3.wbinfo_s3.(%s:local).%s" % (env, t), "%s:local" % env, [os.path.join(samba3srcdir, "script/tests/test_wbinfo_s3.sh"), t])
|
||||
|
Loading…
x
Reference in New Issue
Block a user