Configure gating tests

This commit is contained in:
Vendula Poncova 2020-09-04 12:59:43 +02:00
parent 86fc1f0c7b
commit 34b4decb9c
2 changed files with 35 additions and 0 deletions

15
gating.yaml Normal file
View File

@ -0,0 +1,15 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_testing
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

20
tests/tests.yml Normal file
View File

@ -0,0 +1,20 @@
- hosts: localhost
roles:
- role: standard-test-source
tags:
- classic
- role: standard-test-basic
tags:
- classic
required_packages:
- python3
- python3-dasbus
- dbus-daemon
tests:
- smoke_test:
dir: .
run: python3 -c "import dasbus"
- unit_tests:
dir: .
run: python3 -m unittest discover -v -s ./source/tests/