mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 15:15:26 +01:00
Merge pull request #581 from saito-hideki/pr/selinux_integration_test
[CI] Modify conditions for selinux integratuion tests SUMMARY Conditions for selinux integration tests have been modified to be more accurate. This fix only affects integration tests, so it will not affect module behavior. ISSUE TYPE CI tests Pull Request COMPONENT NAME ansible.posix.selinux ADDITIONAL INFORMATION None
This commit is contained in:
commit
9171b7fcf1
2 changed files with 5 additions and 2 deletions
3
changelogs/fragments/581_ci_selinux.yml
Normal file
3
changelogs/fragments/581_ci_selinux.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
trivial:
|
||||||
|
- selinux - conditions for selinux integration tests have been modified to be more accurate.
|
||||||
|
|
@ -128,8 +128,8 @@
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- selinux_config_original | length == selinux_config_after | length
|
- selinux_config_original | length == selinux_config_after | length
|
||||||
- selinux_config_after[selinux_config_after.index('SELINUX=disabled')] is search("^SELINUX=\w+$")
|
- (selinux_config_after | select("search", "^SELINUX=disabled\s*$") | list | length) > 0
|
||||||
- selinux_config_after[selinux_config_after.index('SELINUXTYPE=targeted')] is search("^SELINUXTYPE=\w+$")
|
- (selinux_config_after | select("search", "^SELINUXTYPE=targeted\s*$") | list | length) > 0
|
||||||
|
|
||||||
- name: TEST 1 | Disable SELinux again, with kernel arguments update
|
- name: TEST 1 | Disable SELinux again, with kernel arguments update
|
||||||
ansible.posix.selinux:
|
ansible.posix.selinux:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue