From e4b2de09ffe88a31e701e9944b5462edeadb3f67 Mon Sep 17 00:00:00 2001 From: Kaleemullah Siddiqui Date: Mon, 21 Jun 2021 17:53:39 +0530 Subject: [PATCH] Missing tier0 gating tests added Tier0 tests were part of RHEL8 which were not added in RHEL9 in following commit ec8195dd47ebd5169d773391c4ff29e2901626df Now added with this change which will execute the tier0 tests in osci Related: rhbz#1947473 Signed-off-by: Kaleemullah Siddiqui --- gating.yaml | 1 + tests/.fmf/version | 1 + tests/provision.fmf | 5 +++++ tests/sanity/install-server.yml | 8 ++++++++ tests/sanity/inventory | 10 ++++++++++ tests/sanity/runtest.sh | 6 ++++++ tests/tests.yml | 14 ++++++++++++++ 7 files changed, 45 insertions(+) create mode 100644 tests/.fmf/version create mode 100644 tests/provision.fmf create mode 100644 tests/sanity/install-server.yml create mode 100644 tests/sanity/inventory create mode 100644 tests/sanity/runtest.sh create mode 100644 tests/tests.yml 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