URL: https://github.com/freeipa/freeipa/pull/2749
Author: t-woerner
 Title: #2749: Enable firewall in the tests for PR CI
Action: opened

PR body:
"""
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 <twoer...@redhat.com>
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/2749/head:pr2749
git checkout pr2749
From 5a3ec8403a55f0bcf9b182649b70c0cf28c3340e Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoer...@redhat.com>
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 <twoer...@redhat.com>
---
 .test_runner_config.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.test_runner_config.yaml b/.test_runner_config.yaml
index 3ba83731a2..b527d8a2cb 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
_______________________________________________
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

Reply via email to