Add gating and tmt configs

This commit is contained in:
Scott Poore 2024-08-07 15:54:37 -05:00
parent 9861633207
commit a0b6bbfa9b
7 changed files with 59 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}

16
plans/all.fmf Normal file
View File

@ -0,0 +1,16 @@
summary: Run gating tests
discover:
how: fmf
dist-git-source: true
dist-git-type: centos
prepare:
- how: install
package:
- dnf-plugins-core
- how: install
package:
- keycloak-httpd-client-install
- git
execute:
how: tmt

5
tests/provision.fmf Normal file
View File

@ -0,0 +1,5 @@
---
standard-inventory-qcow2:
qemu:
m: 3G
smp: 2

6
tests/scripts/main.fmf Normal file
View File

@ -0,0 +1,6 @@
summary: Run keycloak-httpd-client-install gating tests
require:
- keycloak-httpd-client-install
- git
test: ./run_tests.sh
duration: 30m

12
tests/scripts/run_tests.sh Executable file
View File

@ -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_khci.sh

13
tests/tests.yml Normal file
View File

@ -0,0 +1,13 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- keycloak-httpd-client-install:
dir: scripts
run: ./run_tests.sh
required_packages:
- keycloak-httpd-client-install
- git