1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/nxos_user/tests/nxapi/basic.yaml
Nathaniel Case 13948b6d72 More nxos integration fixes (#27507)
* nxos does not have `authorize`

* Enable nxos_banner nxapi tests
2017-07-31 14:13:32 -04:00

39 lines
860 B
YAML

---
- name: Create user
nxos_user:
name: netend
roles: network-operator
state: present
provider: "{{ nxapi }}"
register: result
- assert:
that:
- 'result.changed == true'
- 'result.commands == ["username netend role network-operator"]'
- name: Collection of users
nxos_user:
aggregate:
- name: test1
- name: test2
state: present
roles: network-admin
provider: "{{ nxapi }}"
register: result
- assert:
that:
- 'result.changed == true'
- 'result.commands == ["username test1 role network-admin", "username test2 role network-admin"]'
- name: tearDown
nxos_user:
purge: yes
provider: "{{ nxapi }}"
register: result
- assert:
that:
- 'result.changed == true'
- 'result.commands == ["no username netend", "no username test1", "no username test2"]'