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 }}"