From e9e8c01cc6d7ae4154d99186382791a1f95499a1 Mon Sep 17 00:00:00 2001 From: Tomas Halman Date: Tue, 2 Apr 2024 17:57:29 +0200 Subject: [PATCH] Add gating tests --- gating.yaml | 6 ++++++ mod_auth_openidc.spec | 5 ++++- tests/.fmf/version | 1 + tests/provision.fmf | 5 +++++ tests/scripts/run_tests.sh | 12 ++++++++++++ tests/tests.yml | 12 ++++++++++++ 6 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 gating.yaml create mode 100644 tests/.fmf/version create mode 100644 tests/provision.fmf create mode 100644 tests/scripts/run_tests.sh create mode 100644 tests/tests.yml 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/mod_auth_openidc.spec b/mod_auth_openidc.spec index 241e00c..1a8bd81 100644 --- a/mod_auth_openidc.spec +++ b/mod_auth_openidc.spec @@ -15,7 +15,7 @@ Name: mod_auth_openidc Version: 2.4.15 -Release: 2%{?dist} +Release: 3%{?dist} Summary: OpenID Connect auth module for Apache HTTP Server License: Apache-2.0 @@ -96,6 +96,9 @@ install -m 700 -d $RPM_BUILD_ROOT%{httpd_pkg_cache_dir}/cache %dir %attr(0700, apache, apache) %{httpd_pkg_cache_dir}/cache %changelog +* Tue Jun 25 2024 Tomas Halman - 2.4.15-3 + Add gating tests + * Mon Jun 24 2024 Troy Dawson - 2.4.15-2 - Bump release for June 2024 mass rebuild diff --git a/tests/.fmf/version b/tests/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/tests/provision.fmf b/tests/provision.fmf new file mode 100644 index 0000000..9b64bb6 --- /dev/null +++ b/tests/provision.fmf @@ -0,0 +1,5 @@ +--- +standard-inventory-qcow2: + qemu: + m: 3G + smp: 2 diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh new file mode 100644 index 0000000..592b6ab --- /dev/null +++ b/tests/scripts/run_tests.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +export GIT_SSL_NO_VERIFY=true +git clone https://github.com/latchset/federation_testing.git + +cd federation_testing +if [ ! -d /tmp/artifacts ]; then + mkdir -p /tmp/artifacts +fi + +./setup.sh +./test_oidc.sh diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..8763ff5 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,12 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - mod_auth_mellon: + dir: scripts + run: ./run_tests.sh + required_packages: + - git +