Skip to content

Commit

Permalink
test: Add python_version to test facts gather ansible_python_version
Browse files Browse the repository at this point in the history
Enhancement: Add python_version to test required_facts to gather
ansible_python_version fact

Reason: The role didn't gather ansible_python_version but used it in
tests_fcontext.yml

Result: The bug is fixed
  • Loading branch information
spetrosi authored and richm committed Feb 13, 2024
1 parent 2747c14 commit 61a94ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/set_selinux_variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- distribution
- distribution_major_version
- os_family
- python_version
__selinux_test_facts_regex: "{{ '^(' ~
(__selinux_test_facts | join('|')) ~ ')$' }}"
__selinux_test_facts_subsets: "{{ ['!all', '!min'] +
Expand Down
1 change: 1 addition & 0 deletions tests/tests_fcontext.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
- name: Check if selinux role sets SELinux fcontext mappings
hosts: all
gather_facts: false
vars:
__str1: >-
/tmp/test_dir1[^ ]+[ ]+directory[
Expand Down

0 comments on commit 61a94ce

Please sign in to comment.