def test_new_suffix(topo_m4, new_suffix): """Check that we can enable replication on a new suffix :id: d44a9ed4-26b0-4189-b0d0-b2b336ddccbd :setup: Four masters replication setup, a new suffix :steps: 1. Enable replication on the new suffix 2. Check if replication works 3. Disable replication on the new suffix :expectedresults: 1. Replication on the new suffix should be enabled 2. Replication should work 3. Replication on the new suffix should be disabled """ m1 = topo_m4.ms["master1"] m2 = topo_m4.ms["master2"] repl = ReplicationManager(NEW_SUFFIX) repl.create_first_master(m1) repl.join_master(m1, m2) repl.test_replication(m1, m2) repl.test_replication(m2, m1) repl.remove_master(m1) repl.remove_master(m2)
def remove_master4_agmts(msg, topology_m4): """Remove all the repl agmts to master4. """ log.info('%s: remove all the agreements to master 4...' % msg) repl = ReplicationManager(DEFAULT_SUFFIX) # This will delete m4 frm the topo *and* remove all incoming agreements # to m4. repl.remove_master(topology_m4.ms["master4"], [ topology_m4.ms["master1"], topology_m4.ms["master2"], topology_m4.ms["master3"] ])