From 062e18c4f0c3febcac7db99e8a7e4c690684db60 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Thu, 16 Jul 2020 18:45:52 +0200 Subject: [PATCH] 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 Reviewed-By: Rob Crittenden --- ipatests/test_integration/test_replica_promotion.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/ipatests/test_integration/test_replica_promotion.py b/ipatests/test_integration/test_replica_promotion.py index 5b866df78..82117054f 100644 --- a/ipatests/test_integration/test_replica_promotion.py +++ b/ipatests/test_integration/test_replica_promotion.py @@ -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):