summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGanna Kaihorodova <gkaihoro@redhat.com>2016-08-12 13:14:10 +0200
committerMartin Basti <mbasti@redhat.com>2016-08-16 12:55:40 +0200
commit64c5340329b8eeaf7d8995a3c86b9bdf10ea9252 (patch)
treec6ac3395b16c7c638b27b31e977491a44904034f
parentcf0816f41503c9a556373b37b987dcb7a9be040b (diff)
downloadfreeipa-64c5340329b8eeaf7d8995a3c86b9bdf10ea9252.tar.gz
freeipa-64c5340329b8eeaf7d8995a3c86b9bdf10ea9252.tar.xz
freeipa-64c5340329b8eeaf7d8995a3c86b9bdf10ea9252.zip
Fix for integration tests replication layouts
Domain level 0 doesn't allow to create replica file on CA-less master, testcases were skipped with Domain level 0 [https://fedorahosted.org/freeipa/ticket/6134] Reviewed-By: Martin Basti <mbasti@redhat.com> Reviewed-By: Petr Spacek <pspacek@redhat.com>
-rw-r--r--ipatests/test_integration/test_replication_layouts.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/ipatests/test_integration/test_replication_layouts.py b/ipatests/test_integration/test_replication_layouts.py
index 9fd4ddca2..c17881530 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):
@@ -27,6 +30,8 @@ class LayoutsBaseTest(IntegrationTest):
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
@@ -87,6 +92,8 @@ class TestCompleteTopologyWithCA(LayoutsBaseTest):
self.replication_is_working()
+@pytest.mark.skipif(config.domain_level == DOMAIN_LEVEL_0,
+ reason='does not work on DOMAIN_LEVEL_0 by design')
class Test2ConnectedTopologyWithoutCA(LayoutsBaseTest):
num_replicas = 33
@@ -105,6 +112,8 @@ class Test2ConnectedTopologyWithCA(LayoutsBaseTest):
self.replication_is_working()
+@pytest.mark.skipif(config.domain_level == DOMAIN_LEVEL_0,
+ reason='does not work on DOMAIN_LEVEL_0 by design')
class TestDoubleCircleTopologyWithoutCA(LayoutsBaseTest):
num_replicas = 29