ipatests: hidden replica: misc fixes

Rename a test and split a test in two.

Related: https://pagure.io/freeipa/issue/8534
Signed-off-by: François Cami <fcami@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Mohammad Rizwan Yusuf <myusuf@redhat.com>
This commit is contained in:
François Cami 2021-03-05 08:52:00 +01:00 committed by Florence Blanc-Renaud
parent b9b7175dbd
commit 4c7f148c50

View File

@ -922,7 +922,7 @@ class TestHiddenReplicaPromotion(IntegrationTest):
)
assert returncode == 0
def test_hide_master_fails(self):
def test_hide_last_visible_server_fails(self):
# verify state
self._check_config([self.master], [self.replicas[0]])
# nothing to do
@ -961,6 +961,7 @@ class TestHiddenReplicaPromotion(IntegrationTest):
self._check_config([self.master, self.replicas[0]])
self._check_dnsrecords([self.master, self.replicas[0]])
def test_promote_twice_fails(self):
result = self.replicas[0].run_command([
'ipa', 'server-state',
self.replicas[0].hostname, '--state=enabled'