From 1605563b147b0c6223d3aef39e9332faa55574cd Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Sat, 5 Mar 2011 01:28:02 +0100 Subject: s3-selftest: add pattern test of dcerpc binding options (using rpc.lsa.lookupsids). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Signed-off-by: Günther Deschner Autobuild-User: Günther Deschner Autobuild-Date: Tue Mar 8 12:29:21 CET 2011 on sn-devel-104 --- source3/selftest/knownfail | 1 + source3/selftest/tests.py | 19 +++++++++++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) (limited to 'source3/selftest') 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)) -- cgit