mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 15:15:26 +01:00
Enable firewalld tests
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
f6fa00bfff
commit
424004c4c0
5 changed files with 23 additions and 5 deletions
3
changelogs/fragments/firewalld_test.yml
Normal file
3
changelogs/fragments/firewalld_test.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- firewalld - enable integration after migration (https://github.com/ansible-collections/ansible.posix/pull/239).
|
||||||
|
|
@ -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
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
17
tests/integration/targets/setup_pkg_mgr/tasks/main.yml
Normal file
17
tests/integration/targets/setup_pkg_mgr/tasks/main.yml
Normal 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"
|
||||||
Loading…
Reference in a new issue