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/roles/test_dellos10_config/tests/cli/toplevel.yaml
Senthil Kumar Ganesan 2f46f8f944 Added support for new Ansible Infra (network_cli plugin, cliconf, module utils cleanup and test) for dellos10 Support t (#34915)
* 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
2018-01-25 12:37:27 +00:00

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"