Add gating and basic test

This commit is contained in:
Scott Poore 2024-07-02 20:20:24 -05:00
parent 5d3cc9cae6
commit 117afbc241
6 changed files with 47 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

6
gating.yaml Normal file
View 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
View 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
View 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
View 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
View 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