diff options
Diffstat (limited to 'test/integration/targets/meraki_network')
-rw-r--r-- | test/integration/targets/meraki_network/tasks/main.yml | 65 |
1 files changed, 63 insertions, 2 deletions
diff --git a/test/integration/targets/meraki_network/tasks/main.yml b/test/integration/targets/meraki_network/tasks/main.yml index c077091aec..9ec9bccd23 100644 --- a/test/integration/targets/meraki_network/tasks/main.yml +++ b/test/integration/targets/meraki_network/tasks/main.yml @@ -56,7 +56,69 @@ type: appliance delegate_to: localhost register: create_net_appliance_no_tz - + + - name: Enable VLAN support on appliance network + meraki_network: + auth_key: '{{ auth_key }}' + state: present + org_name: '{{ test_org_name }}' + net_name: IntTestNetworkAppliance + enable_vlans: yes + delegate_to: localhost + register: enable_vlan + + - debug: + msg: '{{ enable_vlan }}' + + - assert: + that: + - enable_vlan.data.enabled == True + + - name: Enable VLAN support on appliance network with idempotency + meraki_network: + auth_key: '{{ auth_key }}' + state: present + org_name: '{{ test_org_name }}' + net_name: IntTestNetworkAppliance + enable_vlans: yes + delegate_to: localhost + register: enable_vlan_idempotent + + - assert: + that: + - enable_vlan_idempotent is not changed + + - name: Disable VLAN support on appliance network + meraki_network: + auth_key: '{{ auth_key }}' + state: present + org_name: '{{ test_org_name }}' + net_name: IntTestNetworkAppliance + enable_vlans: no + delegate_to: localhost + register: disable_vlan + + - debug: + msg: '{{ disable_vlan }}' + + - assert: + that: + - disable_vlan.data.enabled == False + + - name: Disable VLAN support on appliance network with idempotency + meraki_network: + auth_key: '{{ auth_key }}' + state: present + org_name: '{{ test_org_name }}' + net_name: IntTestNetworkAppliance + enable_vlans: no + delegate_to: localhost + register: disable_vlan_idempotent + + - assert: + that: + - disable_vlan_idempotent is not changed + - name: Create network with type wireless meraki_network: auth_key: '{{ auth_key }}' @@ -216,7 +278,6 @@ that: - 'net_query_one.data.name == "IntTestNetworkSwitch"' - 'query_config_template.data.name == "{{ test_template_name }}"' - ############################################################################# # Tear down starts here |