diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-09-03 11:01:48 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2013-09-04 12:46:44 +0200 |
commit | 93b314da42efb79951b008cbbc8b0df0fc8c7dbe (patch) | |
tree | 818692e5f69beb1e48e2e46f259d19d68b1a14a7 /ipatests | |
parent | 95d3d3d60b9e981bcd192ed11242d58873fd09bf (diff) | |
download | freeipa-93b314da42efb79951b008cbbc8b0df0fc8c7dbe.tar.gz freeipa-93b314da42efb79951b008cbbc8b0df0fc8c7dbe.tar.xz freeipa-93b314da42efb79951b008cbbc8b0df0fc8c7dbe.zip |
Fix RUV search scope in ipa-replica-manage
The search had an incorrect scope and therefore it didn't find any RUV.
This issue prevented removing of replica.
https://fedorahosted.org/freeipa/ticket/3876
Diffstat (limited to 'ipatests')
-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 2d8f9fcfe..998b1196a 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 |