Add initial TMT Gating Test

This adds a TMT plan for the gating test, which will currently
run a smoke tests only that are defined in the ignition upstream
repository: https://github.com/coreos/ignition
Verify the upstream repository PR for additional refrence:
https://github.com/coreos/ignition/pull/2076

JIRA: https://issues.redhat.com/browse/COS-2284

Signed-off-by: Tiago Bueno <tbueno@redhat.com>
This commit is contained in:
Tiago Bueno 2025-05-12 16:00:53 -03:00
parent 653de89484
commit 5c0deed278
No known key found for this signature in database
GPG Key ID: E05B66AA4A5AFC8C
5 changed files with 32 additions and 1 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

View File

@ -3,4 +3,4 @@ product_versions:
- rhel-10
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} # this is the testcase identifier, which OSCI pipeline uses
- !PassingTestCaseRule {test_case_name: osci.brew-build./tests/tmt/plans/smoke} # this is the testcase identifier, which OSCI pipeline uses

View File

@ -1,3 +1,4 @@
---
- hosts: localhost
roles:
- role: standard-test-basic
@ -19,3 +20,4 @@
- ignition-validate-rpm-installed:
dir: ./
run: /usr/bin/rpm -q ignition-validate

16
tests/tmt/plans/main.fmf Normal file
View File

@ -0,0 +1,16 @@
---
adjust:
enabled: false
when: distro == centos-stream or distro == fedora
prepare:
- name: Install ignition package
when: use_built_form_src is not defined or use_built_form_src == false
how: install
package: ignition
- name: Set IGNITION_BIN_DIR when installed package
when: use_built_form_src is not defined or use_built_form_src == false
how: shell
script: |
set -x -e -o pipefail
echo "IGNITION_BIN_DIR=/usr/lib/dracut/modules.d/30ignition" > /tmp/ignition_bin_dir

12
tests/tmt/plans/smoke.fmf Normal file
View File

@ -0,0 +1,12 @@
---
summary: Run gating tests
tag:
- smoke
discover:
- name: Internal gating tests
how: fmf
url: https://github.com/coreos/ignition.git
filter: 'tag: smoke'
execute:
how: tmt