Hello!

Domain level 0 doesn't allow to create replica file on CA master, testcase was 
skipped with Domain level 0

https://fedorahosted.org/freeipa/ticket/6134

Best regards,
Ganna Kaihorodova
Associate Software Quality Engineer


From 7a586aff4b3709d19ac503340b686ab161e6514a Mon Sep 17 00:00:00 2001
From: Ganna Kaihorodova <gkaih...@redhat.com>
Date: Thu, 4 Aug 2016 15:10:45 +0200
Subject: [PATCH] Fix for integration tests replication layouts

Domain level 0 doesn't allow to create replica file on CA master, testcase was skipped with Domain level 0

[https://fedorahosted.org/freeipa/ticket/6134]
---
 ipatests/test_integration/test_replication_layouts.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/ipatests/test_integration/test_replication_layouts.py b/ipatests/test_integration/test_replication_layouts.py
index 9fd4ddca299ca99053aae17ae1d43d3c64650f40..e3f703459234e7b9c0be15275d83d35763ac0fba 100644
--- a/ipatests/test_integration/test_replication_layouts.py
+++ b/ipatests/test_integration/test_replication_layouts.py
@@ -3,10 +3,13 @@
 #
 
 import time
-
+import pytest
+from ipalib.constants import DOMAIN_LEVEL_0
+from ipatests.test_integration.env_config import get_global_config
 from ipatests.test_integration.base import IntegrationTest
 from ipatests.test_integration import tasks
 
+config = get_global_config()
 
 class LayoutsBaseTest(IntegrationTest):
 
@@ -26,7 +29,8 @@ class LayoutsBaseTest(IntegrationTest):
         for r in self.replicas:
             r.run_command(['ipa', 'user-show', test_user])
 
-
+@pytest.mark.skipif(config.domain_level == DOMAIN_LEVEL_0,
+                    reason='does not work on DOMAIN_LEVEL_0 by design')
 class TestLineTopologyWithoutCA(LayoutsBaseTest):
 
     num_replicas = 3
-- 
2.7.4

-- 
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