mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10: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_ptr_record/aliases
Normal file
3
tests/integration/targets/nios_ptr_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_ptr_record/meta/main.yaml
Normal file
2
tests/integration/targets/nios_ptr_record/meta/main.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
dependencies:
|
||||
- prepare_nios_tests
|
1
tests/integration/targets/nios_ptr_record/tasks/main.yml
Normal file
1
tests/integration/targets/nios_ptr_record/tasks/main.yml
Normal file
|
@ -0,0 +1 @@
|
|||
- include: nios_ptr_record_idempotence.yml
|
|
@ -0,0 +1,83 @@
|
|||
---
|
||||
|
||||
- name: create an ipv4 ptr record
|
||||
nios_ptr_record:
|
||||
name: ptr.ansible.com
|
||||
ptrdname: ptr.ansible.com
|
||||
ipv4: 192.168.10.1
|
||||
state: present
|
||||
provider: "{{ nios_provider }}"
|
||||
view: default
|
||||
register: ipv4_ptr_create1
|
||||
|
||||
- name: create the same ipv4 ptr record
|
||||
nios_ptr_record:
|
||||
name: ptr.ansible.com
|
||||
ptrdname: ptr.ansible.com
|
||||
ipv4: 192.168.10.1
|
||||
state: present
|
||||
view: default
|
||||
provider: "{{ nios_provider }}"
|
||||
register: ipv4_ptr_create2
|
||||
|
||||
- name: add a comment to an existing ipv4 ptr record
|
||||
nios_ptr_record:
|
||||
name: ptr.ansible.com
|
||||
ptrdname: ptr.ansible.com
|
||||
ipv4: 192.168.10.1
|
||||
comment: this is a test comment
|
||||
view: default
|
||||
state: present
|
||||
provider: "{{ nios_provider }}"
|
||||
register: ipv4_ptr_update1
|
||||
|
||||
- name: add the same comment to the same ipv4 ptr host record
|
||||
nios_ptr_record:
|
||||
name: ptr.ansible.com
|
||||
ptrdname: ptr.ansible.com
|
||||
ipv4: 192.168.10.1
|
||||
comment: this is a test comment
|
||||
view: default
|
||||
state: present
|
||||
provider: "{{ nios_provider }}"
|
||||
register: ipv4_ptr_update2
|
||||
|
||||
- name: remove a ptr record from the system
|
||||
nios_ptr_record:
|
||||
name: ptr.ansible.com
|
||||
ptrdname: ptr.ansible.com
|
||||
ipv4: 192.168.10.1
|
||||
view: default
|
||||
state: absent
|
||||
provider: "{{ nios_provider }}"
|
||||
register: ipv4_ptr_delete1
|
||||
|
||||
- name: remove the same ptr record from the system
|
||||
nios_ptr_record:
|
||||
ptrdname: ptr.ansible.com
|
||||
name: ptr.ansible.com
|
||||
ipv4: 192.168.10.1
|
||||
view: default
|
||||
state: absent
|
||||
provider: "{{ nios_provider }}"
|
||||
register: ipv4_ptr_delete2
|
||||
|
||||
- name: create an ipv6 ptr record
|
||||
nios_ptr_record:
|
||||
ptrdname: ptr6.ansible.com
|
||||
name: ptr6.ansible.com
|
||||
ipv6: "2002:8ac3:802d:1242:20d:60ff:fe38:6d16"
|
||||
view: default
|
||||
state: present
|
||||
provider: "{{ nios_provider }}"
|
||||
register: ipv6_ptr_create1
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "ipv4_ptr_create1.changed"
|
||||
- "not ipv4_ptr_create2.changed"
|
||||
- "ipv4_ptr_update1.changed"
|
||||
- "not ipv4_ptr_update2.changed"
|
||||
- "ipv4_ptr_delete1.changed"
|
||||
- "not ipv4_ptr_delete2.changed"
|
||||
- "ipv6_ptr_create1.changed"
|
Loading…
Add table
Add a link
Reference in a new issue