mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-08 22:30:04 -07:00
meraki_network - Add support for disableMyMerakiCom (#42418)
* Add support for disable_my_meraki parameter - Meraki added support for the disabling access to Meraki websites on devices. This module now supports this. - I haven't tested this as it was developed on an iPad. It will work before submitting PR. - Rework of payload generation code is required or at least recommended. - Integration tests need to be developed. * Added support for disableMyMerakiCom parameter * - Remove proposed functions as it isn't required for updates - Add integration tests - Still pending a case response from Meraki since I can't seem to set disableMyMerakiCom to false after it's true * Fixed word wrap problem * Add version_added to disable_my_meraki
This commit is contained in:
parent
c644e3da79
commit
7b07c9b220
2 changed files with 32 additions and 16 deletions
|
@ -79,7 +79,7 @@
|
|||
delegate_to: localhost
|
||||
register: create_net_wireless_idempotent
|
||||
|
||||
- name: Create network with type combined
|
||||
- name: Create network with type combined and disable my.meraki.com
|
||||
meraki_network:
|
||||
auth_key: '{{ auth_key }}'
|
||||
state: present
|
||||
|
@ -87,8 +87,19 @@
|
|||
net_name: IntTestNetworkCombined
|
||||
type: combined
|
||||
timezone: America/Chicago
|
||||
disable_my_meraki: yes
|
||||
delegate_to: localhost
|
||||
register: create_net_combined
|
||||
|
||||
- name: Reenable my.meraki.com
|
||||
meraki_network:
|
||||
auth_key: '{{ auth_key }}'
|
||||
state: present
|
||||
org_name: '{{test_org_name}}'
|
||||
net_name: IntTestNetworkCombined
|
||||
disable_my_meraki: no
|
||||
delegate_to: localhost
|
||||
register: enable_meraki_com
|
||||
|
||||
- name: Create network with one tag
|
||||
meraki_network:
|
||||
|
@ -148,6 +159,9 @@
|
|||
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
|
||||
- '"org_name or org_id parameters are required" in create_net_no_org.msg'
|
||||
- '"IntTestNetworkAppliance" in create_net_appliance_no_tz.data.name'
|
||||
- create_net_appliance_no_tz.changed == True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue