From 5f9d5281848a4de3acd669caa277d1b830722b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Cami?= Date: Tue, 11 Feb 2020 16:03:31 +0100 Subject: [PATCH] ipatests: make sure ipa-client-automount reverts sssd.conf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Due to https://pagure.io/SSSD/sssd/issue/4149 ipa-client-automount fails to remove the ipa_automount_location entry from sssd.conf. Test that autofs_provider and ipa_automount_location are removed. Fixes: https://pagure.io/freeipa/issue/8190 Signed-off-by: François Cami Reviewed-By: Alexander Bokovoy --- ipatests/test_integration/test_nfs.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ipatests/test_integration/test_nfs.py b/ipatests/test_integration/test_nfs.py index 7d298368a..532dd61af 100644 --- a/ipatests/test_integration/test_nfs.py +++ b/ipatests/test_integration/test_nfs.py @@ -332,6 +332,20 @@ class TestIpaClientAutomountFileRestore(IntegrationTest): "ipa-client-automount", "--uninstall", "-U" ]) + if not no_sssd: + # https://pagure.io/freeipa/issue/8190 + # check that no ipa_automount_location is left in sssd.conf + # also check for autofs_provider for good measure + grep_automount_in_sssdconf_cmd = \ + "egrep ipa_automount_location\\|autofs_provider " \ + "/etc/sssd/sssd.conf" + cmd = self.clients[0].run_command( + grep_automount_in_sssdconf_cmd, raiseonerr=False + ) + assert cmd.returncode == 1, \ + "PG8190 regression found: ipa_automount_location still " \ + "present in sssd.conf" + cmd = self.clients[0].run_command(grep_automount_command) assert cmd.stdout_text.split() == after_ipa_client_install