Swap how become is specified for ios integration tests (#34107)

This commit is contained in:
Nathaniel Case 2017-12-20 14:05:16 -05:00 committed by GitHub
commit 5f215337c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 28 additions and 202 deletions

View file

@ -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

View file

@ -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

View file

@ -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: