mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Meraki utility now loads() JSON (#40856)
* Changed request() to run json.loads() instead of module doing it - Removed json.loads() from modules - Removed some unreliable integration tests - Removed self.function setting in construct_path() - * PEP8 changes * Remove debug line for push
This commit is contained in:
parent
ba848e018c
commit
2be2a572d6
8 changed files with 45 additions and 42 deletions
|
@ -80,6 +80,17 @@
|
|||
- '"400" in create_tags_invalid_permission.msg'
|
||||
# - '"Invalid permission type" in create_tags_invalid_permission.msg'
|
||||
|
||||
- name: Make sure TestNet and TestNet2 are created
|
||||
meraki_network:
|
||||
auth_key: '{{auth_key}}'
|
||||
state: present
|
||||
org_name: '{{test_org_name}}'
|
||||
net_name: '{{item}}'
|
||||
type: switch
|
||||
loop:
|
||||
- TestNet
|
||||
- TestNet2
|
||||
|
||||
- name: Create administrator with networks
|
||||
meraki_admin:
|
||||
auth_key: '{{auth_key}}'
|
||||
|
|
|
@ -168,7 +168,7 @@
|
|||
- name: Query assertions
|
||||
assert:
|
||||
that:
|
||||
- net_query_all.data | length == 7
|
||||
# - net_query_all.data | length == 7
|
||||
- 'net_query_one.data.name == "IntTestNetworkSwitch"'
|
||||
|
||||
- name: Delete network without org
|
||||
|
@ -231,5 +231,5 @@
|
|||
assert:
|
||||
that:
|
||||
- '"org_name or org_id parameters are required" in delete_all_no_org.msg'
|
||||
- query_deleted_org_id.data | length == 6
|
||||
# - query_deleted_org_id.data | length == 6
|
||||
- query_deleted.data | length == 0
|
|
@ -107,9 +107,6 @@
|
|||
delegate_to: localhost
|
||||
register: query_org
|
||||
|
||||
- debug:
|
||||
msg: '{{query_org}}'
|
||||
|
||||
- name: Query information about IntTestOrg by organization ID
|
||||
meraki_organization:
|
||||
auth_key: '{{ auth_key }}'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue