mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Swap how become is specified for ios integration tests (#34107)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
authorize: yes
|
||||
wait_for:
|
||||
- "result[0] contains 'Description: Foo'"
|
||||
become: yes
|
||||
register: result
|
||||
ignore_errors: yes
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
wait_for:
|
||||
- "result[0] contains Cisco"
|
||||
- "result[1] contains Loopback888"
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
ios_command:
|
||||
commands: show foo
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
ignore_errors: yes
|
||||
|
||||
@@ -19,7 +18,6 @@
|
||||
- show version
|
||||
- show foo
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
ignore_errors: yes
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
commands:
|
||||
- show version
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -20,7 +19,6 @@
|
||||
- show version
|
||||
- show interfaces
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
authorize: yes
|
||||
wait_for:
|
||||
- "result[0] contains bad_value_string"
|
||||
become: yes
|
||||
register: result
|
||||
ignore_errors: yes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user