summaryrefslogtreecommitdiff
path: root/test/integration/targets/nxos_config/tests/nxapi/save.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/nxos_config/tests/nxapi/save.yaml')
-rw-r--r--test/integration/targets/nxos_config/tests/nxapi/save.yaml35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/integration/targets/nxos_config/tests/nxapi/save.yaml b/test/integration/targets/nxos_config/tests/nxapi/save.yaml
new file mode 100644
index 0000000000..bd14176b05
--- /dev/null
+++ b/test/integration/targets/nxos_config/tests/nxapi/save.yaml
@@ -0,0 +1,35 @@
+---
+- debug: msg="START nxapi/save.yaml"
+
+- name: setup
+ nxos_config:
+ commands:
+ - no description
+ - no shutdown
+ parents:
+ - interface Ethernet2/5
+ match: none
+ provider: "{{ nxapi }}"
+
+
+- name: save config
+ nxos_config:
+ save: true
+ provider: "{{ nxapi }}"
+ register: result
+
+- assert:
+ that:
+ - "result.changed == true"
+
+- name: save should always run
+ nxos_config:
+ save: true
+ provider: "{{ nxapi }}"
+ register: result
+
+- assert:
+ that:
+ - "result.changed == true"
+
+- debug: msg="END nxapi/save.yaml"