From 5ee687408bd4a0688fc31d28babbd6ad58081f8f Mon Sep 17 00:00:00 2001 From: Thomas Woerner Date: Fri, 11 Jan 2019 16:32:00 +0100 Subject: [PATCH] Enable firewall in the tests for PR CI The firewall has not been enabled in the tests for PR CI so far. With these steps this is done now: install_packages: Install firewalld, enable and start firewalld service. install_server: Enable firewalld services freeipa-ldap freeipa-ldaps and dns after server installation. run_tests: Disable firewalld services freeipa-ldap freeipa-ldaps and dns after server uninstallation. Related-to: https://pagure.io/freeipa/issue/7755 Signed-off-by: Thomas Woerner Reviewed-By: Christian Heimes --- .test_runner_config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.test_runner_config.yaml b/.test_runner_config.yaml index 3ba83731a..b527d8a2c 100644 --- a/.test_runner_config.yaml +++ b/.test_runner_config.yaml @@ -50,11 +50,14 @@ steps: install_packages: - sed -i 's/%_install_langs \(.*\)/\0:fr/g' /etc/rpm/macros.image-language-conf - dnf install -y ${container_working_dir}/dist/rpms/*.rpm --best --allowerasing + - dnf install -y firewalld + - systemctl --now enable firewalld install_server: - ipa-server-install -U --domain ${server_domain} --realm ${server_realm} -p ${server_password} -a ${server_password} --setup-dns --setup-kra --auto-forwarders - sed -ri "s/mode = production/mode = development/" /etc/ipa/default.conf - systemctl restart httpd.service + - firewall-cmd --add-service={freeipa-ldap,freeipa-ldaps,dns} lint: - make V=0 lint webui_unit: @@ -78,6 +81,7 @@ steps: - ipa-server-install --uninstall -U # second uninstall to verify that --uninstall without installation works - ipa-server-install --uninstall -U + - firewall-cmd --remove-service={freeipa-ldap,freeipa-ldaps,dns} tests: ignore: - test_integration