mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-06 02:33:09 +00:00
iosxr tests to work with 2.3 (#21998)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user