mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Remove provider from ios integration test (#31037)
* Remove provider from each task as it is not required. * Add `authorize: yes` whereever required
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
commands:
|
||||
- show version
|
||||
- show interfaces GigabitEthernet 0/0
|
||||
authorize: yes
|
||||
wait_for:
|
||||
- "result[0] contains 'Description: Foo'"
|
||||
register: result
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
commands:
|
||||
- show version
|
||||
- show interface loopback 888
|
||||
authorize: yes
|
||||
wait_for:
|
||||
- "result[0] contains Cisco"
|
||||
- "result[1] contains Loopback888"
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
- name: run invalid command
|
||||
ios_command:
|
||||
commands: show foo
|
||||
authorize: yes
|
||||
register: result
|
||||
ignore_errors: yes
|
||||
|
||||
@@ -16,6 +17,7 @@
|
||||
commands:
|
||||
- show version
|
||||
- show foo
|
||||
authorize: yes
|
||||
register: result
|
||||
ignore_errors: yes
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
ios_command:
|
||||
commands:
|
||||
- show version
|
||||
authorize: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -17,6 +18,7 @@
|
||||
commands:
|
||||
- show version
|
||||
- show interfaces
|
||||
authorize: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
ios_command:
|
||||
commands:
|
||||
- show version
|
||||
authorize: yes
|
||||
wait_for:
|
||||
- "result[0] contains bad_value_string"
|
||||
register: result
|
||||
|
||||
Reference in New Issue
Block a user