Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix eos_config integration test failure #39662

Merged
merged 1 commit into from
May 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions test/integration/targets/eos_config/tests/cli/check_mode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
lines:
- ip address 119.31.1.1 255.255.255.256
parents: interface Loopback911
provider: "{{ cli }}"
become: yes
check_mode: 1
environment:
ANSIBLE_EOS_USE_SESSIONS: 1
Expand All @@ -23,6 +25,8 @@
before:
- "no ip access-list test"
src: basic/cmds.j2
provider: "{{ cli }}"
become: yes
check_mode: yes
register: config

Expand All @@ -31,6 +35,7 @@
commands:
- show configuration sessions | json
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -42,6 +47,8 @@
lines:
- ip address 119.31.1.1 255.255.255.256
parents: interface Loopback911
provider: "{{ cli }}"
become: yes
check_mode: 1
environment:
ANSIBLE_EOS_USE_SESSIONS: 0
Expand All @@ -57,6 +64,8 @@
lines:
- ip address 119.31.1.1 255.255.255.255
parents: interface Loopback911
provider: "{{ cli }}"
become: yes
check_mode: yes
register: result
environment:
Expand Down