diff options
author | Nathaniel Case <this.is@nathanielca.se> | 2018-05-17 18:47:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-17 18:47:15 -0400 |
commit | e9d7fa04181e91effad9fbfa2026e3994d695776 (patch) | |
tree | 7806f47c4042be67f2148fed61dc0a30ef0b5229 /test/integration/targets/eos_facts | |
parent | cc61c860492d3165a68b4c3361bac900d29613d2 (diff) | |
download | ansible-e9d7fa04181e91effad9fbfa2026e3994d695776.tar.gz |
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/eos_facts')
10 files changed, 2 insertions, 24 deletions
diff --git a/test/integration/targets/eos_facts/tasks/cli.yaml b/test/integration/targets/eos_facts/tasks/cli.yaml index a6f7ae0351..87a42971bb 100644 --- a/test/integration/targets/eos_facts/tasks/cli.yaml +++ b/test/integration/targets/eos_facts/tasks/cli.yaml @@ -14,9 +14,3 @@ 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 ansible_become=no" - with_first_found: "{{ test_items }}" - loop_control: - loop_var: test_case_to_run diff --git a/test/integration/targets/eos_facts/tasks/eapi.yaml b/test/integration/targets/eos_facts/tasks/eapi.yaml index bda1df677a..1109c6bf6a 100644 --- a/test/integration/targets/eos_facts/tasks/eapi.yaml +++ b/test/integration/targets/eos_facts/tasks/eapi.yaml @@ -9,8 +9,8 @@ - name: set test_items set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}" -- name: run test case (connection=local) - include: "{{ test_case_to_run }} ansible_connection=local" +- 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/eos_facts/tests/cli/all_facts.yaml b/test/integration/targets/eos_facts/tests/cli/all_facts.yaml index 8183fed980..4a4ed164d5 100644 --- a/test/integration/targets/eos_facts/tests/cli/all_facts.yaml +++ b/test/integration/targets/eos_facts/tests/cli/all_facts.yaml @@ -4,7 +4,6 @@ - name: test getting all facts eos_facts: - provider: "{{ cli }}" gather_subset: - all become: yes diff --git a/test/integration/targets/eos_facts/tests/cli/default_facts.yaml b/test/integration/targets/eos_facts/tests/cli/default_facts.yaml index bdf6ac4793..3f5879a0c5 100644 --- a/test/integration/targets/eos_facts/tests/cli/default_facts.yaml +++ b/test/integration/targets/eos_facts/tests/cli/default_facts.yaml @@ -4,7 +4,6 @@ - name: test getting default facts eos_facts: - provider: "{{ cli }}" become: yes register: result diff --git a/test/integration/targets/eos_facts/tests/cli/invalid_subset.yaml b/test/integration/targets/eos_facts/tests/cli/invalid_subset.yaml index 0eb2d3626c..b339fcfca6 100644 --- a/test/integration/targets/eos_facts/tests/cli/invalid_subset.yaml +++ b/test/integration/targets/eos_facts/tests/cli/invalid_subset.yaml @@ -4,7 +4,6 @@ - name: test invalid subset (foobar) eos_facts: - provider: "{{ cli }}" gather_subset: - "foobar" register: result @@ -26,7 +25,6 @@ - name: test subset specified multiple times eos_facts: - provider: "{{ cli }}" gather_subset: - "!hardware" - "hardware" diff --git a/test/integration/targets/eos_facts/tests/cli/not_hardware.yaml b/test/integration/targets/eos_facts/tests/cli/not_hardware.yaml index 5679049b86..a2322f0cbe 100644 --- a/test/integration/targets/eos_facts/tests/cli/not_hardware.yaml +++ b/test/integration/targets/eos_facts/tests/cli/not_hardware.yaml @@ -4,7 +4,6 @@ - name: test not hardware eos_facts: - provider: "{{ cli }}" gather_subset: - "!hardware" become: yes diff --git a/test/integration/targets/eos_facts/tests/eapi/all_facts.yaml b/test/integration/targets/eos_facts/tests/eapi/all_facts.yaml index 1112148a5e..0c01a536d1 100644 --- a/test/integration/targets/eos_facts/tests/eapi/all_facts.yaml +++ b/test/integration/targets/eos_facts/tests/eapi/all_facts.yaml @@ -5,11 +5,9 @@ eos_config: lines: lldp run authorize: yes - provider: "{{ eapi }}" - name: test getting all facts eos_facts: - provider: "{{ eapi }}" gather_subset: - all register: result @@ -35,6 +33,5 @@ eos_config: lines: no lldp run authorize: yes - provider: "{{ eapi }}" - debug: msg="END eapi/all_facts.yaml" diff --git a/test/integration/targets/eos_facts/tests/eapi/default_facts.yaml b/test/integration/targets/eos_facts/tests/eapi/default_facts.yaml index 2892746671..79b5be58ba 100644 --- a/test/integration/targets/eos_facts/tests/eapi/default_facts.yaml +++ b/test/integration/targets/eos_facts/tests/eapi/default_facts.yaml @@ -5,11 +5,9 @@ eos_config: lines: lldp run authorize: yes - provider: "{{ eapi }}" - name: test getting default facts eos_facts: - provider: "{{ eapi }}" register: result - assert: @@ -37,6 +35,5 @@ eos_config: lines: lldp run authorize: yes - provider: "{{ eapi }}" - debug: msg="END eapi/default.yaml" diff --git a/test/integration/targets/eos_facts/tests/eapi/invalid_subset.yaml b/test/integration/targets/eos_facts/tests/eapi/invalid_subset.yaml index e6fba87181..ec8bc75d5a 100644 --- a/test/integration/targets/eos_facts/tests/eapi/invalid_subset.yaml +++ b/test/integration/targets/eos_facts/tests/eapi/invalid_subset.yaml @@ -4,7 +4,6 @@ - name: test invalid subset (foobar) eos_facts: - provider: "{{ eapi }}" gather_subset: - "foobar" register: result @@ -26,7 +25,6 @@ - name: test subset specified multiple times eos_facts: - provider: "{{ eapi }}" gather_subset: - "!hardware" - "hardware" diff --git a/test/integration/targets/eos_facts/tests/eapi/not_hardware.yaml b/test/integration/targets/eos_facts/tests/eapi/not_hardware.yaml index 46b54a6354..0b00c945c9 100644 --- a/test/integration/targets/eos_facts/tests/eapi/not_hardware.yaml +++ b/test/integration/targets/eos_facts/tests/eapi/not_hardware.yaml @@ -5,11 +5,9 @@ eos_config: lines: lldp run authorize: yes - provider: "{{ eapi }}" - name: test not hardware eos_facts: - provider: "{{ eapi }}" gather_subset: - "!hardware" register: result @@ -36,6 +34,5 @@ eos_config: lines: no lldp run authorize: yes - provider: "{{ eapi }}" - debug: msg="END eapi/not_hardware_facts.yaml" |