diff options
author | Peter Sprygada <privateip@users.noreply.github.com> | 2017-03-02 16:46:23 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-02 16:46:23 -0600 |
commit | 911600acf95ac15fef1c37ffaf922a748e3273e4 (patch) | |
tree | 2948c90af815a2a9134c5b3496de8bff37ef250b /test/integration/targets/junos_command | |
parent | 3afc993f3a5774f61b6a9b6ed4ea1136821f91ef (diff) | |
download | ansible-911600acf95ac15fef1c37ffaf922a748e3273e4.tar.gz |
update junos_command integration tests (#22213)
fixes integration test to check for full rpc-reply string when
converted from xml. This is a change from 2.2 as the rpc-reply tag
is no longer stripped off
Diffstat (limited to 'test/integration/targets/junos_command')
8 files changed, 17 insertions, 17 deletions
diff --git a/test/integration/targets/junos_command/tests/netconf_xml/bad_operator.yaml b/test/integration/targets/junos_command/tests/netconf_xml/bad_operator.yaml index bc97b14d37..e8ca7c96d9 100644 --- a/test/integration/targets/junos_command/tests/netconf_xml/bad_operator.yaml +++ b/test/integration/targets/junos_command/tests/netconf_xml/bad_operator.yaml @@ -7,7 +7,7 @@ - show version - show interfaces fxp0 wait_for: - - "result[1].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 fxp0" format: xml provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_xml/contains.yaml b/test/integration/targets/junos_command/tests/netconf_xml/contains.yaml index a111d57955..6a507cafc2 100644 --- a/test/integration/targets/junos_command/tests/netconf_xml/contains.yaml +++ b/test/integration/targets/junos_command/tests/netconf_xml/contains.yaml @@ -8,8 +8,8 @@ - show interfaces fxp0 format: xml wait_for: - - "result[0].software-information.host-name contains {{ inventory_hostname_short }}" - - "result[1].interface-information.physical-interface.name contains fxp0" + - "result[0].rpc-reply.software-information.host-name contains {{ inventory_hostname_short }}" + - "result[1].rpc-reply.interface-information.physical-interface.name contains fxp0" provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_xml/equal.yaml b/test/integration/targets/junos_command/tests/netconf_xml/equal.yaml index 9afdf36c4c..f9cec1b09c 100644 --- a/test/integration/targets/junos_command/tests/netconf_xml/equal.yaml +++ b/test/integration/targets/junos_command/tests/netconf_xml/equal.yaml @@ -7,8 +7,8 @@ - show version - show interfaces fxp0 wait_for: - - "result[0].software-information.host-name == {{ inventory_hostname_short }}" - - "result[1].interface-information.physical-interface.name == fxp0" + - "result[0].rpc-reply.software-information.host-name == {{ inventory_hostname_short }}" + - "result[1].rpc-reply.interface-information.physical-interface.name == fxp0" format: xml provider: "{{ netconf }}" register: result @@ -25,8 +25,8 @@ - show version - show interfaces fxp0 wait_for: - - "result[0].software-information.host-name eq {{ inventory_hostname_short }}" - - "result[1].interface-information.physical-interface.name eq fxp0" + - "result[0].rpc-reply.software-information.host-name eq {{ inventory_hostname_short }}" + - "result[1].rpc-reply.interface-information.physical-interface.name eq fxp0" format: xml provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_xml/greaterthan.yaml b/test/integration/targets/junos_command/tests/netconf_xml/greaterthan.yaml index 65c306429b..6e02dad288 100644 --- a/test/integration/targets/junos_command/tests/netconf_xml/greaterthan.yaml +++ b/test/integration/targets/junos_command/tests/netconf_xml/greaterthan.yaml @@ -8,7 +8,7 @@ - show interfaces fxp0 format: xml wait_for: - - "result[1].interface-information.physical-interface.mtu gt 1500" + - "result[1].rpc-reply.interface-information.physical-interface.mtu gt 1500" provider: "{{ netconf }}" register: result @@ -25,7 +25,7 @@ - show interfaces fxp0 format: xml wait_for: - - "result[1].interface-information.physical-interface.mtu > 1500" + - "result[1].rpc-reply.interface-information.physical-interface.mtu > 1500" provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_xml/greaterthanorequal.yaml b/test/integration/targets/junos_command/tests/netconf_xml/greaterthanorequal.yaml index d6a2ae7102..11e537c705 100644 --- a/test/integration/targets/junos_command/tests/netconf_xml/greaterthanorequal.yaml +++ b/test/integration/targets/junos_command/tests/netconf_xml/greaterthanorequal.yaml @@ -8,7 +8,7 @@ - show interfaces fxp0 format: xml wait_for: - - "result[1].interface-information.physical-interface.mtu ge 1514" + - "result[1].rpc-reply.interface-information.physical-interface.mtu ge 1514" provider: "{{ netconf }}" register: result @@ -25,7 +25,7 @@ - show interfaces fxp0 format: xml wait_for: - - "result[1].interface-information.physical-interface.mtu >= 1514" + - "result[1].rpc-reply.interface-information.physical-interface.mtu >= 1514" provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_xml/lessthan.yaml b/test/integration/targets/junos_command/tests/netconf_xml/lessthan.yaml index f487c2b3ab..beea3882ff 100644 --- a/test/integration/targets/junos_command/tests/netconf_xml/lessthan.yaml +++ b/test/integration/targets/junos_command/tests/netconf_xml/lessthan.yaml @@ -8,7 +8,7 @@ - show interfaces fxp0 format: xml wait_for: - - "result[1].interface-information.physical-interface.mtu lt 9000" + - "result[1].rpc-reply.interface-information.physical-interface.mtu lt 9000" provider: "{{ netconf }}" register: result @@ -25,7 +25,7 @@ - show interfaces fxp0 format: xml wait_for: - - "result[1].interface-information.physical-interface.mtu lt 9000" + - "result[1].rpc-reply.interface-information.physical-interface.mtu lt 9000" provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_xml/lessthanorequal.yaml b/test/integration/targets/junos_command/tests/netconf_xml/lessthanorequal.yaml index d3c571e90b..973f59203e 100644 --- a/test/integration/targets/junos_command/tests/netconf_xml/lessthanorequal.yaml +++ b/test/integration/targets/junos_command/tests/netconf_xml/lessthanorequal.yaml @@ -8,7 +8,7 @@ - show interfaces fxp0 format: xml wait_for: - - "result[1].interface-information.physical-interface.mtu le 1514" + - "result[1].rpc-reply.interface-information.physical-interface.mtu le 1514" provider: "{{ netconf }}" register: result @@ -25,7 +25,7 @@ - show interfaces fxp0 format: xml wait_for: - - "result[1].interface-information.physical-interface.mtu <= 1514" + - "result[1].rpc-reply.interface-information.physical-interface.mtu <= 1514" provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_xml/notequal.yaml b/test/integration/targets/junos_command/tests/netconf_xml/notequal.yaml index 191161d4a3..b97b656fd2 100644 --- a/test/integration/targets/junos_command/tests/netconf_xml/notequal.yaml +++ b/test/integration/targets/junos_command/tests/netconf_xml/notequal.yaml @@ -8,7 +8,7 @@ - show interfaces fxp0 format: xml wait_for: - - "result[0].software-information.host-name neq localhost" + - "result[0].rpc-reply.software-information.host-name neq localhost" provider: "{{ netconf }}" register: result @@ -25,7 +25,7 @@ - show interfaces fxp0 format: xml wait_for: - - "result[0].software-information.host-name != localhost" + - "result[0].rpc-reply.software-information.host-name != localhost" provider: "{{ netconf }}" register: result |