mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Make junos integration test checks platform independent (#27768)
This commit is contained in:
parent
000f8dcc8f
commit
0f261964f7
15 changed files with 48 additions and 51 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue