Skip to content
Draft
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
34 changes: 34 additions & 0 deletions gatting/plans/testing-farm-tlog.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
provision:
# nested virtualization supported runner required
hardware:
cpu:
processors: ">= 2"
memory: ">= 6 GB"
virtualization:
is-supported: true
prepare:
- how: install
package:
- git
- podman
- skopeo
- tmt+provision-virtual
- tmt+provision-bootc
- how: shell
script: |
systemctl start libvirtd
systemctl status libvirtd
environment:
TMT_VERBOSE: 1
execute:
how: tmt
discover:
how: fmf
test:
- /testing-farm
finish:
how: shell
script:
# move all tmt plan logs to tmt plan data folder
- mkdir -p $TMT_PLAN_DATA/test-tmt-log
- cp -r /var/tmp/tmt/run-* $TMT_PLAN_DATA/test-tmt-log
15 changes: 15 additions & 0 deletions gatting/plans/tlog.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
provision:
# use bootc plugin
# plugin configuration doc: https://tmt.readthedocs.io/en/stable/plugins/provision.html#bootc
how: bootc
container-file: /gatting/tests/Containerfile
container-file-workdir: .
disk: 20
summary: Execute wget test
execute:
how: tmt
# run test here
script: |
set -xeu
wget --version
wget --help
24 changes: 24 additions & 0 deletions gatting/tests/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Choose nightly base image from https://images.paas.redhat.com/repository/bootc/rhel-bootc?tab=tags
FROM images.paas.redhat.com/bootc/rhel-bootc:latest-9.6

# Add nightly compose repo into container image to install wget
RUN cat <<EOF >> /etc/yum.repos.d/rhel-96.repo
[rhel96-baseos]
name=rhel96-baseos
baseurl=http://download-node-02.eng.bos.redhat.com/rhel-9/nightly/RHEL-9/latest-RHEL-9.6.0/compose/BaseOS/\$basearch/os/
enabled=1
gpgcheck=0
repo_gpgcheck=0

[rhel96-appstream]
name=rhel96-appstream
baseurl=http://download-node-02.eng.bos.redhat.com/rhel-9/nightly/RHEL-9/latest-RHEL-9.6.0/compose/AppStream/\$basearch/os/
enabled=1
gpgcheck=0
repo_gpgcheck=0
EOF

# Install wget from nightly compose
RUN dnf -y install tlog, systemd-journal-remote, glibc-all-langpacks, python3, python3-pytest, python3-pexpect, python3-systemd, tcsh && \
dnf clean all

3 changes: 3 additions & 0 deletions gatting/tests/testing-farm.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summary: Deploy testing farm runner to run wget tmt test
test: cd ../.. && tmt run -vvvvv plans --name /gatting/plans/tlog
duration: 10m