diff options
author | Nathaniel Case <this.is@nathanielca.se> | 2018-05-18 00:47:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-18 00:47:15 +0200 |
commit | e9d7fa04181e91effad9fbfa2026e3994d695776 (patch) | |
tree | 7806f47c4042be67f2148fed61dc0a30ef0b5229 /test/integration/targets/nxos_become | |
parent | sysvinit service module (#34962) (diff) | |
download | ansible-e9d7fa04181e91effad9fbfa2026e3994d695776.tar.xz ansible-e9d7fa04181e91effad9fbfa2026e3994d695776.zip |
HTTP(S) API connection plugin (#39224)
* HTTPAPI connection
* Punt run_commands to cliconf or httpapi
* Fake enable_mode on eapi
* Pull changes to nxos
* Move load_config to edit_config for future-preparedness
* Don't fail on lldp disabled
* Re-enable check_rc on nxos' run_commands
* Reorganize nxos httpapi plugin for compatibility
* draft docs for connection: httpapi
* restores docs for connection:local for eapi
* Add _remote_is_local to httpapi
Diffstat (limited to 'test/integration/targets/nxos_become')
-rw-r--r-- | test/integration/targets/nxos_become/tasks/nxapi.yaml | 6 | ||||
-rw-r--r-- | test/integration/targets/nxos_become/tests/cli/sanity.yaml | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/test/integration/targets/nxos_become/tasks/nxapi.yaml b/test/integration/targets/nxos_become/tasks/nxapi.yaml index 68e96a2942..653bcfefe9 100644 --- a/test/integration/targets/nxos_become/tasks/nxapi.yaml +++ b/test/integration/targets/nxos_become/tasks/nxapi.yaml @@ -1,5 +1,5 @@ --- -- name: collect common nxapi test cases +- name: collect common test cases find: paths: "{{ role_path }}/tests/common" patterns: "{{ testcase }}.yaml" @@ -20,8 +20,8 @@ - name: set test_items set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}" -- name: run test cases (connection=local) - include: "{{ test_case_to_run }} ansible_connection=local connection={{ nxapi }}" +- name: run test cases (connection=httpapi) + include: "{{ test_case_to_run }} ansible_connection=httpapi" with_items: "{{ test_items }}" loop_control: loop_var: test_case_to_run diff --git a/test/integration/targets/nxos_become/tests/cli/sanity.yaml b/test/integration/targets/nxos_become/tests/cli/sanity.yaml index ad863871e3..2a97362a52 100644 --- a/test/integration/targets/nxos_become/tests/cli/sanity.yaml +++ b/test/integration/targets/nxos_become/tests/cli/sanity.yaml @@ -10,7 +10,6 @@ - username admin role priv-14 - no username admin role priv-15 - enable secret 0 cisco - provider: "{{ cli }}" - name: reset_connection meta: reset_connection @@ -18,7 +17,6 @@ - name: run commands with become nxos_command: commands: 'show privilege' - provider: "{{ cli }}" become: yes register: result @@ -33,7 +31,6 @@ - username admin role priv-15 - no username admin role priv-14 - no enable secret - provider: "{{ cli }}" ignore_errors: yes - debug: msg="END connection={{ ansible_connection }}/sanity.yaml" |