add replace testcase eos_config (#27693)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha 2017-08-03 17:00:35 +05:30 committed by John R Barker
parent 1ce2bf56a2
commit 60b3f80c6c
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,3 @@
vlan 50
name foo

View file

@ -36,4 +36,15 @@
# https://github.com/ansible/ansible-modules-core/issues/4807
- "result.updates is not defined"
- name: check replace config with src
eos_config:
src: basic/vlan.j2
replace: config
provider: "{{ cli }}"
register: result
- assert:
that:
- "result.changed == true"
- debug: msg="END cli/src_basic.yaml"