mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-28 10:24:47 +00:00
Merge pull request #296 from rjeffman/fix_dnsconfig_error_message
Fixes error handling on dnsconfig module.
This commit is contained in:
@@ -18,6 +18,29 @@
|
||||
state: absent
|
||||
|
||||
# Tests.
|
||||
- name: Set config to invalid IPv4.
|
||||
ipadnsconfig:
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
forwarders:
|
||||
- ip_address: 1.2.3.500
|
||||
register: result
|
||||
failed_when: not result.failed or "Invalid IP for DNS forwarder" not in result.msg
|
||||
|
||||
- name: Set config to invalid IP.
|
||||
ipadnsconfig:
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
forwarders:
|
||||
- ip_address: 1.in.va.lid
|
||||
register: result
|
||||
failed_when: not result.failed or "Invalid IP for DNS forwarder" not in result.msg
|
||||
|
||||
- name: Set config to invalid IPv6.
|
||||
ipadnsconfig:
|
||||
ipaadmin_password: SomeADMINpassword
|
||||
forwarders:
|
||||
- ip_address: fd00::invalid
|
||||
register: result
|
||||
failed_when: not result.failed or "Invalid IP for DNS forwarder" not in result.msg
|
||||
|
||||
- name: Set dnsconfig.
|
||||
ipadnsconfig:
|
||||
|
||||
Reference in New Issue
Block a user