You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/junos_smoke/tasks/cli.yaml

16 lines
455 B
YAML

Refactor CLI prompt mode check for network plugins (#63945) (#69210) * Refactor CLI prompt mode check for network plugins (#63945) * Refactor CLI prompt mode check for network plugins * Move the CLI prompt mode check logic from action plugin to the controller side with the cliconf plugins. * This refactor also allows the network modules to initialise the persistent connection with remote device only when it is required. * Fix review comments (cherry picked from commit c27e47327f902dddf0b93767e387cacdfc12e11f) * Fix cli context check for network_cli connection (#64697) * Fix cli context check for network_cli connection Fixes #64575 * Check cli context for network_cli connection at the start of new task run only. * Pass task_uuid around to identify start of new task run * Handle for local connection (cherry picked from commit ee3f8d28a4c77a8fe90bd37ff9ab8312bb52a873) * Add test for reboot & wait_for_connection on EOS & IOS (#63014) * Add test for reboot & wait_for_connection * Add test for ios * Collection-proof block test * Add junos test * Don't try to evaluate cli context unless using the connection * Prevent infinite recursion * Update change log (cherry picked from commit e19b94f43b62c011a07ba65db276ed54fb3f1082) (cherry picked from commit ee3f8d28a4c77a8fe90bd37ff9ab8312bb52a873) (cherry picked from commit e19b94f43b62c011a07ba65db276ed54fb3f1082) devel: https://github.com/ansible/ansible/pull/63945 https://github.com/ansible/ansible/pull/64697 https://github.com/ansible/ansible/pull/63014 Co-authored-by: Nathaniel Case <ncase@redhat.com>
5 years ago
- name: collect cli test cases
find:
paths: "{{ role_path }}/tests/cli"
patterns: "{{ testcase }}.yaml"
connection: local
register: test_cases
- 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