Add gating tests
This commit is contained in:
parent
de2bcead78
commit
754b581240
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
10
gating.yaml
Normal file
10
gating.yaml
Normal 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
17
tests/smoke.sh
Executable 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
13
tests/smoke1.fmf
Normal 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
13
tests/smoke2.fmf
Normal 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
|
Loading…
Reference in New Issue
Block a user