URL: https://github.com/freeipa/freeipa/pull/2296 Author: mrizwan93 Title: #2296: [Backport][ipa-4-6] Test if WSGI worker process count is set to 4 Action: opened
PR body: """ related ticket : https://pagure.io/freeipa/issue/7587 Signed-off-by: Mohammad Rizwan Yusuf <myu...@redhat.com> Reviewed-By: Tibor Dudlak <tdud...@redhat.com> Reviewed-By: Rob Crittenden <rcrit...@redhat.com> Reviewed-By: Christian Heimes <chei...@redhat.com> Reviewed-By: Florence Blanc-Renaud <fren...@redhat.com> """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/2296/head:pr2296 git checkout pr2296
From 2182d158014fa0aa7e85694fd5704ccb56424656 Mon Sep 17 00:00:00 2001 From: Mohammad Rizwan Yusuf <myu...@redhat.com> Date: Mon, 13 Aug 2018 18:54:48 +0530 Subject: [PATCH] Test if WSGI worker process count is set to 4 related ticket : https://pagure.io/freeipa/issue/7587 Signed-off-by: Mohammad Rizwan Yusuf <myu...@redhat.com> Reviewed-By: Tibor Dudlak <tdud...@redhat.com> Reviewed-By: Rob Crittenden <rcrit...@redhat.com> Reviewed-By: Christian Heimes <chei...@redhat.com> Reviewed-By: Florence Blanc-Renaud <fren...@redhat.com> --- ipatests/test_integration/test_installation.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ipatests/test_integration/test_installation.py b/ipatests/test_integration/test_installation.py index 6e034218a6..799e227b7e 100644 --- a/ipatests/test_integration/test_installation.py +++ b/ipatests/test_integration/test_installation.py @@ -9,6 +9,8 @@ import pytest from ipalib.constants import DOMAIN_LEVEL_0 +from ipaplatform.constants import constants +from ipaplatform.paths import paths from ipatests.pytest_ipa.integration.env_config import get_global_config from ipatests.test_integration.base import IntegrationTest from ipatests.pytest_ipa.integration import tasks @@ -287,6 +289,21 @@ def test_install_kra(self): def test_install_dns(self): tasks.install_dns(self.master) + def test_WSGI_worker_process(self): + """ Test if WSGI worker process count is set to 4 + + related ticket : https://pagure.io/freeipa/issue/7587 + """ + # check process count in httpd conf file i.e expected string + exp = b'WSGIDaemonProcess ipa processes=%d' % constants.WSGI_PROCESSES + httpd_conf = self.master.get_file_contents(paths.HTTPD_IPA_CONF) + assert exp in httpd_conf + + # check the process count + cmd = self.master.run_command('ps -eF') + wsgi_count = cmd.stdout_text.count('wsgi:ipa') + assert constants.WSGI_PROCESSES == wsgi_count + class TestInstallMasterKRA(IntegrationTest):
_______________________________________________ FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/freeipa-devel@lists.fedorahosted.org