Make junos integration test checks platform independent (#27768)

pull/27738/head
Ganesh Nalawade 7 years ago committed by Ricardo Carrillo Cruz
parent 000f8dcc8f
commit 0f261964f7

@ -5,9 +5,9 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
wait_for:
- "result[0]['software-information'][0]['host-name'][0]['data'] foo fxp0"
- "result[0]['software-information'][0]['host-name'][0]['data'] foo lo0"
format: json
provider: "{{ netconf }}"
register: result

@ -5,11 +5,10 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
format: json
wait_for:
- "result[0]['software-information'][0]['host-name'][0]['data'] contains {{ inventory_hostname_short }}"
- "result[1]['interface-information'][0]['physical-interface'][0]['name'][0]['data'] contains fxp0"
- "result[1]['interface-information'][0]['physical-interface'][0]['name'][0]['data'] contains lo0"
provider: "{{ netconf }}"
register: result

@ -5,10 +5,9 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
wait_for:
- "result[0]['software-information'][0]['host-name'][0]['data'] == {{ inventory_hostname_short }}"
- "result[1]['interface-information'][0]['physical-interface'][0]['name'][0]['data'] == fxp0"
- "result[1]['interface-information'][0]['physical-interface'][0]['name'][0]['data'] == lo0"
format: json
provider: "{{ netconf }}"
register: result
@ -23,10 +22,9 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
wait_for:
- "result[0]['software-information'][0]['host-name'][0]['data'] eq {{ inventory_hostname_short }}"
- "result[1]['interface-information'][0]['physical-interface'][0]['name'][0]['data'] eq fxp0"
- "result[1]['interface-information'][0]['physical-interface'][0]['name'][0]['data'] eq lo0"
format: json
provider: "{{ netconf }}"
register: result

@ -5,10 +5,10 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
format: json
wait_for:
- "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['data'] gt 1500"
- "result[1]['interface-information'][0]['physical-interface'][0]['local-index'][0]['data'] gt 5"
provider: "{{ netconf }}"
register: result
@ -22,10 +22,10 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
format: json
wait_for:
- "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['data'] > 1500"
- "result[1]['interface-information'][0]['physical-interface'][0]['local-index'][0]['data'] > 5"
provider: "{{ netconf }}"
register: result

@ -5,10 +5,10 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
format: json
wait_for:
- "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['data'] ge 1514"
- "result[1]['interface-information'][0]['physical-interface'][0]['local-index'][0]['data'] ge 6"
provider: "{{ netconf }}"
register: result
@ -22,10 +22,10 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
format: json
wait_for:
- "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['data'] >= 1514"
- "result[1]['interface-information'][0]['physical-interface'][0]['local-index'][0]['data'] >= 6"
provider: "{{ netconf }}"
register: result

@ -5,10 +5,10 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
format: json
wait_for:
- "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['data'] lt 9000"
- "result[1]['interface-information'][0]['physical-interface'][0]['local-index'][0]['data'] lt 7"
provider: "{{ netconf }}"
register: result
@ -22,10 +22,10 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
format: json
wait_for:
- "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['data'] lt 9000"
- "result[1]['interface-information'][0]['physical-interface'][0]['local-index'][0]['data'] lt 7"
provider: "{{ netconf }}"
register: result

@ -5,10 +5,10 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
format: json
wait_for:
- "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['data'] le 1514"
- "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['local-index'] le 6"
provider: "{{ netconf }}"
register: result
@ -22,10 +22,10 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
format: json
wait_for:
- "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['data'] <= 1514"
- "result[1]['interface-information'][0]['physical-interface'][0]['mtu'][0]['local-index'] <= 6"
provider: "{{ netconf }}"
register: result

@ -5,7 +5,7 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
format: json
wait_for:
- "result[0]['software-information'][0]['host-name'][0]['data'] neq localhost"
@ -22,7 +22,7 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
format: json
wait_for:
- "result[0]['software-information'][0]['host-name'][0]['data'] != localhost"

@ -5,9 +5,9 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
wait_for:
- "result[1].interface-information[0].physical-interface[0].name[0].data foo fxp0"
- "result[1].interface-information[0].physical-interface[0].name[0].data foo lo0"
encoding: text
provider: "{{ netconf }}"
register: result

@ -5,11 +5,11 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
display: text
wait_for:
- "result[0] contains {{ inventory_hostname_short }}"
- "result[1] contains fxp0"
- "result[1] contains lo0"
provider: "{{ netconf }}"
register: result

@ -5,9 +5,9 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
wait_for:
- "result[1].rpc-reply.interface-information[0].physical-interface[0].name[0].data foo fxp0"
- "result[1].rpc-reply.interface-information[0].physical-interface[0].name[0].data foo lo0"
format: xml
provider: "{{ netconf }}"
register: result

@ -5,10 +5,10 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
format: xml
wait_for:
- "result[1].rpc-reply.interface-information.physical-interface.mtu gt 1500"
- "result[1].rpc-reply.interface-information.physical-interface.local-index gt 5"
provider: "{{ netconf }}"
register: result
@ -22,10 +22,10 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
format: xml
wait_for:
- "result[1].rpc-reply.interface-information.physical-interface.mtu > 1500"
- "result[1].rpc-reply.interface-information.physical-interface.local-index > 5"
provider: "{{ netconf }}"
register: result

@ -5,10 +5,10 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
format: xml
wait_for:
- "result[1].rpc-reply.interface-information.physical-interface.mtu ge 1514"
- "result[1].rpc-reply.interface-information.physical-interface.local-index ge 6"
provider: "{{ netconf }}"
register: result
@ -22,10 +22,10 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
format: xml
wait_for:
- "result[1].rpc-reply.interface-information.physical-interface.mtu >= 1514"
- "result[1].rpc-reply.interface-information.physical-interface.local-index >= 6"
provider: "{{ netconf }}"
register: result

@ -5,10 +5,10 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
format: xml
wait_for:
- "result[1].rpc-reply.interface-information.physical-interface.mtu lt 9000"
- "result[1].rpc-reply.interface-information.physical-interface.local-index lt 7"
provider: "{{ netconf }}"
register: result
@ -22,10 +22,10 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
format: xml
wait_for:
- "result[1].rpc-reply.interface-information.physical-interface.mtu lt 9000"
- "result[1].rpc-reply.interface-information.physical-interface.mtu lt 7"
provider: "{{ netconf }}"
register: result

@ -5,10 +5,10 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
format: xml
wait_for:
- "result[1].rpc-reply.interface-information.physical-interface.mtu le 1514"
- "result[1].rpc-reply.interface-information.physical-interface.local-index le 6"
provider: "{{ netconf }}"
register: result
@ -22,10 +22,10 @@
junos_command:
commands:
- show version
- show interfaces fxp0
- show interfaces lo0
format: xml
wait_for:
- "result[1].rpc-reply.interface-information.physical-interface.mtu <= 1514"
- "result[1].rpc-reply.interface-information.physical-interface.local-index <= 6"
provider: "{{ netconf }}"
register: result

Loading…
Cancel
Save