summaryrefslogtreecommitdiff
path: root/test/integration/targets
diff options
context:
space:
mode:
authorKevin Breit <kevin.breit@kevinbreit.net>2019-05-01 11:24:39 -0500
committerNathaniel Case <ncase@redhat.com>2019-05-01 12:24:39 -0400
commita89a2cf33fa3d9aefc0eb1bb0465167099d1e2aa (patch)
treec5d92d2f4869180e76c6df6a236da7a5420ac8d8 /test/integration/targets
parent23ddc7738b260a94861252ae643cb5313d93e0a5 (diff)
downloadansible-a89a2cf33fa3d9aefc0eb1bb0465167099d1e2aa.tar.gz
meraki/meraki_network - Enable/disable VLANs on network (#48820)
* Redo branch to fix merge commit * Add changelog fragment * Make VLAN settings idempotent * Fix conflict * Change `version_added` to 2.9 instead of 2.8.
Diffstat (limited to 'test/integration/targets')
-rw-r--r--test/integration/targets/meraki_network/tasks/main.yml65
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