mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Initial commit
This commit is contained in:
3
tests/integration/targets/nios_network/aliases
Normal file
3
tests/integration/targets/nios_network/aliases
Normal file
@@ -0,0 +1,3 @@
|
||||
shippable/cloud/group1
|
||||
cloud/nios
|
||||
destructive
|
||||
2
tests/integration/targets/nios_network/meta/main.yaml
Normal file
2
tests/integration/targets/nios_network/meta/main.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
dependencies:
|
||||
- prepare_nios_tests
|
||||
1
tests/integration/targets/nios_network/tasks/main.yml
Normal file
1
tests/integration/targets/nios_network/tasks/main.yml
Normal file
@@ -0,0 +1 @@
|
||||
- include: nios_network_idempotence.yml
|
||||
@@ -0,0 +1,80 @@
|
||||
- name: cleanup a network ipv4
|
||||
nios_network:
|
||||
network: 192.168.10.0/24
|
||||
comment: this is a test comment
|
||||
state: absent
|
||||
provider: "{{ nios_provider }}"
|
||||
|
||||
- name: configure a network ipv4
|
||||
nios_network:
|
||||
network: 192.168.10.0/24
|
||||
comment: this is a test comment
|
||||
state: present
|
||||
provider: "{{ nios_provider }}"
|
||||
register: nios_ipv4_create1
|
||||
|
||||
- name: configure a network ipv4
|
||||
nios_network:
|
||||
network: 192.168.10.0/24
|
||||
comment: this is a test comment
|
||||
state: present
|
||||
provider: "{{ nios_provider }}"
|
||||
register: nios_ipv4_create2
|
||||
|
||||
#- assert:
|
||||
# that:
|
||||
# - "nios_ipv4_create1.changed"
|
||||
# - "not nios_ipv4_create2.changed"
|
||||
|
||||
- name: set dhcp options for a network ipv4
|
||||
nios_network:
|
||||
network: 192.168.10.0/24
|
||||
comment: this is a test comment
|
||||
options:
|
||||
- name: domain-name
|
||||
value: ansible.com
|
||||
state: present
|
||||
provider: "{{ nios_provider }}"
|
||||
register: nios_ipv4_update1
|
||||
|
||||
- name: set dhcp options for a network ipv4
|
||||
nios_network:
|
||||
network: 192.168.10.0/24
|
||||
comment: this is a test comment
|
||||
options:
|
||||
- name: domain-name
|
||||
value: ansible.com
|
||||
state: present
|
||||
provider: "{{ nios_provider }}"
|
||||
register: nios_ipv4_update2
|
||||
|
||||
- name: remove a network ipv4
|
||||
nios_network:
|
||||
network: 192.168.10.0/24
|
||||
state: absent
|
||||
provider: "{{ nios_provider }}"
|
||||
register: nios_ipv4_remove1
|
||||
|
||||
- name: remove a network ipv4
|
||||
nios_network:
|
||||
network: 192.168.10.0/24
|
||||
state: absent
|
||||
provider: "{{ nios_provider }}"
|
||||
register: nios_ipv4_remove2
|
||||
|
||||
- name: configure a network ipv6
|
||||
nios_network:
|
||||
network: fe80::/64
|
||||
comment: this is a test comment
|
||||
state: present
|
||||
provider: "{{ nios_provider }}"
|
||||
register: nios_ipv6_create1
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "nios_ipv4_create1.changed"
|
||||
- "not nios_ipv4_create2.changed"
|
||||
- "nios_ipv4_update1.changed"
|
||||
- "not nios_ipv4_update2.changed"
|
||||
- "nios_ipv4_remove1.changed"
|
||||
- "not nios_ipv4_remove2.changed"
|
||||
Reference in New Issue
Block a user