Initial commit

This commit is contained in:
Ansible Core Team 2020-03-09 09:11:07 +00:00
commit aebc1b03fd
4861 changed files with 812621 additions and 0 deletions

View file

@ -0,0 +1,3 @@
shippable/cloud/group1
cloud/nios
destructive

View file

@ -0,0 +1,3 @@
---
testcase: "*"
test_items: []

View file

@ -0,0 +1,2 @@
dependencies:
- prepare_nios_tests

View file

@ -0,0 +1 @@
- include: nios_srv_record_idempotence.yml

View file

@ -0,0 +1,98 @@
- 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 srv record
nios_srv_record:
name: ansible.com
port: 5080
priority: 10
target: service1.ansible.com
weight: 10
state: absent
provider: "{{ nios_provider }}"
- name: create an srv record
nios_srv_record:
name: ansible.com
port: 5080
priority: 10
target: service1.ansible.com
weight: 10
state: present
provider: "{{ nios_provider }}"
register: srv_record_create1
- name: recreate an srv record
nios_srv_record:
name: ansible.com
port: 5080
priority: 10
target: service1.ansible.com
weight: 10
state: present
provider: "{{ nios_provider }}"
register: srv_record_create2
- name: add a comment to an existing srv record
nios_srv_record:
name: ansible.com
port: 5080
priority: 10
target: service1.ansible.com
weight: 10
comment: this is a test comment
state: present
provider: "{{ nios_provider }}"
register: srv_record_update1
- name: add a comment to an existing srv record
nios_srv_record:
name: ansible.com
port: 5080
priority: 10
target: service1.ansible.com
weight: 10
comment: this is a test comment
state: present
provider: "{{ nios_provider }}"
register: srv_record_update2
- name: remove a srv record from the system
nios_srv_record:
name: ansible.com
port: 5080
priority: 10
target: service1.ansible.com
weight: 10
state: absent
provider: "{{ nios_provider }}"
register: srv_record_delete1
- name: remove a srv record from the system
nios_srv_record:
name: ansible.com
port: 5080
priority: 10
target: service1.ansible.com
weight: 10
state: absent
provider: "{{ nios_provider }}"
register: srv_record_delete2
- assert:
that:
- "srv_record_create1.changed"
- "not srv_record_create2.changed"
- "srv_record_update1.changed"
- "not srv_record_update2.changed"
- "srv_record_delete1.changed"
- "not srv_record_delete2.changed"