diff options
author | Andreas Schneider <asn@samba.org> | 2018-08-27 15:59:59 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-08-29 21:28:41 +0200 |
commit | 7a7d95fc2c2f65f5c1268229595a523627eac96c (patch) | |
tree | 7c2f6d38e8221e2ff4a027abb8b6bf29f929f5b1 /source3 | |
parent | 30ee1d3dad611610adfbb60669d723adcaad0db5 (diff) | |
download | samba-7a7d95fc2c2f65f5c1268229595a523627eac96c.tar.gz |
s4:torture: Add a test for listing shares
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Aug 29 21:28:41 CEST 2018 on sn-devel-144
Diffstat (limited to 'source3')
-rwxr-xr-x | source3/selftest/tests.py | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py index ed241f002da..3b6735231de 100755 --- a/source3/selftest/tests.py +++ b/source3/selftest/tests.py @@ -431,7 +431,10 @@ unix = ["unix.info2", "unix.whoami"] nbt = ["nbt.dgram"] -libsmbclient = ["libsmbclient"] +libsmbclient = ["libsmbclient.version", "libsmbclient.initialize", + "libsmbclient.configuration", "libsmbclient.setConfiguration", + "libsmbclient.options", "libsmbclient.opendir", + "libsmbclient.list_shares", "libsmbclient.readdirplus"] vfs = ["vfs.fruit", "vfs.acl_xattr", "vfs.fruit_netatalk", "vfs.fruit_file_id", "vfs.fruit_timemachine"] @@ -579,13 +582,17 @@ for t in tests: elif t == "rpc.samba3.netlogon" or t == "rpc.samba3.sessionkey": plansmbtorture4testsuite(t, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD --option=torture:wksname=samba3rpctest') plansmbtorture4testsuite(t, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD --option=torture:wksname=samba3rpctest') - elif t == "libsmbclient": + elif t.startswith("libsmbclient"): + url = "smb://$USERNAME:$PASSWORD@$SERVER/tmp" + if t == "libsmbclient.list_shares": + url = "smb://$USERNAME:$PASSWORD@$SERVER" + plansmbtorture4testsuite(t, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%%$PASSWORD ' - '--option=torture:smburl=smb://$USERNAME:$PASSWORD@$SERVER/tmp ' - '--option=torture:replace_smbconf=%s' % os.path.join(srcdir(), "testdata/samba3/smb_new.conf")) + '--option=torture:smburl=' + url + + ' --option=torture:replace_smbconf=%s' % os.path.join(srcdir(), "testdata/samba3/smb_new.conf")) plansmbtorture4testsuite(t, "ad_dc", '//$SERVER/tmp -U$USERNAME%%$PASSWORD ' - '--option=torture:smburl=smb://$USERNAME:$PASSWORD@$SERVER/tmp ' - '--option=torture:replace_smbconf=%s' % os.path.join(srcdir(), "testdata/samba3/smb_new.conf")) + '--option=torture:smburl=' + url + + ' --option=torture:replace_smbconf=%s' % os.path.join(srcdir(), "testdata/samba3/smb_new.conf")) elif t == "smb2.streams": plansmbtorture4testsuite(t, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD') plansmbtorture4testsuite(t, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD') |