Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions tests/tasks/el_repo_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,16 @@
when:
- ansible_facts['distribution'] == 'CentOS'
- ansible_facts['distribution_major_version'] == '6'

- name: Setup epel on EL 7
when:
- ansible_facts['distribution'] == 'CentOS'
- ansible_facts['distribution_major_version'] == '7'
yum_repository:
name: epel
description: Extra Packages for Enterprise Linux 7
baseurl: https://archives.fedoraproject.org/pub/archive/epel/{{ ansible_facts['distribution_major_version'] }}/{{ ansible_facts['architecture'] }}/
gpgcheck: 0
enabled: 1
skip_if_unavailable: 1
state: present
9 changes: 0 additions & 9 deletions tests/tasks/setup_802_1x_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@
debug:
msg: facts {{ ansible_facts | to_nice_json }}

# This task can be removed once the RHEL-8.5 is not tested anymore
- name: Install hostapd via CentOS Stream
command: dnf -y install http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/hostapd-2.10-1.el8.x86_64.rpm # noqa yaml[line-length]
when:
- ansible_facts['distribution_version'] is version('8.6', '<')
- ansible_facts['distribution_major_version'] == '8'
- ansible_facts['distribution'] == 'RedHat'
changed_when: false

- name: Install hostapd
package:
name: hostapd
Expand Down
23 changes: 5 additions & 18 deletions tests/tasks/setup_mock_wifi_wpa3_owe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,14 @@
# if using rpm ostree - so just skip this 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.
The test wants to 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)

# yamllint disable rule:line-length
# Even though hostapd can be installed via EPEL, Opportunistic Wireless Encryption
# (OWE) has not been enabled by default. To warrant the test support on RHEL(dist-tag),
# we setup hostapd copr repo to enable OWE option.
- name: Install hostapd and mac80211_hwsim kernel module in CentOS
- name: Install hostapd and mac80211_hwsim kernel modules in CentOS
shell: |
dnf -y copr enable liangwen12year/hostapd-owe
dnf -y install hostapd
release=$(uname -r)
tmp="${release/-//}"
Expand All @@ -43,21 +38,13 @@
changed_when: false
# yamllint enable rule:line-length

- name: Install hostapd in Fedora
- name: Install hostapd and mac80211_hwsim kernel modules in Fedora
shell: |
dnf -y copr enable liangwen12year/hostapd-owe
dnf -y install hostapd
when:
- ansible_facts['distribution'] == 'Fedora'
changed_when: false

- name: Install mac80211_hwsim kernel modules in Fedora
shell: |
dnf -y install koji
koji download-build --arch=$(uname -m) kernel-modules-internal-$(uname -r)
dnf -y install kernel-modules*.rpm
when:
- ansible_facts['distribution'] == 'Fedora'
when: ansible_facts['distribution'] == 'Fedora'
changed_when: false

- name: Create hostapd config
Expand Down
4 changes: 2 additions & 2 deletions tests/tests_wireless_wpa3_owe_nm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
__network_is_os_family_rhel: "{{ ansible_facts['os_family'] == 'RedHat' }}"
__is_rh_distro: "{{ __network_is_rh_distro }}"


# The test requires or should run with NetworkManager, therefore it cannot run
# on RHEL/CentOS 6
# OWE has not been supported by NetworkManager 1.18.8 on RHEL 7(dist-tag). Failed in setting up mock wifi on RHEL 8
Expand All @@ -33,4 +32,5 @@
when:
- __network_distro_major_version != '6'
- __network_distro_major_version | int > 7 and __network_is_centos or
__network_distro_major_version | int > 32 and __network_is_fedora
__network_distro_major_version | int > 7 and __network_is_rhel or
__network_distro_major_version | int > 32 and __network_is_fedora
Loading