Enable gating and test plans

Resolves: RHEL-29946
This commit is contained in:
Zdenek Dohnal 2024-05-27 14:21:30 +02:00
parent 3b3ca342b4
commit f2f05f4096
5 changed files with 58 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

1
ci.fmf Normal file
View File

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

23
gating.yaml Normal file
View File

@ -0,0 +1,23 @@
--- !Policy
product_versions:
- fedora-*
decision_contexts: [bodhi_update_push_testing]
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/public.functional}
#gating rawhide
--- !Policy
product_versions:
- fedora-*
decision_contexts: [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/public.functional}
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-internal.functional}

13
plans/public.fmf Normal file
View File

@ -0,0 +1,13 @@
summary: Test plan that runs all tests from libppd tests repo.
discover:
- name: fedora-libppd
how: fmf
url: https://src.fedoraproject.org/tests/libppd.git
- name: fedora-cups-browsed
how: fmf
url: https://src.fedoraproject.org/tests/cups-browsed.git
- name: fedora-cups-filters
how: fmf
url: https://src.fedoraproject.org/tests/cups-filters.git
execute:
how: tmt

20
plans/tier1-internal.fmf Normal file
View File

@ -0,0 +1,20 @@
summary: CI plan, picks internal Tier1 tests, runs in beakerlib.
discover:
- name: rhel-libppd
how: fmf
filter: 'tier: 1'
url: https://pkgs.devel.redhat.com/git/tests/libppd
- name: rhel-cups-browsed
how: fmf
filter: 'tier: 1'
url: https://pkgs.devel.redhat.com/git/tests/cups-browsed
- name: rhel-cups-filters
how: fmf
filter: 'tier: 1'
url: https://pkgs.devel.redhat.com/git/tests/cups-filters
execute:
how: tmt
adjust:
enabled: false
when: distro == centos-stream, fedora
because: They don't have access to internal repos.