Create plans and update gating.yaml
- Add tier1 plan - Add tier2 plan - Update gating.yaml - Add README.md - Implement tier filter - Create separate tests for centos and rhel - Fix linting errors in plans/tier1.fmf and plans/tier2.fmf - Update test case names for Fedora and RHEL
This commit is contained in:
parent
e3f6160f7d
commit
973d3dd866
27
gating.yaml
Normal file
27
gating.yaml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# gating fedora
|
||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- fedora-*
|
||||||
|
decision_context: bodhi_update_push_testing
|
||||||
|
subject_type: koji_build
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/tier1.functional}
|
||||||
|
|
||||||
|
# gating rawhide
|
||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- fedora-*
|
||||||
|
decision_context: bodhi_update_push_stable
|
||||||
|
subject_type: koji_build
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/tier1.functional}
|
||||||
|
|
||||||
|
# gating rhel
|
||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-*
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1/centos.functional}
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier2/centos.functional}
|
||||||
|
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build./plans/tier1/rhel.functional}
|
5
plans/README.md
Normal file
5
plans/README.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
This directory contains test plans for libpq, structured in 2 tiers.
|
||||||
|
|
||||||
|
To manually run the tests, use:
|
||||||
|
tmt -c distro=rhel9 run -avvv --skip finish plan --name tier2 execute --how tmt --interactive test --name . provision --how minute --image rhel9 login prepare -h shell --script 'dnf config-manager --set-enabled beaker-tasks'
|
||||||
|
(rhel9 can be replace for rhel10 or other and plan --name for tier1)
|
27
plans/tier1.fmf
Normal file
27
plans/tier1.fmf
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/centos:
|
||||||
|
summary: Tier 1 tests for libpq
|
||||||
|
discover:
|
||||||
|
- name: libpq
|
||||||
|
how: fmf
|
||||||
|
filter: 'tier: 1'
|
||||||
|
url: "https://gitlab.com/redhat/centos-stream/tests/libpq.git"
|
||||||
|
- name: python-psycopg2
|
||||||
|
how: fmf
|
||||||
|
filter: 'tier: 1'
|
||||||
|
url: https://gitlab.com/redhat/centos-stream/tests/python-psycopg2.git
|
||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
|
|
||||||
|
/rhel:
|
||||||
|
summary: Internal tier 1 tests for libpq
|
||||||
|
discover:
|
||||||
|
- name: libpq
|
||||||
|
how: fmf
|
||||||
|
filter: 'tier: 1'
|
||||||
|
url: https://pkgs.devel.redhat.com/cgit/tests/libpq
|
||||||
|
- name: python-psycopg2
|
||||||
|
how: fmf
|
||||||
|
filter: 'tier: 1'
|
||||||
|
url: https://pkgs.devel.redhat.com/cgit/tests/python-psycopg2
|
||||||
|
execute:
|
||||||
|
how: tmt
|
30
plans/tier2.fmf
Normal file
30
plans/tier2.fmf
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
/centos:
|
||||||
|
summary: Tier 2,3 tests for libpq
|
||||||
|
discover:
|
||||||
|
- name: libpq
|
||||||
|
how: fmf
|
||||||
|
filter: '(tier: 2 | tier: 3)'
|
||||||
|
url: https://gitlab.com/redhat/centos-stream/tests/libpq.git
|
||||||
|
- name: python-psycopg2
|
||||||
|
how: fmf
|
||||||
|
filter: '(tier: 2 | tier: 3)'
|
||||||
|
url: https://gitlab.com/redhat/centos-stream/tests/python-psycopg2.git
|
||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
|
|
||||||
|
/rhel:
|
||||||
|
summary: Internal tier 2,3 tests for libpq
|
||||||
|
discover:
|
||||||
|
- name: libpq
|
||||||
|
how: fmf
|
||||||
|
filter: '(tier: 2 | tier: 3)'
|
||||||
|
url: https://pkgs.devel.redhat.com/cgit/tests/libpq
|
||||||
|
- name: python-psycopg2
|
||||||
|
how: fmf
|
||||||
|
filter: '(tier: 2 | tier: 3)'
|
||||||
|
url: https://pkgs.devel.redhat.com/cgit/tests/python-psycopg2
|
||||||
|
adjust:
|
||||||
|
enabled: false
|
||||||
|
when: distro == centos-stream
|
||||||
|
execute:
|
||||||
|
how: tmt
|
Loading…
Reference in New Issue
Block a user