From a4a98d05cc3788a6ca84d14982e5834b8065ace4 Mon Sep 17 00:00:00 2001 From: Ondrej Mosnacek Date: Wed, 27 Nov 2019 09:15:54 +0100 Subject: [PATCH] Add smoke tests and enable gating Add very basic smoke tests that check if the container module installed successfully and that it is still possible to rebuild the policy after installing the package. This, along with enabling rawhide gating [1], should help catch issues like [2] and prevent a broken build from getting into Rawhide composes. [1] https://docs.fedoraproject.org/en-US/rawhide-gating/ [2] https://github.com/containers/container-selinux/pull/84 Signed-off-by: Ondrej Mosnacek --- gating.yaml | 6 ++++++ tests/tests.yml | 13 +++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 gating.yaml 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/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..a5b5b1f --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,13 @@ +- hosts: localhost + tags: + - classic + roles: + - role: standard-test-basic + required_packages: + - policycoreutils + - container-selinux + tests: + - is-module-installed: + run: semodule --list=full | grep container + - can-rebuild-policy: + run: semodule -B