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:
10
tests/pytests/dnszone/playbooks/dnszone_invalid_serial.yaml
Normal file
10
tests/pytests/dnszone/playbooks/dnszone_invalid_serial.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: Playbook to ensure, not able to add invalid(more than 4294967295) serial numbers.
|
||||
hosts: ipaserver
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- ipadnszone:
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
name: invalidserialzone.test
|
||||
serial: 429496729599
|
||||
Reference in New Issue
Block a user