From ef34eb1a7d8c9e53af9e4fb996841fc5524bb16a Mon Sep 17 00:00:00 2001 From: Ganesh Nalawade Date: Wed, 31 Jan 2018 00:07:01 +0530 Subject: [PATCH] Fix junos integration test failures (#35508) * More integration testcase fixes for junos_facts --- .../targets/junos_facts/tests/netconf/facts.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration/targets/junos_facts/tests/netconf/facts.yaml b/test/integration/targets/junos_facts/tests/netconf/facts.yaml index 15391c1d8c..d16dc33870 100644 --- a/test/integration/targets/junos_facts/tests/netconf/facts.yaml +++ b/test/integration/targets/junos_facts/tests/netconf/facts.yaml @@ -74,7 +74,7 @@ - assert: that: - "result.changed == false" - - "'{{ inventory_hostname_short }}' in result['ansible_facts']['ansible_net_config']" + - "'' in result['ansible_facts']['ansible_net_config']" - name: Collect config facts from device in json format junos_facts: @@ -86,13 +86,13 @@ - assert: that: - "result.changed == false" - - "'{{ inventory_hostname_short }}' == '{{ result['ansible_facts']['ansible_net_config']['configuration'][0]['system'][0]['host-name'][0]['data'] }}' " + - "'{{ result['ansible_facts']['ansible_net_config']['configuration'][0]['system'][0]['service'][0]['netconf'] }}' is defined" when: ansible_net_version == "15.1X49-D15.4" - assert: that: - "result.changed == false" - - "'{{ inventory_hostname_short }}' == '{{ result['ansible_facts']['ansible_net_config']['configuration']['system']['host-name'] }}' " + - "'{{ result['ansible_facts']['ansible_net_config']['configuration']['system']['service']['netconf'] }}' is defined" when: ansible_net_version == "17.3R1.10" - name: Collect config facts from device in text format @@ -105,6 +105,6 @@ - assert: that: - "result.changed == false" - - "'system {\n host-name {{ inventory_hostname_short }};' in result['ansible_facts']['ansible_net_config']" + - "'netconf {' in result['ansible_facts']['ansible_net_config']" - debug: msg="END netconf/facts.yaml on connection={{ ansible_connection }}"