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-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=5e000a8487d788dd196980b77ec7299c8be74abf 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 --- diff --git a/selftest/knownfail.d/fsmo b/selftest/knownfail.d/fsmo new file mode 100644 index 000000000000..da665d2251d7 --- /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 744299cc6104..32817dae24b8 100644 --- a/source4/torture/drs/python/fsmo.py +++ b/source4/torture/drs/python/fsmo.py @@ -52,6 +52,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)