summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-03-05 01:28:02 +0100
committerGünther Deschner <gd@samba.org>2011-03-08 12:29:21 +0100
commit1605563b147b0c6223d3aef39e9332faa55574cd (patch)
tree672185d117a5b2ab2e3efd9373e9d6759b38ff32
parent12f10a91824226af78e12c279dcf9b91e131f2fc (diff)
downloadsamba-1605563b147b0c6223d3aef39e9332faa55574cd.tar.gz
samba-1605563b147b0c6223d3aef39e9332faa55574cd.tar.bz2
samba-1605563b147b0c6223d3aef39e9332faa55574cd.zip
s3-selftest: add pattern test of dcerpc binding options (using rpc.lsa.lookupsids).
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Mar 8 12:29:21 CET 2011 on sn-devel-104
-rw-r--r--source3/selftest/knownfail1
-rwxr-xr-xsource3/selftest/tests.py19
2 files changed, 18 insertions, 2 deletions
diff --git a/source3/selftest/knownfail b/source3/selftest/knownfail
index 574910c2d8..dfc2cee197 100644
--- a/source3/selftest/knownfail
+++ b/source3/selftest/knownfail
@@ -7,3 +7,4 @@ samba3.posix_s3.rpc.spoolss.printer.*addprinterex.print_test # another intermitt
samba3.posix_s3.smb2.lock.*.rw-exclusive # another intermittent failure
.*driver.add_driver_timestamps # we only can store dates, not timestamps
samba3.raw.mux.* #This test is flaky on the async lock time
+.*ncacn_ip_tcp.*
diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py
index bc82e03f5c..6c844f7ab8 100755
--- a/source3/selftest/tests.py
+++ b/source3/selftest/tests.py
@@ -41,8 +41,8 @@ if os.getenv("SELFTEST_QUICK"):
torture_options.append("--option=torture:quick=yes")
smb4torture += " " + " ".join(torture_options)
-def plansmbtorturetestsuite(name, env, options):
- modname = "samba3.posix_s3.%s" % name
+def plansmbtorturetestsuite(name, env, options, description=''):
+ modname = "samba3.posix_s3.%s %s" % (name, description)
cmdline = "%s $LISTOPT %s %s" % (valgrindify(smb4torture), options, name)
plantestsuite_loadlist(modname, env, cmdline)
@@ -194,3 +194,18 @@ if sub.returncode == 0:
if t == "raw.chkpath":
plansmbtorturetestsuite(t, "dc", '//$SERVER_IP/tmpcase -U$USERNAME%$PASSWORD')
+
+test = 'rpc.lsa.lookupsids'
+transports = ["ncacn_np", "ncacn_ip_tcp" ]
+auth_options = ["ntlm", "spnego", "connect" ]
+signseal_options = ["", ",sign", ",sign,seal"]
+smb_options = ["", ",smb2"]
+endianness_options = ["", ",bigendian"]
+for t in transports:
+ for z in smb_options:
+ for e in endianness_options:
+ for a in auth_options:
+ for s in signseal_options:
+ binding_string = "%s:$SERVER_IP[%s%s%s%s]" % (t, a, s, z, e)
+ options = binding_string + " -U$USERNAME%$PASSWORD"
+ plansmbtorturetestsuite(test, "dc", options, 'over %s with [%s%s%s%s] ' % (t, a, s, z, e))