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 <omosnace@redhat.com>
This commit is contained in:
Ondrej Mosnacek 2019-11-27 09:15:54 +01:00
parent 66ff78ffab
commit a4a98d05cc
2 changed files with 19 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}

13
tests/tests.yml Normal file
View File

@ -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