From 762c02c94ff567ab434376f5285da066fdad39d2 Mon Sep 17 00:00:00 2001 From: Evgeny Fedin Date: Tue, 20 Aug 2024 16:32:06 +0200 Subject: [PATCH] Related: RHELMISC-3914 - add gating.yaml file --- .fmf/version | 1 + gating.yaml | 6 ++++++ plans/tier1.fmf | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 .fmf/version create mode 100644 gating.yaml create mode 100644 plans/tier1.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 new file mode 100644 index 0000000..4ca9235 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-10 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/plans/tier1.fmf b/plans/tier1.fmf new file mode 100644 index 0000000..9915f16 --- /dev/null +++ b/plans/tier1.fmf @@ -0,0 +1,39 @@ +--- + +summary: Tier1 plan for libuser + +discover: + how: fmf + url: https://pkgs.devel.redhat.com/git/tests/libuser + ref: master + filter: tier:1 + +prepare: + - how: shell + script: | + set -euxo pipefail + + ENABLE_REPO_CMD="yum-config-manager --enable" + if command -v dnf >/dev/null 2>&1; then + ENABLE_REPO_CMD="dnf config-manager --set-enabled" + fi + + ${ENABLE_REPO_CMD} beaker-tasks || : + - how: shell + script: | + set -exuo pipefail + + if [[ -f /etc/os-release ]]; then + . /etc/os-release + if [[ "${ID:-}" == "rhel" && "${VERSION_ID%%.*}" -ge 8 ]]; then + dnf config-manager --enable rhel-CRB + fi + fi + +execute: + how: tmt + +adjust: + enabled: false + when: distro == centos-stream or distro == fedora +