mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
2f46f8f944
* Support for network_cli plugin and tests * Fixed ansible-test * issues * Fixed Pylint warning * Fixed the sanity test errors * Fix YAMLlinter issue - removed blank spaces * Fixed Python 3 failures * Fixed the PEP8 issue * Fix sanity --test validate-modules * Reverted the changes to the doc fragments
37 lines
761 B
YAML
Executable file
37 lines
761 B
YAML
Executable file
---
|
|
- debug: msg="START cli/toplevel.yaml"
|
|
|
|
- name: setup
|
|
dellos10_config:
|
|
lines: ['hostname {{ inventory_hostname }}']
|
|
provider: "{{ cli }}"
|
|
match: none
|
|
|
|
- name: configure top level command
|
|
dellos10_config:
|
|
lines: ['hostname foo']
|
|
provider: "{{ cli }}"
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- "result.changed == true"
|
|
- "'hostname foo' in result.updates"
|
|
|
|
- name: configure top level command idempotent check
|
|
dellos10_config:
|
|
lines: ['hostname foo']
|
|
provider: "{{ cli }}"
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- "result.changed == false"
|
|
|
|
- name: teardown
|
|
dellos10_config:
|
|
lines: ['hostname {{ inventory_hostname }}']
|
|
provider: "{{ cli }}"
|
|
match: none
|
|
|
|
- debug: msg="END cli/toplevel.yaml"
|