mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-29 16:11:22 -07:00
Initial commit
This commit is contained in:
commit
aebc1b03fd
4861 changed files with 812621 additions and 0 deletions
3
tests/integration/targets/nios_a_record/aliases
Normal file
3
tests/integration/targets/nios_a_record/aliases
Normal file
|
@ -0,0 +1,3 @@
|
|||
shippable/cloud/group1
|
||||
cloud/nios
|
||||
destructive
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
testcase: "*"
|
||||
test_items: []
|
2
tests/integration/targets/nios_a_record/meta/main.yaml
Normal file
2
tests/integration/targets/nios_a_record/meta/main.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
dependencies:
|
||||
- prepare_nios_tests
|
1
tests/integration/targets/nios_a_record/tasks/main.yml
Normal file
1
tests/integration/targets/nios_a_record/tasks/main.yml
Normal file
|
@ -0,0 +1 @@
|
|||
- include: nios_a_record_idempotence.yml
|
|
@ -0,0 +1,77 @@
|
|||
- name: cleanup the parent object
|
||||
nios_zone:
|
||||
name: ansible.com
|
||||
state: absent
|
||||
provider: "{{ nios_provider }}"
|
||||
|
||||
- name: create the parent object
|
||||
nios_zone:
|
||||
name: ansible.com
|
||||
state: present
|
||||
provider: "{{ nios_provider }}"
|
||||
|
||||
- name: cleanup a_record
|
||||
nios_a_record:
|
||||
name: a.ansible.com
|
||||
ipv4: 192.168.10.1
|
||||
state: absent
|
||||
provider: "{{ nios_provider }}"
|
||||
|
||||
- name: create an a_record
|
||||
nios_a_record:
|
||||
name: a.ansible.com
|
||||
ipv4: 192.168.10.1
|
||||
state: present
|
||||
provider: "{{ nios_provider }}"
|
||||
register: a_record_create1
|
||||
|
||||
- name: recreate an a_record
|
||||
nios_a_record:
|
||||
name: a.ansible.com
|
||||
ipv4: 192.168.10.1
|
||||
state: present
|
||||
provider: "{{ nios_provider }}"
|
||||
register: a_record_create2
|
||||
|
||||
- name: add a comment to an existing a_record
|
||||
nios_a_record:
|
||||
name: a.ansible.com
|
||||
ipv4: 192.168.10.1
|
||||
comment: this is a test comment
|
||||
state: present
|
||||
provider: "{{ nios_provider }}"
|
||||
register: a_record_update1
|
||||
|
||||
- name: add a comment to an existing a_record
|
||||
nios_a_record:
|
||||
name: a.ansible.com
|
||||
ipv4: 192.168.10.1
|
||||
comment: this is a test comment
|
||||
state: present
|
||||
provider: "{{ nios_provider }}"
|
||||
register: a_record_update2
|
||||
|
||||
- name: remove a a_record from the system
|
||||
nios_a_record:
|
||||
name: a.ansible.com
|
||||
ipv4: 192.168.10.1
|
||||
state: absent
|
||||
provider: "{{ nios_provider }}"
|
||||
register: a_record_delete1
|
||||
|
||||
- name: remove a a_record from the system
|
||||
nios_a_record:
|
||||
name: a.ansible.com
|
||||
ipv4: 192.168.10.1
|
||||
state: absent
|
||||
provider: "{{ nios_provider }}"
|
||||
register: a_record_delete2
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "a_record_create1.changed"
|
||||
- "not a_record_create2.changed"
|
||||
- "a_record_update1.changed"
|
||||
- "not a_record_update2.changed"
|
||||
- "a_record_delete1.changed"
|
||||
- "not a_record_delete2.changed"
|
Loading…
Add table
Add a link
Reference in a new issue