Patch attached.
Part of https://fedorahosted.org/freeipa/ticket/5379

Martin^2

From 85124720de8fefbf4f777c76af07b96e586a48cf Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Mon, 16 Nov 2015 15:58:46 +0100
Subject: [PATCH] CI test: Fix installation of KRA on a replica

With domain level 1 installation of KRA has been changed on replica.

https://fedorahosted.org/freeipa/ticket/5379
---
 ipatests/test_integration/tasks.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ipatests/test_integration/tasks.py b/ipatests/test_integration/tasks.py
index ae26444f6d267c2ea2688cb2aaab5a2059688595..0ee50a8e289b0648103ed86d5739d0cce08aa070 100644
--- a/ipatests/test_integration/tasks.py
+++ b/ipatests/test_integration/tasks.py
@@ -358,10 +358,11 @@ def install_replica(master, replica, setup_ca=True, setup_dns=False,
         assert setup_ca, "CA must be installed on replica with KRA"
         args = [
             "ipa-kra-install",
-            replica_filename,
             "-p", replica.config.dirman_password,
             "-U",
         ]
+        if domainlevel(master) == 0:
+            args.append(replica_filename)
         replica.run_command(args)
 
     kinit_admin(replica)
-- 
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