Enable firewalld tests

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2021-08-02 16:26:10 +05:30
parent f6fa00bfff
commit 424004c4c0
5 changed files with 23 additions and 5 deletions

View file

@ -0,0 +1,3 @@
---
bugfixes:
- firewalld - enable integration after migration (https://github.com/ansible-collections/ansible.posix/pull/239).

View file

@ -1,6 +1,5 @@
destructive destructive
shippable/posix/group3 shippable/posix/group1
skip/aix skip/aix
skip/freebsd skip/freebsd
skip/osx skip/osx
disabled # fixme

View file

@ -40,3 +40,4 @@
- not (ansible_distribution == "Ubuntu" and ansible_distribution_version is version('14.04', '==')) - not (ansible_distribution == "Ubuntu" and ansible_distribution_version is version('14.04', '=='))
# Firewalld package on OpenSUSE (15+) require Python 3, so we skip on OpenSUSE running py2 on these newer distros # Firewalld package on OpenSUSE (15+) require Python 3, so we skip on OpenSUSE running py2 on these newer distros
- not (ansible_os_family == "Suse" and ansible_distribution_major_version|int != 42 and ansible_python.version.major != 3) - not (ansible_os_family == "Suse" and ansible_distribution_major_version|int != 42 and ansible_python.version.major != 3)
- not (ansible_facts.distribution == "CentOS" and ansible_distribution_major_version is version('7', '==')) # FIXME

View file

@ -9,8 +9,6 @@
# firewalld service operation test cases # firewalld service operation test cases
- include_tasks: service_test_cases.yml - include_tasks: service_test_cases.yml
# Skipping on CentOS 8 due to https://github.com/ansible/ansible/issues/64750
when: not (ansible_facts.distribution == "CentOS" and ansible_distribution_major_version is version('8', '=='))
# firewalld port operation test cases # firewalld port operation test cases
- include_tasks: port_test_cases.yml - include_tasks: port_test_cases.yml
@ -19,4 +17,4 @@
- import_tasks: source_test_cases.yml - import_tasks: source_test_cases.yml
# firewalld zone target operation test cases # firewalld zone target operation test cases
- import_tasks: zone_target_test_cases.yml - import_tasks: zone_target_test_cases.yml

View file

@ -0,0 +1,17 @@
---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- set_fact:
pkg_mgr: community.general.pkgng
ansible_pkg_mgr: community.general.pkgng
cacheable: yes
when: ansible_os_family == "FreeBSD"
- set_fact:
pkg_mgr: community.general.zypper
ansible_pkg_mgr: community.general.zypper
cacheable: yes
when: ansible_os_family == "Suse"