mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-09 14:50:02 -07:00
Nios integration and unit tests for all remaining nios new modules (#43399)
* new nios module support * new nios module support * new nios module support * new nios module support * new nios module support * new nios module support * new nios module support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * new nios module integration test support * test/integration/targets/nios_naptr_record/tasks/nios_naptr_record_idempotence.yml new nios module integration test support * fix pep8 error * fix pep8 error * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end * adding newline at end
This commit is contained in:
parent
7314aa7298
commit
e96f90b440
45 changed files with 1414 additions and 8 deletions
3
test/integration/targets/nios_srv_record/aliases
Normal file
3
test/integration/targets/nios_srv_record/aliases
Normal file
|
@ -0,0 +1,3 @@
|
|||
shippable/cloud/group1
|
||||
cloud/nios
|
||||
destructive
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
testcase: "*"
|
||||
test_items: []
|
2
test/integration/targets/nios_srv_record/meta/main.yaml
Normal file
2
test/integration/targets/nios_srv_record/meta/main.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
dependencies:
|
||||
- prepare_nios_tests
|
1
test/integration/targets/nios_srv_record/tasks/main.yml
Normal file
1
test/integration/targets/nios_srv_record/tasks/main.yml
Normal file
|
@ -0,0 +1 @@
|
|||
- include: nios_srv_record_idempotence.yml
|
|
@ -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"
|
Loading…
Add table
Add a link
Reference in a new issue