mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
iosxr tests to work with 2.3 (#21998)
This commit is contained in:
parent
9c72d478ec
commit
9f49d4b8f4
3 changed files with 5 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
- hosts: iosxr
|
||||
gather_facts: no
|
||||
connection: local
|
||||
|
||||
vars:
|
||||
limit_to: "*"
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
iosxr_command:
|
||||
commands:
|
||||
- show version
|
||||
- show interfaces GigabitEthernet0/0/0/1
|
||||
- show interfaces Loopback 888
|
||||
wait_for:
|
||||
- "result[0] contains 6.0.0"
|
||||
- "result[1] contains GigabitEthernet0/0/0/1"
|
||||
- "result[0] contains 'Cisco IOS XR Software'"
|
||||
- "result[1] contains 'Hardware is Loopback interface'"
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
- assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
- "'hostname foo' in result.updates"
|
||||
- "'hostname foo' in result.commands"
|
||||
|
||||
- name: configure top level command idempotent check
|
||||
iosxr_config:
|
||||
|
|
Loading…
Reference in a new issue