diff options
author | Nathaniel Case <this.is@nathanielca.se> | 2017-12-20 11:26:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-20 11:26:09 -0500 |
commit | 2e76c899104eb55cc56589927d3b7ee8fc1e6e30 (patch) | |
tree | 0edace460e20651d48c851bf1b7bc57174594cf4 /test/integration/targets/iosxr_netconf | |
parent | 5db9ac23ee37dea480749bee4f3b7a96e1f60a4c (diff) | |
download | ansible-2e76c899104eb55cc56589927d3b7ee8fc1e6e30.tar.gz |
IOS XR cli tests move to network_cli (#34007)
* Update task definitions for network_cli
* Add connection to debug messages
* Specify connection for prepare task
* pc won't be around for connection=network_cli
* Assorted Python 3 fixes
* Give default port if ansible_ssh_port missing
* delegate -> connection
* Extend error regex
Diffstat (limited to 'test/integration/targets/iosxr_netconf')
-rw-r--r-- | test/integration/targets/iosxr_netconf/tasks/cli.yaml | 10 | ||||
-rw-r--r-- | test/integration/targets/iosxr_netconf/tests/cli/basic.yaml | 4 |
2 files changed, 10 insertions, 4 deletions
diff --git a/test/integration/targets/iosxr_netconf/tasks/cli.yaml b/test/integration/targets/iosxr_netconf/tasks/cli.yaml index 46d86dd698..890d3acf3e 100644 --- a/test/integration/targets/iosxr_netconf/tasks/cli.yaml +++ b/test/integration/targets/iosxr_netconf/tasks/cli.yaml @@ -9,8 +9,14 @@ - name: set test_items set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}" -- name: run test case - include: "{{ test_case_to_run }}" +- 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 + +- name: run test case (connection=local) + include: "{{ test_case_to_run }} ansible_connection=local" + with_first_found: "{{ test_items }}" + loop_control: + loop_var: test_case_to_run diff --git a/test/integration/targets/iosxr_netconf/tests/cli/basic.yaml b/test/integration/targets/iosxr_netconf/tests/cli/basic.yaml index 43af3aacf8..c1eae2e6d7 100644 --- a/test/integration/targets/iosxr_netconf/tests/cli/basic.yaml +++ b/test/integration/targets/iosxr_netconf/tests/cli/basic.yaml @@ -1,5 +1,5 @@ --- -- debug: msg="START iosxr_netconf cli/basic.yaml" +- debug: msg="START iosxr_netconf cli/basic.yaml on connection={{ ansible_connection }}" - name: Disable NetConf service iosxr_netconf: &disable_netconf @@ -66,4 +66,4 @@ - name: Disable Netconf service iosxr_netconf: *disable_netconf -- debug: msg="END iosxr_netconf cli/basic.yaml" +- debug: msg="END iosxr_netconf cli/basic.yaml on connection={{ ansible_connection }}" |