From 2670fa12f27f3b1deed70f71310d5e3553b53e8c Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Wed, 16 Oct 2019 06:33:29 -0600 Subject: [PATCH] enable gating tests Signed-off-by: Ed Santiago --- gating.yaml | 6 ++++++ tests/test_skopeo.sh | 14 ++++++++++++++ tests/test_skopeo.yml | 16 ++++++++++++++++ tests/tests.yml | 1 + 4 files changed, 37 insertions(+) create mode 100644 gating.yaml create mode 100755 tests/test_skopeo.sh create mode 100644 tests/test_skopeo.yml create mode 100644 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..92d738a --- /dev/null +++ b/gating.yaml @@ -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} diff --git a/tests/test_skopeo.sh b/tests/test_skopeo.sh new file mode 100755 index 0000000..561b3fb --- /dev/null +++ b/tests/test_skopeo.sh @@ -0,0 +1,14 @@ +#!/bin/bash -e + +# Log program and kernel versions +echo "Important package versions:" +( + uname -r + rpm -qa | egrep 'skopeo|podman|conmon|crun|runc|iptable|slirp|systemd' | sort +) | sed -e 's/^/ /' + +# Log environment; or at least the useful bits +echo "Environment:" +env | grep -v LS_COLORS= | sort | sed -e 's/^/ /' + +SKOPEO_BINARY=/usr/bin/skopeo bats /usr/share/skopeo/test/system diff --git a/tests/test_skopeo.yml b/tests/test_skopeo.yml new file mode 100644 index 0000000..0c73d85 --- /dev/null +++ b/tests/test_skopeo.yml @@ -0,0 +1,16 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + - container + required_packages: + - bats + - skopeo + - skopeo-tests + tests: + - root-test: + dir: ./ + run: ./test_skopeo.sh + timeout: 15m diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..aa28816 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1 @@ +- import_playbook: test_skopeo.yml