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:
parent
66ff78ffab
commit
a4a98d05cc
6
gating.yaml
Normal file
6
gating.yaml
Normal 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
13
tests/tests.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user