Fix eos_config integration test failure (#39662)
Enable become for eos_config check_mode test cases
This commit is contained in:
parent
88df583af7
commit
b20b964c4a
1 changed files with 9 additions and 0 deletions
|
@ -6,6 +6,8 @@
|
||||||
lines:
|
lines:
|
||||||
- ip address 119.31.1.1 255.255.255.256
|
- ip address 119.31.1.1 255.255.255.256
|
||||||
parents: interface Loopback911
|
parents: interface Loopback911
|
||||||
|
provider: "{{ cli }}"
|
||||||
|
become: yes
|
||||||
check_mode: 1
|
check_mode: 1
|
||||||
environment:
|
environment:
|
||||||
ANSIBLE_EOS_USE_SESSIONS: 1
|
ANSIBLE_EOS_USE_SESSIONS: 1
|
||||||
|
@ -23,6 +25,8 @@
|
||||||
before:
|
before:
|
||||||
- "no ip access-list test"
|
- "no ip access-list test"
|
||||||
src: basic/cmds.j2
|
src: basic/cmds.j2
|
||||||
|
provider: "{{ cli }}"
|
||||||
|
become: yes
|
||||||
check_mode: yes
|
check_mode: yes
|
||||||
register: config
|
register: config
|
||||||
|
|
||||||
|
@ -31,6 +35,7 @@
|
||||||
commands:
|
commands:
|
||||||
- show configuration sessions | json
|
- show configuration sessions | json
|
||||||
provider: "{{ cli }}"
|
provider: "{{ cli }}"
|
||||||
|
become: yes
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -42,6 +47,8 @@
|
||||||
lines:
|
lines:
|
||||||
- ip address 119.31.1.1 255.255.255.256
|
- ip address 119.31.1.1 255.255.255.256
|
||||||
parents: interface Loopback911
|
parents: interface Loopback911
|
||||||
|
provider: "{{ cli }}"
|
||||||
|
become: yes
|
||||||
check_mode: 1
|
check_mode: 1
|
||||||
environment:
|
environment:
|
||||||
ANSIBLE_EOS_USE_SESSIONS: 0
|
ANSIBLE_EOS_USE_SESSIONS: 0
|
||||||
|
@ -57,6 +64,8 @@
|
||||||
lines:
|
lines:
|
||||||
- ip address 119.31.1.1 255.255.255.255
|
- ip address 119.31.1.1 255.255.255.255
|
||||||
parents: interface Loopback911
|
parents: interface Loopback911
|
||||||
|
provider: "{{ cli }}"
|
||||||
|
become: yes
|
||||||
check_mode: yes
|
check_mode: yes
|
||||||
register: result
|
register: result
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue