mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Remove unnecessary features from cli_command (#43829)
* Remove wait_for & associated params * Upgrade command dict to top-level, remove more wait_for accessories * We don't need all this anymore * Update docs * Update tests to new argspec * Be a little more explicit about sendonly Also remove reference to the word provider. * Add example of prompt and answer
This commit is contained in:
16
test/integration/targets/junos_command/tasks/cli.yaml
Normal file
16
test/integration/targets/junos_command/tasks/cli.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
- name: collect all cli test cases
|
||||
find:
|
||||
paths: "{{ role_path }}/tests/cli"
|
||||
patterns: "{{ testcase }}.yaml"
|
||||
register: test_cases
|
||||
delegate_to: localhost
|
||||
|
||||
- name: set test_items
|
||||
set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
|
||||
|
||||
- name: run test case (connection=network_cli)
|
||||
include: "{{ test_case_to_run }} ansible_connection=network_cli"
|
||||
with_items: "{{ test_items }}"
|
||||
loop_control:
|
||||
loop_var: test_case_to_run
|
||||
@@ -2,3 +2,4 @@
|
||||
- { include: netconf_xml.yaml, tags: ['netconf', 'xml'] }
|
||||
- { include: netconf_text.yaml, tags: ['netconf', 'text'] }
|
||||
- { include: netconf_json.yaml, tags: ['netconf', 'json'] }
|
||||
- { include: cli.yaml, tags: ['cli'] }
|
||||
|
||||
Reference in New Issue
Block a user