Adding gating.yaml and tests for ansible-freeipa

Signed-off-by: Sudhir Menon <sumenon@redhat.com>
This commit is contained in:
Sudhir Menon 2024-06-26 12:37:42 +05:30 committed by Thomas Woerner
parent d28696ce1b
commit d4e52a0caf
6 changed files with 48 additions and 0 deletions

8
gating.yaml Normal file
View File

@ -0,0 +1,8 @@
# recipients: abokovoy, frenaud, kaleem, ftrivino
--- !Policy
product_versions:
- rhel-10
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}

5
tests/provision.fmf Normal file
View File

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

View File

@ -0,0 +1,8 @@
---
- name: Playbook to configure IPA servers
hosts: ipaserver
become: true
roles:
- role: freeipa.ansible_freeipa.ipaserver
state: present

10
tests/sanity/inventory Normal file
View File

@ -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

3
tests/sanity/runtest.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh -eux
ansible-playbook -i inventory install-server.yml -v --connection=local

14
tests/tests.yml Normal file
View File

@ -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