summaryrefslogtreecommitdiff
path: root/test/integration/targets/nxos_vrrp
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/nxos_vrrp')
-rw-r--r--test/integration/targets/nxos_vrrp/tests/common/sanity.yaml45
1 files changed, 40 insertions, 5 deletions
diff --git a/test/integration/targets/nxos_vrrp/tests/common/sanity.yaml b/test/integration/targets/nxos_vrrp/tests/common/sanity.yaml
index ae915ff573..67b7b2acd9 100644
--- a/test/integration/targets/nxos_vrrp/tests/common/sanity.yaml
+++ b/test/integration/targets/nxos_vrrp/tests/common/sanity.yaml
@@ -26,7 +26,7 @@
interface: vlan10
group: 100
vip: 10.1.100.1
- admin_state: shutdown
+ admin_state: 'no shutdown'
provider: "{{ connection }}"
register: result
@@ -42,13 +42,27 @@
that:
- "result.changed == false"
+ - name: Ensure vrrp group 100 is default
+ nxos_vrrp: &configure_def
+ interface: vlan10
+ group: 100
+ vip: default
+ admin_state: default
+ provider: "{{ connection }}"
+ register: result
+
+ - assert: *true
+
+ - name: "Conf Idempotence"
+ nxos_vrrp: *configure_def
+ register: result
+
+ - assert: *false
+
- name: Ensure removal of the vrrp group config
- # vip is required to ensure the user knows what they are removing
nxos_vrrp: &remove
interface: vlan10
group: 100
- vip: 10.1.100.1
- admin_state: shutdown
state: absent
provider: "{{ connection }}"
register: result
@@ -72,7 +86,8 @@
interface: vlan10
group: 100
vip: 10.1.100.1
- preempt: false
+ preempt: False
+ interval: 10
priority: 130
authentication: AUTHKEY
provider: "{{ connection }}"
@@ -86,6 +101,26 @@
- assert: *false
+ - name: Re-config with defaults
+ nxos_vrrp: &reconfig_def
+ interface: vlan10
+ group: 100
+ vip: default
+ preempt: True
+ interval: default
+ priority: default
+ authentication: default
+ provider: "{{ connection }}"
+ register: result
+
+ - assert: *true
+
+ - name: "Reconfig Idempotence"
+ nxos_vrrp: *reconfig_def
+ register: result
+
+ - assert: *false
+
always:
- name: remove vrrp
nxos_vrrp: *remove