diff options
Diffstat (limited to 'test/integration/targets/eos_template/tests/eapi/basic.yaml')
-rw-r--r-- | test/integration/targets/eos_template/tests/eapi/basic.yaml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/integration/targets/eos_template/tests/eapi/basic.yaml b/test/integration/targets/eos_template/tests/eapi/basic.yaml new file mode 100644 index 0000000000..22d1085581 --- /dev/null +++ b/test/integration/targets/eos_template/tests/eapi/basic.yaml @@ -0,0 +1,36 @@ +--- +- debug: msg="START eapi/basic.yaml" + +- name: setup + eos_config: + commands: + - no description + - no shutdown + parents: + - interface Ethernet5 + match: none + provider: "{{ eapi }}" + +- name: configure device with config + eos_template: + src: basic/config.j2 + provider: "{{ eapi }}" + register: result + +- assert: + that: + - "result.changed == true" + - "result.updates is defined" + +- name: check device with config + eos_template: + src: basic/config.j2 + provider: "{{ eapi }}" + register: result + +- assert: + that: + - "result.changed == false" + - "result.updates is defined" + +- debug: msg="END eapi/basic.yaml" |