Separate public and private tests and update gating accordingly

Gating also covers Fedora, so the gating.yaml files are the same

Resolves: RHELPLAN-155186
This commit is contained in:
Lukas Javorsky 2023-06-14 10:08:00 +00:00
parent 94fb3f6768
commit 3a5a0e0d05
5 changed files with 47 additions and 20 deletions

1
ci.fmf Normal file
View File

@ -0,0 +1 @@
resultsdb-testcase: separate

27
gating.yaml Normal file
View File

@ -0,0 +1,27 @@
# Branched Fedora (non-Rawhide)
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_testing
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/public.functional}
# Rawhide Fedora
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/public.functional}
# Gating RHEL
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/internal.functional}
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/public.functional}

View File

@ -1,20 +0,0 @@
/public:
summary: Public (Fedora) beakerlib tests
discover:
how: fmf
url: https://src.fedoraproject.org/tests/zlib.git
execute:
how: tmt
/private:
enabled: false
adjust:
- when: distro == rhel
enabled: true
because: private tests are accesible only within rhel pipline
discover:
how: fmf
url: https://pkgs.devel.redhat.com/cgit/tests/zlib.git
execute:
how: tmt

12
plans/internal.fmf Normal file
View File

@ -0,0 +1,12 @@
summary: Private (RHEL) beakerlib tests
enabled: false
adjust:
- when: distro == rhel
enabled: true
because: private tests are accesible only within rhel pipline
discover:
- name: rhel
how: fmf
url: git://pkgs.devel.redhat.com/tests/zlib
execute:
how: tmt

7
plans/public.fmf Normal file
View File

@ -0,0 +1,7 @@
summary: Public (Fedora) beakerlib tests
discover:
- name: fedora
how: fmf
url: https://src.fedoraproject.org/tests/zlib.git
execute:
how: tmt