junos lldp interface test fix ()

This commit is contained in:
Ganesh Nalawade 2017-08-09 15:17:36 +05:30 committed by GitHub
parent dd8b65395f
commit c05b303db5
2 changed files with 7 additions and 7 deletions
test/integration/targets
junos_lldp_interface/tests/netconf
net_lldp_interface/tests/junos

View file

@ -66,7 +66,7 @@
- assert:
that:
- "result.changed == true"
- "'[edit protocols lldp interface ge-0/0/5]\n+ disable;' in result.diff.prepared"
- result.diff.prepared | search("\+ *disable")
- name: Enable lldp on particular interface
junos_lldp_interface:
@ -78,7 +78,7 @@
- assert:
that:
- "result.changed == true"
- "'[edit protocols lldp interface ge-0/0/5]\n- disable;' in result.diff.prepared"
- result.diff.prepared | search("\- *disable")
- name: Delete lldp on particular interface
junos_lldp_interface:
@ -90,7 +90,7 @@
- assert:
that:
- "result.changed == true"
- "'[edit protocols lldp]\n- interface ge-0/0/5;' in result.diff.prepared"
- result.diff.prepared | search("\- *interface ge-0/0/5")
- name: Delete lldp on particular interface (idempotent)
junos_lldp_interface:

View file

@ -17,7 +17,7 @@
- assert:
that:
- "result.changed == true"
- "'+ interface ge-0/0/5;' in result.diff.prepared"
- result.diff.prepared | search("\+ *interface ge-0/0/5")
- name: lldp interface configuration (idempotent)
net_lldp_interface:
@ -40,7 +40,7 @@
- assert:
that:
- "result.changed == true"
- "'[edit protocols lldp interface ge-0/0/5]\n+ disable;' in result.diff.prepared"
- result.diff.prepared | search("\+ *disable")
- name: Enable lldp on particular interface
net_lldp_interface:
@ -52,7 +52,7 @@
- assert:
that:
- "result.changed == true"
- "'[edit protocols lldp interface ge-0/0/5]\n- disable;' in result.diff.prepared"
- result.diff.prepared | search("\+ *disable")
- name: Delete lldp on particular interface
net_lldp_interface:
@ -64,7 +64,7 @@
- assert:
that:
- "result.changed == true"
- "'[edit protocols lldp]\n- interface ge-0/0/5;' in result.diff.prepared"
- result.diff.prepared | search("\- *interface ge-0/0/5")
- name: Delete lldp on particular interface (idempotent)
net_lldp_interface: