mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Test if WSGI worker process count is set to 4
related ticket : https://pagure.io/freeipa/issue/7587 Signed-off-by: Mohammad Rizwan Yusuf <myusuf@redhat.com> Reviewed-By: Tibor Dudlak <tdudlak@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
committed by
Rob Crittenden
parent
28f4e0e0ec
commit
f0c3a35928
@@ -12,6 +12,7 @@ from __future__ import absolute_import
|
||||
import os
|
||||
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
|
||||
@@ -388,6 +389,21 @@ class TestInstallMaster(IntegrationTest):
|
||||
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):
|
||||
|
||||
|
Reference in New Issue
Block a user