[stable-2.9] fix nxos_config tests for httpapi (#62082)

* fix nxos_config tests for httpapi

* Remove become parameter

(cherry picked from commit c4894b512d)
pull/62378/head
Mike Wiebe 5 years ago committed by Toshio Kuratomi
parent 424feef990
commit dc2dd97e7d

@ -25,9 +25,3 @@
with_items: "{{ test_items }}" with_items: "{{ test_items }}"
loop_control: loop_control:
loop_var: test_case_to_run loop_var: test_case_to_run
- name: run test cases (connection=local)
include: "{{ test_case_to_run }} ansible_connection=local connection={{ nxapi }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run

@ -66,7 +66,6 @@
backup_options: backup_options:
filename: backup.cfg filename: backup.cfg
dir_path: "{{ role_path }}/backup_test_dir/{{ inventory_hostname_short }}" dir_path: "{{ role_path }}/backup_test_dir/{{ inventory_hostname_short }}"
become: yes
register: result register: result
- assert: - assert:
@ -88,7 +87,6 @@
backup: yes backup: yes
backup_options: backup_options:
filename: backup.cfg filename: backup.cfg
become: yes
register: result register: result
- assert: - assert:
@ -110,7 +108,6 @@
backup: yes backup: yes
backup_options: backup_options:
dir_path: "{{ role_path }}/backup_test_dir/{{ inventory_hostname_short }}" dir_path: "{{ role_path }}/backup_test_dir/{{ inventory_hostname_short }}"
become: yes
register: result register: result
- assert: - assert:

Loading…
Cancel
Save