mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-11 11:15:55 +00:00
Added ability to add pytest tests
Until now ansible-freeipa repository only had playbook tests. This commit introduces the ability of creating TestCase classes connected to the master host. This connection can be used to run commands in the managed host after the ansible playbook execution is the allowing the verification of the machine state.
This commit is contained in:
9
tests/pytests/dnszone/playbooks/dnszone_enable.yaml
Normal file
9
tests/pytests/dnszone/playbooks/dnszone_enable.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Playbook to ensure the DNS zones enabled.
|
||||
hosts: ipaserver
|
||||
|
||||
tasks:
|
||||
- ipadnszone:
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
name: 26testzone.test
|
||||
state: enabled
|
||||
Reference in New Issue
Block a user