diff options
Diffstat (limited to 'ipatests/test_integration')
-rw-r--r-- | ipatests/test_integration/test_simple_replication.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ipatests/test_integration/test_simple_replication.py b/ipatests/test_integration/test_simple_replication.py index 2d8f9fcf..998b1196 100644 --- a/ipatests/test_integration/test_simple_replication.py +++ b/ipatests/test_integration/test_simple_replication.py @@ -59,3 +59,13 @@ class TestSimpleReplication(IntegrationTest): def test_user_replication_to_master(self): """Test user replication replica -> master""" self.check_replication(self.replicas[0], self.master, 'testuser2') + + def test_replica_removal(self): + """Test replica removal""" + result = self.master.run_command(['ipa-replica-manage', 'list']) + assert self.replicas[0].hostname in result.stdout_text + # has to be run with --force, there is no --unattended + self.master.run_command(['ipa-replica-manage', 'del', + self.replicas[0].hostname, '--force']) + result = self.master.run_command(['ipa-replica-manage', 'list']) + assert self.replicas[0].hostname not in result.stdout_text |