From c4c99d66fc05d8df28f2f3a98e70ef676ccfcc36 Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Fri, 4 Aug 2017 14:46:59 +0200 Subject: [PATCH] Replace fxp0 for lo0 on junos_command equal and notequal tests (#27758) The nodes in the CI do not use fxp nomenclature, but em. Use lo0, as that's common for nodes in our CI and our test lab. --- .../targets/junos_command/tests/netconf_xml/equal.yaml | 10 ++++------ .../junos_command/tests/netconf_xml/notequal.yaml | 4 ++-- 2 files changed, 6 insertions(+), 8 deletions(-) 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 f9cec1b09c..558961beed 100644 --- a/test/integration/targets/junos_command/tests/netconf_xml/equal.yaml +++ b/test/integration/targets/junos_command/tests/netconf_xml/equal.yaml @@ -5,10 +5,9 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 wait_for: - - "result[0].rpc-reply.software-information.host-name == {{ inventory_hostname_short }}" - - "result[1].rpc-reply.interface-information.physical-interface.name == fxp0" + - "result[1].rpc-reply.interface-information.physical-interface.name == lo0" format: xml provider: "{{ netconf }}" register: result @@ -23,10 +22,9 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 wait_for: - - "result[0].rpc-reply.software-information.host-name eq {{ inventory_hostname_short }}" - - "result[1].rpc-reply.interface-information.physical-interface.name eq fxp0" + - "result[1].rpc-reply.interface-information.physical-interface.name eq lo0" format: xml 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 b97b656fd2..071ea5bcf2 100644 --- a/test/integration/targets/junos_command/tests/netconf_xml/notequal.yaml +++ b/test/integration/targets/junos_command/tests/netconf_xml/notequal.yaml @@ -5,7 +5,7 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: xml wait_for: - "result[0].rpc-reply.software-information.host-name neq localhost" @@ -22,7 +22,7 @@ junos_command: commands: - show version - - show interfaces fxp0 + - show interfaces lo0 format: xml wait_for: - "result[0].rpc-reply.software-information.host-name != localhost"