From ae373d5a10ad33990409214af385fbe3ed898060 Mon Sep 17 00:00:00 2001 From: Ganesh Nalawade Date: Tue, 7 May 2019 06:56:17 -0400 Subject: [PATCH] Fix cli_config junos integration test failures (#56159) * Priviledge escalation is not required for junos cli_config backup opeation. --- .../targets/junos_config/tests/cli_config/cli_backup.yaml | 4 ---- .../targets/junos_config/tests/cli_config/cli_basic.yaml | 2 -- 2 files changed, 6 deletions(-) diff --git a/test/integration/targets/junos_config/tests/cli_config/cli_backup.yaml b/test/integration/targets/junos_config/tests/cli_config/cli_backup.yaml index a431c01fdea..1d43ba81985 100644 --- a/test/integration/targets/junos_config/tests/cli_config/cli_backup.yaml +++ b/test/integration/targets/junos_config/tests/cli_config/cli_backup.yaml @@ -24,7 +24,6 @@ - name: take config backup cli_config: backup: yes - become: yes register: result - assert: @@ -48,7 +47,6 @@ backup_options: filename: backup.cfg dir_path: "{{ role_path }}/backup_test_dir/{{ inventory_hostname_short }}" - become: yes register: result - assert: @@ -70,7 +68,6 @@ backup: yes backup_options: filename: backup.cfg - become: yes register: result - assert: @@ -92,7 +89,6 @@ backup: yes backup_options: dir_path: "{{ role_path }}/backup_test_dir/{{ inventory_hostname_short }}" - become: yes register: result - assert: diff --git a/test/integration/targets/junos_config/tests/cli_config/cli_basic.yaml b/test/integration/targets/junos_config/tests/cli_config/cli_basic.yaml index 4782c87a611..1aa64b68127 100644 --- a/test/integration/targets/junos_config/tests/cli_config/cli_basic.yaml +++ b/test/integration/targets/junos_config/tests/cli_config/cli_basic.yaml @@ -4,12 +4,10 @@ - name: setup cli_config: &rm1 config: delete interfaces ge-0/0/1 - become: yes - name: setup cli_config: &rm2 config: delete interfaces ge-0/0/2 - become: yes - name: configure device with config cli_config: &conf1