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..a447038 --- /dev/null +++ b/plans/all.fmf @@ -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 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/main.fmf b/tests/scripts/main.fmf new file mode 100644 index 0000000..137207e --- /dev/null +++ b/tests/scripts/main.fmf @@ -0,0 +1,6 @@ +summary: Run keycloak-httpd-client-install gating tests +require: + - keycloak-httpd-client-install + - git +test: ./run_tests.sh +duration: 30m diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh new file mode 100755 index 0000000..0e47630 --- /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_khci.sh diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..4a33cd0 --- /dev/null +++ b/tests/tests.yml @@ -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 +