Add TMT test infrastructure for netavark

Add .fmf/, plans/, and tests/ directories to enable automated
tier0 testing in the RHEL-on-GitLab MR pipeline. Port TMT
configuration from rhel-9.8.0 branch, updated to reference
c10s branch of the test repository.

Also add tier0 gating rule to gating.yaml.

Resolves: RHEL-180350
This commit is contained in:
Jindrich Novy 2026-05-29 12:31:41 +02:00
parent 265fdf1b4c
commit f4e981bc7b
5 changed files with 43 additions and 2 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

View File

@ -3,4 +3,5 @@
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules: []
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -31,7 +31,7 @@ Epoch: 102
Epoch: 2
%endif
Version: 1.17.2
Release: 1%{?dist}
Release: 2%{?dist}
# The `AND` needs to be uppercase in the License for SPDX compatibility
License: Apache-2.0 AND BSD-3-Clause AND MIT
%if %{defined golang_arches_future}
@ -141,6 +141,10 @@ cd docs
%{_unitdir}/%{name}-nftables-reload.service
%changelog
* Fri May 29 2026 Jindrich Novy <jnovy@redhat.com> - 2:1.17.2-2
- Add TMT test infrastructure for tier0 gating
- Resolves: RHEL-180350
* Thu Feb 05 2026 Jindrich Novy <jnovy@redhat.com> - 2:1.17.2-1
- update to https://github.com/containers/netavark/releases/tag/v1.17.2
- Related: RHEL-122178

27
plans/netavark.fmf Normal file
View File

@ -0,0 +1,27 @@
---
summary: Run netavark tests
description: Test plan for netavark
contact: jnovy@redhat.com
discover:
how: fmf
provision:
how: artemis
prepare:
- how: install
package:
- crun
- podman
- podman-tests
- git
- how: shell
script: |
BATS_VERSION=1.11.0
curl -L https://github.com/bats-core/bats-core/archive/refs/tags/v$BATS_VERSION.tar.gz | tar zx
cd bats-core-$BATS_VERSION
./install.sh /usr
execute:
how: tmt

8
tests/main.fmf Normal file
View File

@ -0,0 +1,8 @@
summary: Run basic podman tests to verify netavark
test: cd /usr/share/podman/test/system && bats 030-run.bats 075-exec.bats 500-networking.bats
require:
- podman
- netavark
duration: 15m
tag:
- gate