From: Björn Baumbach Date: Fri, 24 May 2019 13:46:17 +0000 (+0200) Subject: s4:torture:fsmo.py: test role transfers of dns partitions X-Git-Tag: samba-4.9.12~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf5002e0345152d46439bf96a32085e5df4ba6f1;p=thirdparty%2Fsamba.git s4:torture:fsmo.py: test role transfers of dns partitions BUG: https://bugzilla.samba.org/show_bug.cgi?id=13973 Pair-Programmed-With: Stefan Metzmacher Signed-off-by: Björn Baumbach Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett (cherry picked from commit 5e000a8487d788dd196980b77ec7299c8be74abf) --- diff --git a/selftest/knownfail.d/fsmo b/selftest/knownfail.d/fsmo new file mode 100644 index 00000000000..da665d2251d --- /dev/null +++ b/selftest/knownfail.d/fsmo @@ -0,0 +1,2 @@ +^samba4.drs.fsmo.python.*.fsmo.DrsFsmoTestCase.test_DomainDnsZonesMasterTransfer +^samba4.drs.fsmo.python.*.fsmo.DrsFsmoTestCase.test_ForestDnsZonesMasterTransfer diff --git a/source4/torture/drs/python/fsmo.py b/source4/torture/drs/python/fsmo.py index 6be55f8b70c..a8d980077f4 100644 --- a/source4/torture/drs/python/fsmo.py +++ b/source4/torture/drs/python/fsmo.py @@ -51,6 +51,10 @@ class DrsFsmoTestCase(drs_base.DrsBaseTestCase): self.infrastructure_dn = "CN=Infrastructure," + self.domain_dn self.naming_dn = "CN=Partitions," + self.config_dn self.rid_dn = "CN=RID Manager$,CN=System," + self.domain_dn + self.domain_dns_dn = ( + "CN=Infrastructure,DC=DomainDnsZones, %s" % self.domain_dn ) + self.forest_dns_dn = ( + "CN=Infrastructure,DC=ForestDnsZones, %s" % self.domain_dn ) def tearDown(self): super(DrsFsmoTestCase, self).tearDown() @@ -143,3 +147,9 @@ class DrsFsmoTestCase(drs_base.DrsBaseTestCase): def test_NamingMasterTransfer(self): self._role_transfer(role="naming", role_dn=self.naming_dn) + + def test_DomainDnsZonesMasterTransfer(self): + self._role_transfer(role="domaindns", role_dn=self.domain_dns_dn) + + def test_ForestDnsZonesMasterTransfer(self): + self._role_transfer(role="forestdns", role_dn=self.forest_dns_dn)