meraki_mr_l3_firewall - Integration test fix (#45366)

* Fix integration test as wrong module was called

* Create block section for failures on integration test for mr_l3_firewall integration test

(cherry picked from commit 6c67674eab)
pull/45439/head
Kevin Breit 6 years ago committed by Toshio Kuratomi
parent 07b87c2ab7
commit 47410bdf5c

@ -3,7 +3,8 @@
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
---
- name: Create wireless network
- block:
- name: Create wireless network
meraki_network:
auth_key: '{{ auth_key }}'
state: present
@ -13,10 +14,10 @@
delegate_to: localhost
register: new_net
- set_fact:
- set_fact:
net: '{{new_net.data.id}}'
- name: Create single firewall rule
- name: Create single firewall rule
meraki_mr_l3_firewall:
auth_key: '{{ auth_key }}'
state: present
@ -33,15 +34,15 @@
delegate_to: localhost
register: create_one
- debug:
- debug:
msg: '{{create_one}}'
- assert:
- assert:
that:
- create_one.data.0.comment == 'Integration test rule'
- create_one.data.1.policy == 'deny'
- name: Enable local LAN access
- name: Enable local LAN access
meraki_mr_l3_firewall:
auth_key: '{{ auth_key }}'
state: present
@ -53,11 +54,11 @@
delegate_to: localhost
register: enable_lan
- assert:
- assert:
that:
- enable_lan.data.1.policy == 'allow'
- name: Query firewall rules
- name: Query firewall rules
meraki_mr_l3_firewall:
auth_key: '{{ auth_key }}'
state: query
@ -67,17 +68,21 @@
delegate_to: localhost
register: query
- debug:
- debug:
msg: '{{query}}'
- assert:
- assert:
that:
- query.data.1.comment == 'Wireless clients accessing LAN'
- query.data.2.comment == 'Default rule'
- query.changed == False
- name: Delete wireless network
meraki_network:
############################################################################
# Tear down starts here
############################################################################
always:
- name: Delete wireless network
meraki_ssid:
auth_key: '{{ auth_key }}'
state: absent
org_name: '{{test_org_name}}'

Loading…
Cancel
Save