diff options
Diffstat (limited to 'wintest/wintest.py')
-rw-r--r-- | wintest/wintest.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/wintest/wintest.py b/wintest/wintest.py index e4419beb0c..80132d76b8 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''' |