mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
test: skip 802_1x tests on el7, RHEL other than 8
802_1x tests are only supported on EL8 and later, and RHEL only on 8. Signed-off-by: Rich Megginson <rmeggins@redhat.com>
This commit is contained in:
parent
942e01da62
commit
9371bc5040
3 changed files with 16 additions and 8 deletions
|
|
@ -65,12 +65,18 @@ MINIMUM_VERSION = "minimum_version"
|
|||
EXTRA_RUN_CONDITION = "extra_run_condition"
|
||||
NM_ONLY_TESTS = {
|
||||
"playbooks/tests_802_1x_updated.yml": {
|
||||
EXTRA_RUN_CONDITION: "ansible_distribution != 'RedHat' or\n ansible_distr\
|
||||
ibution_major_version | int < 9",
|
||||
EXTRA_RUN_CONDITION: (
|
||||
"(ansible_distribution != 'RedHat' and\n"
|
||||
" ansible_distribution_major_version | int > 7) or\n"
|
||||
" ansible_distribution_major_version | int == 8"
|
||||
),
|
||||
},
|
||||
"playbooks/tests_802_1x.yml": {
|
||||
EXTRA_RUN_CONDITION: "ansible_distribution != 'RedHat' or\n ansible_distr\
|
||||
ibution_major_version | int < 9",
|
||||
EXTRA_RUN_CONDITION: (
|
||||
"(ansible_distribution != 'RedHat' and\n"
|
||||
" ansible_distribution_major_version | int > 7) or\n"
|
||||
" ansible_distribution_major_version | int == 8"
|
||||
),
|
||||
},
|
||||
"playbooks/tests_ignore_auto_dns.yml": {},
|
||||
"playbooks/tests_bond_options.yml": {},
|
||||
|
|
|
|||
|
|
@ -21,5 +21,6 @@
|
|||
import_playbook: playbooks/tests_802_1x.yml
|
||||
when:
|
||||
- ansible_distribution_major_version != '6'
|
||||
- ansible_distribution != 'RedHat' or
|
||||
ansible_distribution_major_version | int < 9
|
||||
- (ansible_distribution != 'RedHat' and
|
||||
ansible_distribution_major_version | int > 7) or
|
||||
ansible_distribution_major_version | int == 8
|
||||
|
|
|
|||
|
|
@ -21,5 +21,6 @@
|
|||
import_playbook: playbooks/tests_802_1x_updated.yml
|
||||
when:
|
||||
- ansible_distribution_major_version != '6'
|
||||
- ansible_distribution != 'RedHat' or
|
||||
ansible_distribution_major_version | int < 9
|
||||
- (ansible_distribution != 'RedHat' and
|
||||
ansible_distribution_major_version | int > 7) or
|
||||
ansible_distribution_major_version | int == 8
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue