1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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 <metze@samba.org>

Signed-off-by: Björn Baumbach <bbaumbach@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Björn Baumbach 2019-05-24 15:46:17 +02:00 committed by Andrew Bartlett
parent e1a4fb5291
commit 5e000a8487
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,2 @@
^samba4.drs.fsmo.python.*.fsmo.DrsFsmoTestCase.test_DomainDnsZonesMasterTransfer
^samba4.drs.fsmo.python.*.fsmo.DrsFsmoTestCase.test_ForestDnsZonesMasterTransfer

View File

@ -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)