From 9f0780dedca0a77282afbf3caf6017af1fb2063e Mon Sep 17 00:00:00 2001 From: Tiago Bueno Date: Tue, 3 Jun 2025 13:16:34 -0300 Subject: [PATCH] Add TMT gating plan This adds a TMT plan for the gating test, which will currently run a smoke tests only that are defined in the coreos-installer upstream repository: https://github.com/coreos/coreos-installer Verify the upstream repository PR for additional refrence: https://github.com/coreos/coreos-installer/pull/1664 JIRA: https://issues.redhat.com/browse/COS-2286 Signed-off-by: Tiago Bueno --- .fmf/version | 1 + gating.yaml | 3 ++- tests/tmt/plans/main.fmf | 12 ++++++++++++ tests/tmt/plans/smoke.fmf | 12 ++++++++++++ 4 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .fmf/version create mode 100644 tests/tmt/plans/main.fmf create mode 100644 tests/tmt/plans/smoke.fmf diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/gating.yaml b/gating.yaml index 4ca9235..3178456 100644 --- a/gating.yaml +++ b/gating.yaml @@ -3,4 +3,5 @@ product_versions: - rhel-10 decision_context: osci_compose_gate rules: - - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} + - !PassingTestCaseRule {test_case_name: osci.brew-build./tests/tmt/plans/smoke} + diff --git a/tests/tmt/plans/main.fmf b/tests/tmt/plans/main.fmf new file mode 100644 index 0000000..e52701a --- /dev/null +++ b/tests/tmt/plans/main.fmf @@ -0,0 +1,12 @@ +--- +prepare: + - name: Install coreos-installer package + how: install + package: coreos-installer + + - name: Set COS_INSTALLER_BIN_DIR when installed package + how: shell + script: | + set -x -e -o pipefail + echo "COS_INSTALLER_BIN_DIR=/usr/bin" > /tmp/cos_installer_bin_dir + diff --git a/tests/tmt/plans/smoke.fmf b/tests/tmt/plans/smoke.fmf new file mode 100644 index 0000000..bcd8ba0 --- /dev/null +++ b/tests/tmt/plans/smoke.fmf @@ -0,0 +1,12 @@ +--- +summary: Run gating tests +tag: + - smoke +discover: + - name: Internal gating tests + how: fmf + url: https://github.com/coreos/coreos-installer.git + filter: 'tag: smoke' +execute: + how: tmt +