1
0
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:
Douglas Bagnall 2019-05-29 13:38:12 +12:00 committed by Noel Power
parent 6555fa9d8f
commit 32b282d55e
2 changed files with 27 additions and 0 deletions

View File

@ -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 != '')

View File

@ -0,0 +1 @@
samba.tests.samba_tool.dnscmd.samba.tests.samba_tool.dnscmd.DnsCmdTestCase.test_serverinfo