mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Meraki - Add check for auth_key parameter (#56199)
* auth_key parameter is required - This will have to change when httpapi is implemented * Add integration test * Add assertion * Enable VLANs on network * Add required for auth_key
This commit is contained in:
committed by
Nathaniel Case
parent
fa7aedc4c3
commit
322cfa49d0
@@ -36,6 +36,20 @@
|
||||
- '"Failed to connect to" in invalid_domain.msg'
|
||||
- '"http" in http.url'
|
||||
|
||||
- name: Test play without auth_key
|
||||
meraki_network:
|
||||
state: present
|
||||
org_name: '{{test_org_name}}'
|
||||
net_name: '{{test_net_name}}'
|
||||
type: appliance
|
||||
delegate_to: localhost
|
||||
ignore_errors: yes
|
||||
register: no_key
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- '"missing required arguments" in no_key.msg'
|
||||
|
||||
- name: Create test network
|
||||
meraki_network:
|
||||
auth_key: '{{auth_key}}'
|
||||
@@ -45,6 +59,15 @@
|
||||
type: appliance
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Enable VLANs on network
|
||||
meraki_network:
|
||||
auth_key: '{{auth_key}}'
|
||||
state: present
|
||||
org_name: '{{test_org_name}}'
|
||||
net_name: '{{test_net_name}}'
|
||||
enable_vlans: yes
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Create VLAN
|
||||
meraki_vlan:
|
||||
auth_key: '{{auth_key}}'
|
||||
|
||||
Reference in New Issue
Block a user