mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-19 09:24:41 +00:00
CI: Enable CentOS 7 integration test
Removed `tests_wireless_nm.yml` as github CI has no mac80211_hwsim kernel module. Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
parent
5eb03fa992
commit
f508c27674
3 changed files with 16 additions and 1 deletions
11
.github/Dockerfile.c7-network-role
vendored
Normal file
11
.github/Dockerfile.c7-network-role
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
FROM quay.io/centos/centos:centos7
|
||||
|
||||
RUN yum -y install epel-release && \
|
||||
yum -y upgrade && \
|
||||
yum -y install NetworkManager NetworkManager-wifi \
|
||||
procps-ng iproute ansible openssh-server openssh-clients \
|
||||
dnsmasq hostapd wpa_supplicant openssl ethtool iputils && yum clean all
|
||||
|
||||
VOLUME [ "/sys/fs/cgroup" ]
|
||||
|
||||
CMD ["/usr/sbin/init"]
|
||||
5
.github/run_test.sh
vendored
5
.github/run_test.sh
vendored
|
|
@ -5,6 +5,7 @@ set -euo pipefail
|
|||
TEST_SOURCE_DIR="/network-role"
|
||||
C8S_CONTAINER_IMAGE="quay.io/linux-system-roles/c8s-network-role"
|
||||
C8_CONTAINER_IMAGE="quay.io/linux-system-roles/c8-network-role"
|
||||
C7_CONTAINER_IMAGE="quay.io/linux-system-roles/c7-network-role"
|
||||
PODMAN_OPTS="--systemd=true --privileged"
|
||||
|
||||
read -r -d '' TEST_FILES << EOF || :
|
||||
|
|
@ -21,7 +22,6 @@ tests_ethtool_ring_nm.yml
|
|||
tests_ipv6_disabled_nm.yml
|
||||
tests_ipv6_nm.yml
|
||||
tests_vlan_mtu_nm.yml
|
||||
tests_wireless_nm.yml
|
||||
EOF
|
||||
|
||||
EXEC_PATH=$(dirname "$(realpath "$0")")
|
||||
|
|
@ -53,6 +53,9 @@ case $OS_TYPE in
|
|||
"c8")
|
||||
CONTAINER_IMAGE=$C8_CONTAINER_IMAGE
|
||||
;;
|
||||
"c7")
|
||||
CONTAINER_IMAGE=$C7_CONTAINER_IMAGE
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported OS type $OS_TYPE"
|
||||
exit 1
|
||||
|
|
|
|||
1
.github/workflows/integration.yml
vendored
1
.github/workflows/integration.yml
vendored
|
|
@ -14,6 +14,7 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- os: "c7"
|
||||
- os: "c8"
|
||||
- os: "c8s"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue