mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-08 14:20:04 -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_zone/aliases
Normal file
3
tests/integration/targets/nios_zone/aliases
Normal file
|
@ -0,0 +1,3 @@
|
|||
shippable/cloud/group1
|
||||
cloud/nios
|
||||
destructive
|
3
tests/integration/targets/nios_zone/defaults/main.yaml
Normal file
3
tests/integration/targets/nios_zone/defaults/main.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
testcase: "*"
|
||||
test_items: []
|
2
tests/integration/targets/nios_zone/meta/main.yaml
Normal file
2
tests/integration/targets/nios_zone/meta/main.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
dependencies:
|
||||
- prepare_nios_tests
|
1
tests/integration/targets/nios_zone/tasks/main.yml
Normal file
1
tests/integration/targets/nios_zone/tasks/main.yml
Normal file
|
@ -0,0 +1 @@
|
|||
- include: nios_zone_idempotence.yml
|
|
@ -0,0 +1,68 @@
|
|||
- name: cleanup dns view instance
|
||||
nios_dns_view:
|
||||
name: ansible-dns
|
||||
state: absent
|
||||
provider: "{{ nios_provider }}"
|
||||
|
||||
- name: cleanup test zone
|
||||
nios_zone:
|
||||
name: ansible-dns
|
||||
state: absent
|
||||
provider: "{{ nios_provider }}"
|
||||
|
||||
- name: configure a zone on the system
|
||||
nios_zone:
|
||||
name: ansible-dns
|
||||
state: present
|
||||
provider: "{{ nios_provider }}"
|
||||
register: zone_create1
|
||||
|
||||
- name: configure a zone on the system
|
||||
nios_zone:
|
||||
name: ansible-dns
|
||||
state: present
|
||||
provider: "{{ nios_provider }}"
|
||||
register: zone_create2
|
||||
|
||||
- name: update the comment and ext attributes for an existing zone
|
||||
nios_zone:
|
||||
name: ansible-dns
|
||||
comment: this is an example comment
|
||||
extattrs:
|
||||
Site: west-dc
|
||||
state: present
|
||||
provider: "{{ nios_provider }}"
|
||||
register: zone_update1
|
||||
|
||||
- name: update the comment and ext attributes for an existing zone
|
||||
nios_zone:
|
||||
name: ansible-dns
|
||||
comment: this is an example comment
|
||||
extattrs:
|
||||
Site: west-dc
|
||||
state: present
|
||||
provider: "{{ nios_provider }}"
|
||||
register: zone_update2
|
||||
|
||||
- name: remove the dns zone
|
||||
nios_zone:
|
||||
name: ansible-dns
|
||||
state: absent
|
||||
provider: "{{ nios_provider }}"
|
||||
register: zone_delete1
|
||||
|
||||
- name: remove the dns zone
|
||||
nios_zone:
|
||||
name: ansible-dns
|
||||
state: absent
|
||||
provider: "{{ nios_provider }}"
|
||||
register: zone_delete2
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "zone_create1.changed"
|
||||
- "not zone_create2.changed"
|
||||
- "zone_update1.changed"
|
||||
- "not zone_update2.changed"
|
||||
- "zone_delete1.changed"
|
||||
- "not zone_delete2.changed"
|
Loading…
Add table
Add a link
Reference in a new issue