Add gating tests

This commit is contained in:
Maxwell G 2023-04-20 23:06:56 +00:00
parent de2bcead78
commit 754b581240
No known key found for this signature in database
GPG Key ID: F79E4E25E8C661F8
5 changed files with 54 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

10
gating.yaml Normal file
View File

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

17
tests/smoke.sh Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/bash -x
set -euo pipefail
ansible --version
ansible -c local -i localhost, localhost -m setup
ansible -c local -i locahost, localhost -b \
-m community.general.copr \
-a "name=gotmax23/community.general.copr_integration_tests chroot=fedora-rawhide-x86_64" \
|& tee out
grep 'localhost | CHANGED' out
ansible -c local -i localhost, localhost -b \
-m package \
-a name=copr-module-integration-dummy-package \
|& tee out
grep 'localhost | CHANGED' out
rpm -ql copr-module-integration-dummy-package

13
tests/smoke1.fmf Normal file
View File

@ -0,0 +1,13 @@
discover:
- name: Smoke tests (1)
how: shell
tests:
- name: Smoke tests with ansible
test: tests/smoke.sh
require:
- python3-dnf
- dnf-plugins-core
- ansible-core
- ansible
execute:
how: tmt

13
tests/smoke2.fmf Normal file
View File

@ -0,0 +1,13 @@
discover:
- name: Smoke tests (2)
how: shell
tests:
- name: Smoke tests with community.general
test: tests/smoke.sh
require:
- python3-dnf
- dnf-plugins-core
- ansible-core
- ansible-collection-community-general
execute:
how: tmt