BUG: https://bugzilla.samba.org/show_bug.cgi?id=13613
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
Reviewed-by: Rowland Penny <rpenny@samba.org>
errf=StringIO())
if result is not None:
self.fail("Error deleting site")
+
+ def test_samba_dnsupdate_samba_tool_all_names(self):
+ """We ask it to update all names, which should all already
+ exist and cause no errors."""
+ try:
+ out = self.check_output(["samba_dnsupdate",
+ "--verbose",
+ "--use-samba-tool",
+ "--all-names"])
+ except samba.tests.BlackboxProcessError as e:
+ self.fail(f"samba_dnsupdate returned an error: {e}")
+ self.assertIn(b"Record already exists", out)
+ self.assertNotIn(b"ERROR", out)
--- /dev/null
+^samba.tests.blackbox.samba_dnsupdate.+SambaDnsUpdateTests.test_samba_dnsupdate_samba_tool_all_names