Add gating and basic test
This commit is contained in:
parent
5d3cc9cae6
commit
117afbc241
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
||||
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-10
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||
8
plans/all.fmf
Normal file
8
plans/all.fmf
Normal file
@ -0,0 +1,8 @@
|
||||
summary: Run gating tests
|
||||
discover:
|
||||
how: fmf
|
||||
dist-git-source: true
|
||||
dist-git-type: centos
|
||||
|
||||
execute:
|
||||
how: tmt
|
||||
6
tests/simple/main.fmf
Normal file
6
tests/simple/main.fmf
Normal file
@ -0,0 +1,6 @@
|
||||
summary: Run mod_authnz_pam basic httpd tests
|
||||
require:
|
||||
- httpd
|
||||
- mod_lookup_identity
|
||||
test: ./run_test.sh
|
||||
duration: 30m
|
||||
11
tests/simple/run_test.sh
Executable file
11
tests/simple/run_test.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
PKG="mod_lookup_identity"
|
||||
|
||||
die () {
|
||||
echo "$1" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
dnf list ${PKG}
|
||||
|
||||
15
tests/tests.yml
Normal file
15
tests/tests.yml
Normal file
@ -0,0 +1,15 @@
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-source # Fetch source tarball and unpack it into the test environment, under directory "source/"
|
||||
tags:
|
||||
- always
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
required_packages:
|
||||
- httpd
|
||||
- mod_lookup_identity
|
||||
tests:
|
||||
- simple:
|
||||
dir: simple
|
||||
run: ./run_test.sh
|
||||
Loading…
Reference in New Issue
Block a user