mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Added support for passing org_id instead of org_name (#41518)
- Faster execution if passed instead of org_name - Updated documentation - Added additional integration tests
This commit is contained in:
parent
5ee0c0af18
commit
4a0b8f5123
2 changed files with 48 additions and 7 deletions
|
@ -20,6 +20,32 @@
|
|||
- create_orgaccess.changed == true
|
||||
- 'create_orgaccess.data.name == "Jane Doe"'
|
||||
|
||||
- name: Delete recently created administrator
|
||||
meraki_admin:
|
||||
auth_key: '{{auth_key}}'
|
||||
state: absent
|
||||
org_name: '{{test_org_name}}'
|
||||
email: '{{email_prefix}}+janedoe@{{email_domain}}'
|
||||
delegate_to: localhost
|
||||
register: delete_one
|
||||
|
||||
- name: Create new administrator with org_id
|
||||
meraki_admin:
|
||||
auth_key: '{{auth_key}}'
|
||||
state: present
|
||||
org_id: '{{test_org_id}}'
|
||||
name: Jane Doe
|
||||
email: '{{email_prefix}}+janedoe@{{email_domain}}'
|
||||
orgAccess: read-only
|
||||
delegate_to: localhost
|
||||
register: create_orgaccess_id
|
||||
|
||||
- name: Create new admin assertion
|
||||
assert:
|
||||
that:
|
||||
- create_orgaccess_id.changed == true
|
||||
- 'create_orgaccess_id.data.name == "Jane Doe"'
|
||||
|
||||
- name: Create administrator with tags
|
||||
meraki_admin:
|
||||
auth_key: '{{auth_key}}'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue