diff options
author | Nathaniel Case <this.is@nathanielca.se> | 2017-12-20 14:05:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-20 14:05:16 -0500 |
commit | 5f215337c929762627d7f8976dc6078ddd6f7d62 (patch) | |
tree | ebdb14cbd50f104161abe82697563d56dfe0953a /test/integration/targets/ios_facts | |
parent | 427479ae489818758a595285561fd47e5cc2a870 (diff) | |
download | ansible-5f215337c929762627d7f8976dc6078ddd6f7d62.tar.gz |
Swap how become is specified for ios integration tests (#34107)
Diffstat (limited to 'test/integration/targets/ios_facts')
5 files changed, 2 insertions, 7 deletions
diff --git a/test/integration/targets/ios_facts/tasks/cli.yaml b/test/integration/targets/ios_facts/tasks/cli.yaml index a6f7ae0351..3fb2642692 100644 --- a/test/integration/targets/ios_facts/tasks/cli.yaml +++ b/test/integration/targets/ios_facts/tasks/cli.yaml @@ -10,13 +10,13 @@ set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}" - name: run test cases (connection=network_cli) - include: "{{ test_case_to_run }} ansible_connection=network_cli" + include: "{{ test_case_to_run }} ansible_connection=network_cli ansible_become=yes" 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" + 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/ios_facts/tests/cli/all_facts.yaml b/test/integration/targets/ios_facts/tests/cli/all_facts.yaml index 2c6dfad3d9..7d87034ea9 100644 --- a/test/integration/targets/ios_facts/tests/cli/all_facts.yaml +++ b/test/integration/targets/ios_facts/tests/cli/all_facts.yaml @@ -7,7 +7,6 @@ gather_subset: - all authorize: yes - become: yes register: result diff --git a/test/integration/targets/ios_facts/tests/cli/default_facts.yaml b/test/integration/targets/ios_facts/tests/cli/default_facts.yaml index 57f456f663..92c7eaf403 100644 --- a/test/integration/targets/ios_facts/tests/cli/default_facts.yaml +++ b/test/integration/targets/ios_facts/tests/cli/default_facts.yaml @@ -5,7 +5,6 @@ - name: test getting default facts ios_facts: authorize: yes - become: yes register: result - assert: diff --git a/test/integration/targets/ios_facts/tests/cli/invalid_subset.yaml b/test/integration/targets/ios_facts/tests/cli/invalid_subset.yaml index 0cb0a7c0c0..467bb9a91f 100644 --- a/test/integration/targets/ios_facts/tests/cli/invalid_subset.yaml +++ b/test/integration/targets/ios_facts/tests/cli/invalid_subset.yaml @@ -7,7 +7,6 @@ gather_subset: - "foobar" authorize: yes - become: yes register: result ignore_errors: true @@ -31,7 +30,6 @@ - "!hardware" - "hardware" authorize: yes - become: yes register: result ignore_errors: true diff --git a/test/integration/targets/ios_facts/tests/cli/not_hardware.yaml b/test/integration/targets/ios_facts/tests/cli/not_hardware.yaml index ba8e455c6a..b42351b114 100644 --- a/test/integration/targets/ios_facts/tests/cli/not_hardware.yaml +++ b/test/integration/targets/ios_facts/tests/cli/not_hardware.yaml @@ -7,7 +7,6 @@ gather_subset: - "!hardware" authorize: yes - become: yes register: result - assert: |