mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-29 08:01:24 -07:00
Swap how become is specified for ios integration tests (#34107)
This commit is contained in:
parent
427479ae48
commit
5f215337c9
49 changed files with 28 additions and 202 deletions
|
@ -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
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
gather_subset:
|
||||
- all
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
- name: test getting default facts
|
||||
ios_facts:
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
gather_subset:
|
||||
- "!hardware"
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue