diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..4ca9235 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-10 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/plans/all.fmf b/plans/all.fmf new file mode 100644 index 0000000..d538d2d --- /dev/null +++ b/plans/all.fmf @@ -0,0 +1,8 @@ +summary: Run gating tests +discover: + how: fmf + dist-git-source: true + dist-git-type: centos + +execute: + how: tmt diff --git a/tests/simple/main.fmf b/tests/simple/main.fmf new file mode 100644 index 0000000..d1f9429 --- /dev/null +++ b/tests/simple/main.fmf @@ -0,0 +1,6 @@ +summary: Run mod_authnz_pam basic httpd tests +require: + - httpd + - mod_lookup_identity +test: ./run_test.sh +duration: 30m diff --git a/tests/simple/run_test.sh b/tests/simple/run_test.sh new file mode 100755 index 0000000..7587496 --- /dev/null +++ b/tests/simple/run_test.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +PKG="mod_lookup_identity" + +die () { + echo "$1" >&2 + exit 1 +} + +dnf list ${PKG} + diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..9513fd6 --- /dev/null +++ b/tests/tests.yml @@ -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