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