From 74a8ec94da47bcc4a7d5ce4db7bafa86a2c47cfa Mon Sep 17 00:00:00 2001
From: Abhijeet Kasurde <akasurde@redhat.com>
Date: Thu, 17 Aug 2017 11:26:25 +0530
Subject: [PATCH] [WIP][tests] Replica Promotion improvements

* Change string check in replica install at domain level 0

Fixes: https://pagure.io/freeipa/issue/7104

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
---
 ipatests/test_integration/test_replica_promotion.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ipatests/test_integration/test_replica_promotion.py b/ipatests/test_integration/test_replica_promotion.py
index bc52566f15..a8255a62ab 100644
--- a/ipatests/test_integration/test_replica_promotion.py
+++ b/ipatests/test_integration/test_replica_promotion.py
@@ -52,8 +52,7 @@ def test_promotion_disabled(self):
                 '--ip-address', client.ip]
         result = client.run_command(args, raiseonerr=False)
         assert_error(result,
-                     'You must provide a file generated by ipa-replica-prepare'
-                     ' to create a replica when the domain is at level 0', 1)
+                     'You used the wrong mechanism to install a replica in domain level 0', 1)
 
     @pytest.mark.xfail(reason="Ticket N 6274")
     @replicas_cleanup
