From 27e9988fe2de33e9b833e59614dd151e83ff0336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Cami?= Date: Mon, 20 Jul 2020 16:59:35 +0200 Subject: [PATCH] ipatests: xfail TestIpaClientAutomountFileRestore's final test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Due to a change in authselect, rolling back the installation does not produce the same nsswitch.conf as on a clean install. Mark the test xfail until ipa-client-install is enhanced to use authselect profile backup/restore. Related: https://pagure.io/freeipa/issue/8189 Signed-off-by: François Cami Reviewed-By: Rob Crittenden --- 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 8c622de2b..f8804fb7f 100644 --- a/ipatests/test_integration/test_nfs.py +++ b/ipatests/test_integration/test_nfs.py @@ -349,10 +349,24 @@ class TestIpaClientAutomountFileRestore(IntegrationTest): cmd = self.clients[0].run_command(grep_automount_command) assert cmd.stdout_text.split() == after_ipa_client_install + self.verify_checksum_after_ipaclient_uninstall( + sha256nsswitch_cmd=sha256nsswitch_cmd, + orig_sha256=orig_sha256 + ) + + def verify_checksum_after_ipaclient_uninstall( + self, + sha256nsswitch_cmd, + orig_sha256 + ): tasks.uninstall_client(self.clients[0]) cmd = self.clients[0].run_command(sha256nsswitch_cmd) assert cmd.stdout_text == orig_sha256 + @pytest.mark.xfail( + reason="https://pagure.io/freeipa/issue/8189", + strict=True + ) def test_nsswitch_backup_restore_sssd(self): self.nsswitch_backup_restore()