mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
exo_dns_record: remove limitation for multiple records only for A type (#35173)
This commit is contained in:
parent
57d5b8642a
commit
24b8f36f1e
3 changed files with 37 additions and 100 deletions
|
@ -54,19 +54,6 @@
|
|||
- result is failed
|
||||
- 'result.msg == "missing required arguments: domain"'
|
||||
|
||||
- name: test fail if missing required params
|
||||
local_action:
|
||||
module: exo_dns_record
|
||||
domain: "{{ exo_dns_domain_name }}"
|
||||
state: absent
|
||||
register: result
|
||||
ignore_errors: true
|
||||
- name: verify results of test fail if missing required params
|
||||
assert:
|
||||
that:
|
||||
- result is failed
|
||||
- 'result.msg == "name is but the following are missing: content"'
|
||||
|
||||
- name: test fail if missing required params state=present
|
||||
local_action:
|
||||
module: exo_dns_record
|
||||
|
@ -78,21 +65,7 @@
|
|||
assert:
|
||||
that:
|
||||
- result is failed
|
||||
- 'result.msg == "state is present but the following are missing: content"'
|
||||
|
||||
- name: test fail if missing required params state=absent
|
||||
local_action:
|
||||
module: exo_dns_record
|
||||
domain: "{{ exo_dns_domain_name }}"
|
||||
name: ""
|
||||
state: absent
|
||||
register: result
|
||||
ignore_errors: true
|
||||
- name: verify results of test fail if missing required params state=absent
|
||||
assert:
|
||||
that:
|
||||
- result is failed
|
||||
- 'result.msg == "name is but the following are missing: content"'
|
||||
- 'result.msg == "state is present but all of the following are missing: content"'
|
||||
|
||||
- name: test create a record
|
||||
local_action:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue