This is repeating work done in setup/teardown or doubling up in place (self._enable_all_repl includes self._enable_inbound_repl)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This ensures that the server
"""
- # disable automatic replication temporary
- self._disable_all_repl(self.dnsname_dc1)
- self._disable_all_repl(self.dnsname_dc2)
# add new attributeSchema object
(a_ldn, a_dn) = self._schema_new_attr(self.ldb_dc1, "attr-OU-S", 14)
def setUp(self):
super(DrsReplicaSyncTestCase, self).setUp()
- self._disable_inbound_repl(self.dnsname_dc1)
self._disable_all_repl(self.dnsname_dc1)
self.ou1 = None
self.ou2 = None
def tearDown(self):
# re-enable replication
- self._enable_inbound_repl(self.dnsname_dc1)
self._enable_all_repl(self.dnsname_dc1)
super(DrsReplicaSyncTestCase, self).tearDown()