diff --git a/gating.yaml b/gating.yaml index 6ab516d..f2b91b8 100644 --- a/gating.yaml +++ b/gating.yaml @@ -4,4 +4,5 @@ product_versions: - rhel-9 decision_context: osci_compose_gate rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} - !PassingTestCaseRule {test_case_name: idm-ci.brew-build.tier1.functional} 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..a0c05cd --- /dev/null +++ b/tests/provision.fmf @@ -0,0 +1,5 @@ +--- + +standard-inventory-qcow2: + qemu: + m: 3G diff --git a/tests/sanity/install-server.yml b/tests/sanity/install-server.yml new file mode 100644 index 0000000..711d696 --- /dev/null +++ b/tests/sanity/install-server.yml @@ -0,0 +1,8 @@ +--- +- name: Playbook to configure IPA servers + hosts: ipaserver + become: true + + roles: + - role: ipaserver + state: present diff --git a/tests/sanity/inventory b/tests/sanity/inventory new file mode 100644 index 0000000..298d689 --- /dev/null +++ b/tests/sanity/inventory @@ -0,0 +1,10 @@ +[ipaserver] +localhost + +[ipaserver:vars] +ipaserver_domain=example.test +ipaserver_realm=EXAMPLE.TEST +ipaserver_setup_dns=yes +ipaserver_auto_forwarders=yes +ipaadmin_password=Secret123 +ipadm_password=Secret123 diff --git a/tests/sanity/runtest.sh b/tests/sanity/runtest.sh new file mode 100644 index 0000000..abe2cf2 --- /dev/null +++ b/tests/sanity/runtest.sh @@ -0,0 +1,6 @@ +#!/bin/sh -eux + +# Use pip3 to install ansible (2.9) +pip3 install "ansible>=2.9,<2.10" + +ansible-playbook -i inventory install-server.yml -v --connection=local diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..ccb2313 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,14 @@ +--- +- hosts: localhost + tags: + - classic + roles: + - role: standard-test-basic + required_packages: + - firewalld + # pip3 is used to install ansible 2.8+ + #- ansible + required_services: + - firewalld + tests: + - sanity