From ba367fd5bd014a9377efbb8f5ca13f461cf7fb1a Mon Sep 17 00:00:00 2001 From: Thomas Woerner Date: Tue, 11 Apr 2023 13:14:32 +0200 Subject: [PATCH] Add tier0 test for c8s The test has not been imported automatically and therefore has been missing. Related: RHBZ#2170371 --- tests/.fmf/version | 1 + tests/provision.fmf | 5 +++++ tests/sanity/install-server.yml | 8 ++++++++ tests/sanity/inventory | 10 ++++++++++ tests/sanity/runtest.sh | 3 +++ tests/tests.yml | 14 ++++++++++++++ 6 files changed, 41 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/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..615c344 --- /dev/null +++ b/tests/sanity/runtest.sh @@ -0,0 +1,3 @@ +#!/bin/sh -eux + +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