forked from infobloxopen/infoblox-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add remaining integration tests for all nsgroup types
NOTE: automated github tests in this repo will fail until this is merged, and a new image is pushed to quay.io: ansible/nios-test-container#8
- Loading branch information
1 parent
b6942f3
commit b777f3b
Showing
15 changed files
with
290 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
tests/integration/targets/nios_nsgroup_forwardingmember/aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
shippable/cloud/group1 | ||
cloud/nios | ||
destructive |
3 changes: 3 additions & 0 deletions
3
tests/integration/targets/nios_nsgroup_forwardingmember/defaults/main.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
testcase: "*" | ||
test_items: [] |
2 changes: 2 additions & 0 deletions
2
tests/integration/targets/nios_nsgroup_forwardingmember/meta/main.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dependencies: | ||
- prepare_nios_tests |
1 change: 1 addition & 0 deletions
1
tests/integration/targets/nios_nsgroup_forwardingmember/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- include: nios_nsgroup_forwardingmember_idempotence.yml |
104 changes: 104 additions & 0 deletions
104
...targets/nios_nsgroup_forwardingmember/tasks/nios_nsgroup_forwardingmember_idempotence.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
- name: cleanup nsgroup forwardingmember | ||
nios_nsgroup_forwardingmember: | ||
name: ansible-nsgroup_forwardingmember | ||
state: absent | ||
provider: "{{ nios_provider }}" | ||
forwarding_servers: | ||
- name: ns1 | ||
use_override_forwarders: true | ||
forward_to: | ||
- name: ns1 | ||
address: 192.168.10.1 | ||
|
||
- name: configure a nsgroup forwardingmember on the system | ||
nios_nsgroup_forwardingmember: | ||
name: ansible-nsgroup_forwardingmember | ||
state: present | ||
provider: "{{ nios_provider }}" | ||
forwarding_servers: | ||
- name: ns1 | ||
use_override_forwarders: true | ||
forward_to: | ||
- name: ns1 | ||
address: 192.168.10.1 | ||
register: nsgroup_forwardingmember_create1 | ||
|
||
- name: configure another nsgroup forwardingmember on the system | ||
nios_nsgroup_forwardingmember: | ||
name: ansible-nsgroup_forwardingmember | ||
state: present | ||
provider: "{{ nios_provider }}" | ||
forwarding_servers: | ||
- name: ns1 | ||
use_override_forwarders: true | ||
forward_to: | ||
- name: ns1 | ||
address: 192.168.10.1 | ||
register: nsgroup_forwardingmember_create2 | ||
|
||
- name: update the comment and ext attributes for an existing nsgroup forwardingmember | ||
nios_nsgroup_forwardingmember: | ||
name: ansible-nsgroup_forwardingmember | ||
comment: this is an example comment | ||
extattrs: | ||
Site: west-dc | ||
state: present | ||
provider: "{{ nios_provider }}" | ||
forwarding_servers: | ||
- name: ns1 | ||
use_override_forwarders: true | ||
forward_to: | ||
- name: ns1 | ||
address: 192.168.10.1 | ||
register: nsgroup_forwardingmember_update1 | ||
|
||
- name: update again the comment and ext attributes for an existing nsgroup forwardingmember | ||
nios_nsgroup_forwardingmember: | ||
name: ansible-nsgroup_forwardingmember | ||
comment: this is an example comment | ||
extattrs: | ||
Site: west-dc | ||
state: present | ||
provider: "{{ nios_provider }}" | ||
forwarding_servers: | ||
- name: ns1 | ||
use_override_forwarders: true | ||
forward_to: | ||
- name: ns1 | ||
address: 192.168.10.1 | ||
register: nsgroup_forwardingmember_update2 | ||
|
||
- name: remove the nsgroup forwardingmember | ||
nios_nsgroup_forwardingmember: | ||
name: ansible-nsgroup_forwardingmember | ||
state: absent | ||
provider: "{{ nios_provider }}" | ||
forwarding_servers: | ||
- name: ns1 | ||
use_override_forwarders: true | ||
forward_to: | ||
- name: ns1 | ||
address: 192.168.10.1 | ||
register: nsgroup_forwardingmember_delete1 | ||
|
||
- name: remove again the nsgroup forwardingmember | ||
nios_nsgroup_forwardingmember: | ||
name: ansible-nsgroup_forwardingmember | ||
state: absent | ||
provider: "{{ nios_provider }}" | ||
forwarding_servers: | ||
- name: ns1 | ||
use_override_forwarders: true | ||
forward_to: | ||
- name: ns1 | ||
address: 192.168.10.1 | ||
register: nsgroup_forwardingmember_delete2 | ||
|
||
- assert: | ||
that: | ||
- "nsgroup_forwardingmember_create1.changed" | ||
- "not nsgroup_forwardingmember_create2.changed" | ||
- "nsgroup_forwardingmember_update1.changed" | ||
- "not nsgroup_forwardingmember_update2.changed" | ||
- "nsgroup_forwardingmember_delete1.changed" | ||
- "not nsgroup_forwardingmember_delete2.changed" |
3 changes: 3 additions & 0 deletions
3
tests/integration/targets/nios_nsgroup_forwardstubserver/aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
shippable/cloud/group1 | ||
cloud/nios | ||
destructive |
3 changes: 3 additions & 0 deletions
3
tests/integration/targets/nios_nsgroup_forwardstubserver/defaults/main.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
testcase: "*" | ||
test_items: [] |
2 changes: 2 additions & 0 deletions
2
tests/integration/targets/nios_nsgroup_forwardstubserver/meta/main.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dependencies: | ||
- prepare_nios_tests |
1 change: 1 addition & 0 deletions
1
tests/integration/targets/nios_nsgroup_forwardstubserver/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- include: nios_nsgroup_forwardstubserver_idempotence.yml |
83 changes: 83 additions & 0 deletions
83
...rgets/nios_nsgroup_forwardstubserver/tasks/nios_nsgroup_forwardstubserver_idempotence.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
- name: cleanup nsgroup forwardstubserver | ||
nios_nsgroup_forwardstubserver: | ||
name: ansible-nsgroup_forwardstubserver | ||
state: absent | ||
provider: "{{ nios_provider }}" | ||
external_servers: | ||
- name: ns1 | ||
address: 192.168.0.1 | ||
|
||
- name: configure a nsgroup forwardstubserver on the system | ||
nios_nsgroup_forwardstubserver: | ||
name: ansible-nsgroup_forwardstubserver | ||
state: present | ||
provider: "{{ nios_provider }}" | ||
external_servers: | ||
- name: ns1 | ||
address: 192.168.0.1 | ||
register: nsgroup_forwardstubserver_create1 | ||
|
||
- name: configure another nsgroup forwardstubserver on the system | ||
nios_nsgroup_forwardstubserver: | ||
name: ansible-nsgroup_forwardstubserver | ||
state: present | ||
provider: "{{ nios_provider }}" | ||
external_servers: | ||
- name: ns1 | ||
address: 192.168.0.1 | ||
register: nsgroup_forwardstubserver_create2 | ||
|
||
- name: update the comment and ext attributes for an existing nsgroup forwardstubserver | ||
nios_nsgroup_forwardstubserver: | ||
name: ansible-nsgroup_forwardstubserver | ||
comment: this is an example comment | ||
extattrs: | ||
Site: west-dc | ||
state: present | ||
provider: "{{ nios_provider }}" | ||
external_servers: | ||
- name: ns1 | ||
address: 192.168.0.1 | ||
register: nsgroup_forwardstubserver_update1 | ||
|
||
- name: update again the comment and ext attributes for an existing nsgroup forwardstubserver | ||
nios_nsgroup_forwardstubserver: | ||
name: ansible-nsgroup_forwardstubserver | ||
comment: this is an example comment | ||
extattrs: | ||
Site: west-dc | ||
state: present | ||
provider: "{{ nios_provider }}" | ||
external_servers: | ||
- name: ns1 | ||
address: 192.168.0.1 | ||
register: nsgroup_forwardstubserver_update2 | ||
|
||
- name: remove the nsgroup forwardstubserver | ||
nios_nsgroup_forwardstubserver: | ||
name: ansible-nsgroup_forwardstubserver | ||
state: absent | ||
provider: "{{ nios_provider }}" | ||
external_servers: | ||
- name: ns1 | ||
address: 192.168.0.1 | ||
register: nsgroup_forwardstubserver_delete1 | ||
|
||
- name: remove again the nsgroup forwardstubserver | ||
nios_nsgroup_forwardstubserver: | ||
name: ansible-nsgroup_forwardstubserver | ||
state: absent | ||
provider: "{{ nios_provider }}" | ||
external_servers: | ||
- name: ns1 | ||
address: 192.168.0.1 | ||
register: nsgroup_forwardstubserver_delete2 | ||
|
||
- assert: | ||
that: | ||
- "nsgroup_forwardstubserver_create1.changed" | ||
- "not nsgroup_forwardstubserver_create2.changed" | ||
- "nsgroup_forwardstubserver_update1.changed" | ||
- "not nsgroup_forwardstubserver_update2.changed" | ||
- "nsgroup_forwardstubserver_delete1.changed" | ||
- "not nsgroup_forwardstubserver_delete2.changed" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
shippable/cloud/group1 | ||
cloud/nios | ||
destructive |
3 changes: 3 additions & 0 deletions
3
tests/integration/targets/nios_nsgroup_stubmember/defaults/main.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
testcase: "*" | ||
test_items: [] |
2 changes: 2 additions & 0 deletions
2
tests/integration/targets/nios_nsgroup_stubmember/meta/main.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dependencies: | ||
- prepare_nios_tests |
1 change: 1 addition & 0 deletions
1
tests/integration/targets/nios_nsgroup_stubmember/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- include: nios_nsgroup_stubmember_idempotence.yml |
76 changes: 76 additions & 0 deletions
76
...integration/targets/nios_nsgroup_stubmember/tasks/nios_nsgroup_stubmember_idempotence.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
- name: cleanup nsgroup stubmember | ||
nios_nsgroup_stubmember: | ||
name: ansible-nsgroup_stubmember | ||
state: absent | ||
provider: "{{ nios_provider }}" | ||
stub_members: | ||
- name: ns1 | ||
|
||
- name: configure a nsgroup stubmember on the system | ||
nios_nsgroup_stubmember: | ||
name: ansible-nsgroup_stubmember | ||
state: present | ||
provider: "{{ nios_provider }}" | ||
stub_members: | ||
- name: ns1 | ||
register: nsgroup_stubmember_create1 | ||
|
||
- name: configure another nsgroup stubmember on the system | ||
nios_nsgroup_stubmember: | ||
name: ansible-nsgroup_stubmember | ||
state: present | ||
provider: "{{ nios_provider }}" | ||
stub_members: | ||
- name: ns1 | ||
register: nsgroup_stubmember_create2 | ||
|
||
- name: update the comment and ext attributes for an existing nsgroup stubmember | ||
nios_nsgroup_stubmember: | ||
name: ansible-nsgroup_stubmember | ||
comment: this is an example comment | ||
extattrs: | ||
Site: west-dc | ||
state: present | ||
provider: "{{ nios_provider }}" | ||
stub_members: | ||
- name: ns1 | ||
register: nsgroup_stubmember_update1 | ||
|
||
- name: update again the comment and ext attributes for an existing nsgroup stubmember | ||
nios_nsgroup_stubmember: | ||
name: ansible-nsgroup_stubmember | ||
comment: this is an example comment | ||
extattrs: | ||
Site: west-dc | ||
state: present | ||
provider: "{{ nios_provider }}" | ||
stub_members: | ||
- name: ns1 | ||
register: nsgroup_stubmember_update2 | ||
|
||
- name: remove the nsgroup stubmember | ||
nios_nsgroup_stubmember: | ||
name: ansible-nsgroup_stubmember | ||
state: absent | ||
provider: "{{ nios_provider }}" | ||
stub_members: | ||
- name: ns1 | ||
register: nsgroup_stubmember_delete1 | ||
|
||
- name: remove again the nsgroup stubmember | ||
nios_nsgroup_stubmember: | ||
name: ansible-nsgroup_stubmember | ||
state: absent | ||
provider: "{{ nios_provider }}" | ||
stub_members: | ||
- name: ns1 | ||
register: nsgroup_stubmember_delete2 | ||
|
||
- assert: | ||
that: | ||
- "nsgroup_stubmember_create1.changed" | ||
- "not nsgroup_stubmember_create2.changed" | ||
- "nsgroup_stubmember_update1.changed" | ||
- "not nsgroup_stubmember_update2.changed" | ||
- "nsgroup_stubmember_delete1.changed" | ||
- "not nsgroup_stubmember_delete2.changed" |