URL: https://github.com/freeipa/freeipa/pull/1467 Author: mrizwan93 Title: #1467: test for broken ipa-restore with python2 Action: opened
PR body: """ ipa-restore was failing when ran with python2 with the error: [Errno 2] No such file or directory: u'/etc/dirsrv/slapd-IPADOMAIN-COM/dse.ldif' The ipa-restore command failed. See /var/log/iparestore.log for more information This test checks if ipa-restore success with python2 related ticket: https://pagure.io/freeipa/issue/7231 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/1467/head:pr1467 git checkout pr1467
From 0df47f864e97c6c5b5fba9ba702baa5727c235ed Mon Sep 17 00:00:00 2001 From: Mohammad Rizwan Yusuf <myu...@redhat.com> Date: Mon, 15 Jan 2018 14:22:11 +0530 Subject: [PATCH] ipa-restore was failing when ran with python2 with the error: [Errno 2] No such file or directory: u'/etc/dirsrv/slapd-IPADOMAIN-COM/dse.ldif' The ipa-restore command failed. See /var/log/iparestore.log for more information This test checks if ipa-restore success with python2 related ticket: https://pagure.io/freeipa/issue/7231 Signed-off-by: Mohammad Rizwan Yusuf <myu...@redhat.com> --- .../test_integration/test_backup_and_restore.py | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/ipatests/test_integration/test_backup_and_restore.py b/ipatests/test_integration/test_backup_and_restore.py index fbc882aa06..1232ee2b2a 100644 --- a/ipatests/test_integration/test_backup_and_restore.py +++ b/ipatests/test_integration/test_backup_and_restore.py @@ -203,6 +203,30 @@ def test_full_backup_and_restore_with_selinux_booleans_off(self): assert 'httpd_can_network_connect --> on' in result.stdout_text assert 'httpd_manage_ipa --> on' in result.stdout_text + def test_restore_with_python2(self): + """ipa-restore was failing when ran with python2 with the error + [Errno 2] No such file or directory: + u'/etc/dirsrv/slapd-IPADOMAIN-COM/dse.ldif' + The ipa-restore command failed. + See /var/log/iparestore.log for more information + + This test checks if ipa-restore success with python2 + + related ticket: https://pagure.io/freeipa/issue/7231""" + + with restore_checker(self.master): + backup_path = backup(self.master) + + self.master.run_command(['ipa-server-install', + '--uninstall', + '-U']) + + dirman_password = self.master.config.dirman_password + arg = ['python2', 'ipa-restore', backup_path] + cmd = self.master.run_command(arg, + stdin_text=dirman_password + '\nyes') + assert cmd.returncode == 0 + class BaseBackupAndRestoreWithDNS(IntegrationTest): """
_______________________________________________ FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org