summaryrefslogtreecommitdiffstats
path: root/wintest/wintest.py
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-04-07 08:54:52 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-04-07 14:35:36 +1000
commite410a1af30467b2f1defd24cb17f5b53d30df7f9 (patch)
tree2cfffced08eeefa3501dd04bfd933d8dc34f9625 /wintest/wintest.py
parent9ced0df3794901b65d6329ba0d2f9d82f759cdac (diff)
downloadsamba-e410a1af30467b2f1defd24cb17f5b53d30df7f9.tar.gz
samba-e410a1af30467b2f1defd24cb17f5b53d30df7f9.tar.xz
samba-e410a1af30467b2f1defd24cb17f5b53d30df7f9.zip
s3-wintest Add test of 'net use' against the Samba3 member
Diffstat (limited to 'wintest/wintest.py')
-rw-r--r--wintest/wintest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/wintest/wintest.py b/wintest/wintest.py
index e4419beb0c3..80132d76b87 100644
--- a/wintest/wintest.py
+++ b/wintest/wintest.py
@@ -845,6 +845,13 @@ RebootOnCompletion=No
self.cmd_contains("bin/smbclient --version", ["${SAMBA_VERSION}"])
self.retry_cmd('bin/smbclient -L ${WIN_HOSTNAME} -U%s%%%s %s' % (username, password, args), ["IPC"])
+ def test_net_use(self, vm, domain, username, password):
+ self.setwinvars(vm)
+ self.info('Testing net use against Samba3 member')
+ child = self.open_telnet("${WIN_HOSTNAME}", "%s\\%s" % (domain, username), password)
+ child.sendline("net use t: \\\\${HOSTNAME}.${LCREALM}\\test")
+ child.expect("The command completed successfully")
+
def setup(self, testname, subdir):
'''setup for main tests, parsing command line'''