URL: https://github.com/freeipa/freeipa/pull/3732 Author: mrizwan93 Title: #3732: ipatests: File ownership and permission for dirsrv log instance after restore Action: opened
PR body: """ Check if file ownership and permission is set to dirsrv:dirsrv and 770 on /var/log/dirsrv/slapd-<instance> after ipa-restore. related ticket : https://pagure.io/freeipa/issue/7725 Signed-off-by: Mohammad Rizwan Yusuf <myu...@redhat.com> """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/3732/head:pr3732 git checkout pr3732
From 4b43fc48dae1878756facb0bde73858390d01506 Mon Sep 17 00:00:00 2001 From: Mohammad Rizwan Yusuf <myu...@redhat.com> Date: Wed, 25 Sep 2019 15:13:32 +0530 Subject: [PATCH] Check file ownership and permission for dirsrv log instance Check if file ownership and permission is set to dirsrv:dirsrv and 770 on /var/log/dirsrv/slapd-<instance> after ipa-restore. related ticket : https://pagure.io/freeipa/issue/7725 Signed-off-by: Mohammad Rizwan Yusuf <myu...@redhat.com> --- ipatests/test_integration/test_backup_and_restore.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ipatests/test_integration/test_backup_and_restore.py b/ipatests/test_integration/test_backup_and_restore.py index 49d231b6ca..497851ac9d 100644 --- a/ipatests/test_integration/test_backup_and_restore.py +++ b/ipatests/test_integration/test_backup_and_restore.py @@ -217,6 +217,14 @@ def test_full_backup_and_restore(self): self.master.run_command(['ipa-restore', backup_path], stdin_text=dirman_password + '\nyes') + # check the file permssion and ownership is set to 770 and + # dirsrv:dirsrv after restore on /var/log/dirsrv/slapd-<instance> + # related ticket : https://pagure.io/freeipa/issue/7725 + dirsrv_log_path = paths.VAR_LOG_DIRSRV_INSTANCE_TEMPLATE + cmd = self.master.run_command(['stat', '-c', + '"%a %G:%U"', dirsrv_log_path]) + assert "770 dirsrv:dirsrv" in cmd.stdout_text + def test_full_backup_and_restore_with_removed_users(self): """regression test for https://fedorahosted.org/freeipa/ticket/3866""" with restore_checker(self.master):
_______________________________________________ FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/freeipa-devel@lists.fedorahosted.org