mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
tests/samba-tool: test dns serverinfo/zoneinfo
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
parent
6555fa9d8f
commit
32b282d55e
@ -883,3 +883,29 @@ class DnsCmdTestCase(SambaToolCmdTest):
|
||||
print(msg)
|
||||
self.fail("Failed to accept valid commands. %d total failures."
|
||||
"Errors above." % num_failures)
|
||||
|
||||
def test_serverinfo(self):
|
||||
for v in ['w2k', 'dotnet', 'longhorn']:
|
||||
result, out, err = self.runsubcmd("dns",
|
||||
"serverinfo",
|
||||
"--client-version", v,
|
||||
os.environ["SERVER"],
|
||||
self.creds_string)
|
||||
self.assertCmdSuccess(result,
|
||||
out,
|
||||
err,
|
||||
"Failed to print serverinfo with "
|
||||
"client version %s" % v)
|
||||
self.assertTrue(out != '')
|
||||
|
||||
def test_zoneinfo(self):
|
||||
result, out, err = self.runsubcmd("dns",
|
||||
"zoneinfo",
|
||||
os.environ["SERVER"],
|
||||
self.zone,
|
||||
self.creds_string)
|
||||
self.assertCmdSuccess(result,
|
||||
out,
|
||||
err,
|
||||
"Failed to print zoneinfo")
|
||||
self.assertTrue(out != '')
|
||||
|
1
selftest/knownfail.d/sambatool-dns
Normal file
1
selftest/knownfail.d/sambatool-dns
Normal file
@ -0,0 +1 @@
|
||||
samba.tests.samba_tool.dnscmd.samba.tests.samba_tool.dnscmd.DnsCmdTestCase.test_serverinfo
|
Loading…
Reference in New Issue
Block a user