ipatests: Fix TestReplicaPromotionLevel1

A new test was added to TestReplicaPromotionLevel1 but was run
after the replica uninstallation. As the new test checks
the content of /etc/sssd/sssd.conf on the replica, merge it with the
previous test, when the replica is still installed.

Fixes: https://pagure.io/freeipa/issue/8414
Reviewed-By: Mohammad Rizwan <myusuf@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Florence Blanc-Renaud authored and Rob Crittenden committed 2020-07-27 15:58:15 -04:00
1 parent 1fc1947c48
commit 062e18c4f0
1 file changed
+3 -9
@@ -115,15 +115,9 @@ class TestReplicaPromotionLevel1(ReplicaPromotionBase):
result = self.replicas[0].run_command(['ipa-pkinit-manage', 'status'])
assert "PKINIT is enabled" in result.stdout_text
@replicas_cleanup
def test_sssd_config_allows_ipaapi_access_to_ifp(self):
"""Verify that the sssd configuration allows the ipaapi user to
access ifp
Test for ticket 8403.
"""
for replica in self.replicas:
sssd_config_allows_ipaapi_access_to_ifp(replica)
# Verify that the sssd configuration allows the ipaapi user to
# access ifp
sssd_config_allows_ipaapi_access_to_ifp(self.replicas[0])
class TestUnprivilegedUserPermissions(IntegrationTest):