From 020905338423f0539f79f61772f117764ef88717 Mon Sep 17 00:00:00 2001 From: François Cami Date: Jul 24 2020 18:11:04 +0000 Subject: ipatests: xfail TestIpaClientAutomountFileRestore's final test 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 Reviewed-By: Rob Crittenden --- diff --git a/ipatests/test_integration/test_nfs.py b/ipatests/test_integration/test_nfs.py index 532dd61..7272b0d 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()