mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -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
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
state: present
|
||||
authorize: yes
|
||||
configured_password: pass123
|
||||
become: yes
|
||||
|
||||
- name: test login
|
||||
expect:
|
||||
|
@ -35,7 +34,6 @@
|
|||
name: auth_user
|
||||
state: absent
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- name: reset connection
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
- name: ansibletest3
|
||||
state: absent
|
||||
authorize: yes
|
||||
become: yes
|
||||
|
||||
- name: Create user (SetUp)
|
||||
ios_user:
|
||||
|
@ -16,7 +15,6 @@
|
|||
role: network-operator
|
||||
state: present
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
@ -32,7 +30,6 @@
|
|||
authorize: yes
|
||||
state: present
|
||||
view: network-admin
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
@ -47,7 +44,6 @@
|
|||
role: network-operator
|
||||
state: present
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
@ -63,7 +59,6 @@
|
|||
authorize: yes
|
||||
state: present
|
||||
view: network-admin
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
@ -79,7 +74,6 @@
|
|||
- name: ansibletest3
|
||||
state: absent
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue