test: improve name text for skipped ostree tests

Improve the name text for skipped ostree tests to explain
why the test is skipped.
Add tests/tasks/ostree_systems_check.yml for use by test
playbooks that may be skipped on ostree systems.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
This commit is contained in:
Rich Megginson 2024-03-17 14:38:46 -06:00 committed by Richard Megginson
parent 44f937d82b
commit ab77dd159e
8 changed files with 28 additions and 14 deletions

View file

@ -3,9 +3,10 @@
- name: Play for testing team plugin installation
hosts: all
tasks:
- name: Check if rpm ostree system - cannot test
meta: end_host
when: __network_is_ostree | d(false)
- name: Check if test can run on ostree systems
include_tasks: tasks/ostree_systems_check.yml
vars:
package: NetworkManager-team
- name: Remove the NetworkManager-team package
package:

View file

@ -23,10 +23,10 @@
tags:
- always
- name: Cannot test ostree systems because the package can not be removed
or installed - 'NetworkManager-wifi'
meta: end_host
when: __network_is_ostree | d(false)
- name: Check if test can run on ostree systems
include_tasks: tasks/ostree_systems_check.yml
vars:
package: NetworkManager-wifi
- name: Test the wifi connection without NetworkManager restarted
tags:

View file

@ -3,9 +3,10 @@
- name: Play for testing wireless plugin installation
hosts: all
tasks:
- name: Check if rpm ostree system - cannot test
meta: end_host
when: __network_is_ostree | d(false)
- name: Check if test can run on ostree systems
include_tasks: tasks/ostree_systems_check.yml
vars:
package: NetworkManager-wifi
- name: Remove the NetworkManager-wifi package
package:

View file

@ -0,0 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
---
- name: Cannot test ostree systems because the package cannot be removed
or installed - '{{ package }}'
meta: end_host
when: __network_is_ostree | d(false)

View file

@ -18,7 +18,11 @@
block:
# It is currently too difficult to install the required kernel
# if using rpm ostree - so just skip this test
- name: Check if rpm ostree system - cannot test
- name: >-
This is an rpm-ostree system. This test cannot be run on such a system.
The test wants to install the hostapd package from copr, and install
the mac80211_hwsim kernel module. These operations are currently not
supported on rpm-ostree systems.
meta: end_host
when: __network_is_ostree | d(false)

View file

@ -18,7 +18,11 @@
block:
# It is currently too difficult to install the required kernel
# if using rpm ostree - so just skip this test
- name: Check if rpm ostree system - cannot test
- name: >-
This is an rpm-ostree system. This test cannot be run on such a system.
The test wants to install the hostapd package from copr, and install
the mac80211_hwsim kernel module. These operations are currently not
supported on rpm-ostree systems.
meta: end_host
when: __network_is_ostree | d(false)

View file

@ -21,4 +21,3 @@
import_playbook: playbooks/tests_team.yml
when:
- ansible_distribution_major_version != '6'
- ansible_distribution != 'Fedora'

View file

@ -21,4 +21,3 @@
import_playbook: playbooks/tests_wireless_and_network_restart.yml
when:
- ansible_distribution_major_version != '6'
- ansible_distribution != 'Fedora'