meraki_network - Restructure execution logic (#56818)

* Restructure meraki_network to be simpler and work for all int tests

* Enable all integration tests and enhance error reports

* Slight tweaks to integration tests
This commit is contained in:
Kevin Breit
2019-06-05 09:33:55 -05:00
committed by Nathaniel Case
parent 091bebcbf7
commit 8bcf9b5734
3 changed files with 64 additions and 58 deletions

View File

@@ -15,6 +15,10 @@
register: create_net_no_type
ignore_errors: yes
- assert:
that:
- create_net_no_type.msg == 'type parameter is required when creating a network.'
- name: Create network without organization
meraki_network:
auth_key: '{{ auth_key }}'
@@ -255,12 +259,15 @@
delegate_to: localhost
register: create_net_tags
- name: Modify network
- set_fact:
tag_net_id: '{{create_net_tags.data.id}}'
- name: Modify network by net_id
meraki_network:
auth_key: '{{ auth_key }}'
state: present
org_name: '{{test_org_name}}'
net_name: IntTestNetworkTags
net_id: '{{tag_net_id}}'
type: switch
timezone: America/Chicago
tags:
@@ -292,7 +299,6 @@
- name: Present assertions
assert:
that:
- create_net_no_type.status == 500
- create_net_combined.data.type == 'combined'
- create_net_combined.data.disableMyMerakiCom == True
- enable_meraki_com.data.disableMyMerakiCom == False