diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..5480e33 --- /dev/null +++ b/gating.yaml @@ -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} +... diff --git a/tests/smoke.sh b/tests/smoke.sh new file mode 100755 index 0000000..2ee036c --- /dev/null +++ b/tests/smoke.sh @@ -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 diff --git a/tests/smoke1.fmf b/tests/smoke1.fmf new file mode 100644 index 0000000..6b95320 --- /dev/null +++ b/tests/smoke1.fmf @@ -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 diff --git a/tests/smoke2.fmf b/tests/smoke2.fmf new file mode 100644 index 0000000..6d0f71a --- /dev/null +++ b/tests/smoke2.fmf @@ -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