summaryrefslogtreecommitdiff
path: root/test/integration/targets/nxos_template/tests/cli/basic.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/nxos_template/tests/cli/basic.yaml')
-rw-r--r--test/integration/targets/nxos_template/tests/cli/basic.yaml36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/integration/targets/nxos_template/tests/cli/basic.yaml b/test/integration/targets/nxos_template/tests/cli/basic.yaml
new file mode 100644
index 0000000000..17625e4173
--- /dev/null
+++ b/test/integration/targets/nxos_template/tests/cli/basic.yaml
@@ -0,0 +1,36 @@
+---
+- debug: msg="START cli/basic.yaml"
+
+- name: setup
+ nxos_config:
+ commands:
+ - no description
+ - no shutdown
+ parents:
+ - interface Ethernet2/5
+ match: none
+ provider: "{{ cli }}"
+
+- name: configure device with config
+ nxos_template:
+ src: basic/config.j2
+ provider: "{{ cli }}"
+ register: result
+
+- assert:
+ that:
+ - "result.changed == true"
+ - "result.updates is defined"
+
+- name: check device with config
+ nxos_template:
+ src: basic/config.j2
+ provider: "{{ cli }}"
+ register: result
+
+- assert:
+ that:
+ - "result.changed == false"
+ - "result.updates is defined"
+
+- debug: msg="END cli/basic.yaml"