Add gating tests (copied from podman)

Add gating tests, rawhide only. These are an almost-verbatim
copy of podman's gating tests - as of this writing there is
no way for CI tests to say "run another package's tests".
Miro is aware of the need for this, and says the feature
may be available "sooner or later" [conversation in #osci]

Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
Ed Santiago 2019-09-30 15:02:19 -06:00
parent 03b03a85fc
commit 92baedb481
4 changed files with 41 additions and 0 deletions

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
rules:
- !PassingTestCaseRule {test_case_name: org.centos.prod.ci.pipeline.allpackages-build.complete}

11
tests/test_podman.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash -e
#
# Simple podman tests
#
# Log program and kernel versions
echo "Important package versions:"
rpm -qa | egrep 'conmon|podman|iptable|slirp|systemd' | sort | sed -e 's/^/ /'
uname -a
bats /usr/share/podman/test/system

23
tests/test_podman.yml Normal file
View File

@ -0,0 +1,23 @@
---
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
- container
required_packages:
- bats
- conmon
- podman
- podman-tests
tests:
- root-test:
dir: ./
run: ./test_podman.sh
timeout: 15m
- rootless-test:
# running the test with su doesn't create the directory for fedora user on /run/user/
# so create it manually
dir: ./
run: mkdir /run/user/$(id -u fedora); chown fedora /run/user/$(id -u fedora); su -c ${PWD}/test_podman.sh - fedora
timeout: 15m

1
tests/tests.yml Normal file
View File

@ -0,0 +1 @@
- import_playbook: test_podman.yml