From 0343ac1a9d60ed8de9b4ff967ab0674a5ff673e7 Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Sun, 6 Aug 2017 10:06:53 +0200 Subject: [PATCH] Fix asserts of junos_command netconf_json notequal and lessthanorequal (#27818) --- .../junos_command/tests/netconf_json/lessthanorequal.yaml | 4 ++-- .../targets/junos_command/tests/netconf_json/notequal.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration/targets/junos_command/tests/netconf_json/lessthanorequal.yaml b/test/integration/targets/junos_command/tests/netconf_json/lessthanorequal.yaml index 2cf4c190be1..49f38d36934 100644 --- a/test/integration/targets/junos_command/tests/netconf_json/lessthanorequal.yaml +++ b/test/integration/targets/junos_command/tests/netconf_json/lessthanorequal.yaml @@ -8,7 +8,7 @@ - show interfaces lo0 format: json wait_for: - - "result[1]['interface-information'][0]['physical-interface'][0]['local-index'][0] le 6" + - "result[1]['interface-information'][0]['physical-interface'][0]['local-index'][0][data] le 6" provider: "{{ netconf }}" register: result @@ -25,7 +25,7 @@ - show interfaces lo0 format: json wait_for: - - "result[1]['interface-information'][0]['physical-interface'][0]['local-index'][0] <= 6" + - "result[1]['interface-information'][0]['physical-interface'][0]['local-index'][0][data] <= 6" provider: "{{ netconf }}" register: result diff --git a/test/integration/targets/junos_command/tests/netconf_json/notequal.yaml b/test/integration/targets/junos_command/tests/netconf_json/notequal.yaml index e09fc275cdb..a87f26b7a39 100644 --- a/test/integration/targets/junos_command/tests/netconf_json/notequal.yaml +++ b/test/integration/targets/junos_command/tests/netconf_json/notequal.yaml @@ -8,7 +8,7 @@ - show interfaces lo0 format: json wait_for: - - "result[0]['software-information'][0]['host-name'][0]['data'] neq localhost" + - "result[1]['interface-information'][0]['physical-interface'][0]['name'][0]['data'] neq em0" provider: "{{ netconf }}" register: result @@ -25,7 +25,7 @@ - show interfaces lo0 format: json wait_for: - - "result[0]['software-information'][0]['host-name'][0]['data'] != localhost" + - "result[1]['interface-information'][0]['physical-interface'][0]['name'][0]['data'] neq em0" provider: "{{ netconf }}" register: result