This patch fixes failing DNS/DSSEC/KRA tests for backup and restore into already installed IPA master.

It may require my PATCH 0065 to apply cleanly.

Additionally, applying my PATCH 0066 (acked but not pushed as of writing this) should result in all backup/restore tests passing.

--
Martin^3 Babinsky
From 18b7f256c94f0becff8511f338ae5c32d961f6db Mon Sep 17 00:00:00 2001
From: Martin Babinsky <mbabi...@redhat.com>
Date: Wed, 23 Sep 2015 12:47:13 +0200
Subject: [PATCH] re-kinit after ipa-restore in backup/restore CI tests

In FreeIPA CI-tests the install_master task automatically performs kinit after
successfull installation. This may break some backup/restore tests which
perform backup into previously installed IPA master. In this case it is
neccessary to re-kinit after restore.
---
 ipatests/test_integration/test_backup_and_restore.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ipatests/test_integration/test_backup_and_restore.py b/ipatests/test_integration/test_backup_and_restore.py
index 82d056063809b9e54aa68d62f21749ab860f6613..1eefb3e39d07bf54f26a1603f55e07cb150aafda 100644
--- a/ipatests/test_integration/test_backup_and_restore.py
+++ b/ipatests/test_integration/test_backup_and_restore.py
@@ -273,6 +273,7 @@ class BaseBackupAndRestoreWithDNS(IntegrationTest):
 
             tasks.resolve_record(self.master.ip, self.example_test_zone)
 
+            tasks.kinit_admin(self.master)
             self.master.run_command([
                 'ipa', 'dnszone-add',
                 self.example2_test_zone,
@@ -343,6 +344,7 @@ class BaseBackupAndRestoreWithDNSSEC(IntegrationTest):
                 self.example_test_zone, self.log), ("Zone is not signed after "
                                                     "restore")
 
+            tasks.kinit_admin(self.master)
             self.master.run_command([
                 'ipa', 'dnszone-add',
                 self.example2_test_zone,
@@ -423,6 +425,7 @@ class BaseBackupAndRestoreWithKRA(IntegrationTest):
             self.master.run_command(['ipa-restore', backup_path],
                                     stdin_text=dirman_password + '\nyes')
 
+            tasks.kinit_admin(self.master)
             # retrieve secret after restore
             self.master.run_command([
                 "ipa", "vault-retrieve",
-- 
2.4.3

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to