mirror of
https://github.com/linux-system-roles/network.git
synced 2026-08-03 00:02:29 +00:00
CI: Enable CentOS 9 stream integration test
Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
parent
2ebc8b5022
commit
0e3d480de7
3 changed files with 19 additions and 0 deletions
14
.github/Dockerfile.c9s-network-role
vendored
Normal file
14
.github/Dockerfile.c9s-network-role
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
FROM quay.io/centos/centos:stream9-development
|
||||
|
||||
RUN dnf -y install dnf-plugins-core && \
|
||||
dnf config-manager --set-enabled crb && \
|
||||
dnf -y upgrade && \
|
||||
dnf -y install NetworkManager NetworkManager-wifi \
|
||||
procps-ng iproute openssh-server openssh-clients systemd-udev \
|
||||
dnsmasq wpa_supplicant openssl ethtool iputils python3-gobject-base \
|
||||
python3-pip python3-jmespath && \
|
||||
pip3 install ansible==2.9.*
|
||||
|
||||
VOLUME [ "/sys/fs/cgroup" ]
|
||||
|
||||
CMD ["/usr/sbin/init"]
|
||||
4
.github/run_test.sh
vendored
4
.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"
|
||||
C7_CONTAINER_IMAGE="quay.io/linux-system-roles/c7-network-role"
|
||||
C9S_CONTAINER_IMAGE="quay.io/linux-system-roles/c9s-network-role"
|
||||
PODMAN_OPTS="--systemd=true --privileged"
|
||||
|
||||
# FIXME: test_wireless has been removed because is not supported on CI
|
||||
|
|
@ -56,6 +57,9 @@ case $OS_TYPE in
|
|||
"c7")
|
||||
CONTAINER_IMAGE=$C7_CONTAINER_IMAGE
|
||||
;;
|
||||
"c9s")
|
||||
CONTAINER_IMAGE=$C9S_CONTAINER_IMAGE
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported OS type $OS_TYPE"
|
||||
exit 1
|
||||
|
|
|
|||
1
.github/workflows/integration.yml
vendored
1
.github/workflows/integration.yml
vendored
|
|
@ -16,6 +16,7 @@ jobs:
|
|||
include:
|
||||
- os: "c7"
|
||||
- os: "c8s"
|
||||
- os: "c9s"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue