URL: https://github.com/freeipa/freeipa/pull/1783
Author: gkaihorodova
 Title: #1783: [Test fix] Fix in IPA's multihost fixture
Action: opened

PR body:
"""
AD related tests, which aren't require all set of AD machines were skipped with 
error msg: Not enough resources configured. Domain 1 not configured: {'hosts': 
{'ad_subdomain': 1, 'ad': 1, 'ad_treedomain': 1}, 'type': 'AD'}

Changed hard coded number of AD machines to use
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1783/head:pr1783
git checkout pr1783
From 8bcf8d53103acdf9347b4d58b09a6d03e03f7a19 Mon Sep 17 00:00:00 2001
From: Ganna Kaihorodova <gkaih...@redhat.com>
Date: Thu, 5 Apr 2018 16:02:21 +0200
Subject: [PATCH] [Test fix] Fix in IPA's multihost fixture

AD related tests, which aren't require all set of AD machines
were skipped with error msg: Not enough resources configured.

Changed hard coded number of AD machines to use.
---
 ipatests/pytest_plugins/integration/__init__.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ipatests/pytest_plugins/integration/__init__.py b/ipatests/pytest_plugins/integration/__init__.py
index 88fbd08010..0892561c01 100644
--- a/ipatests/pytest_plugins/integration/__init__.py
+++ b/ipatests/pytest_plugins/integration/__init__.py
@@ -218,7 +218,11 @@ def mh(request, class_integration_logs):
     for _i in range(cls.num_ad_domains):
         domain_descriptions.append({
             'type': 'AD',
-            'hosts': {'ad': 1, 'ad_subdomain': 1, 'ad_treedomain': 1},
+            'hosts': {
+                'ad': 1,
+                'ad_subdomain': cls.num_ad_domains,
+                'ad_treedomain': cls.num_ad_domains,
+            }
         })
 
     mh = make_multihost_fixture(
_______________________________________________
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org

Reply via email to