1---
2
3  - name: Test sonic commands with wait_for negative case
4    sonic_command:
5       commands:
6         - 'show platform'
7         - 'show system'
8       wait_for:
9         - result[0] contains Fel
10    register: result
11    ignore_errors: yes
12
13  - assert:
14      that:
15        - "result.failed == True"
16        - "result.failed_conditions is defined"
17        - "result.msg is defined"
18
19  - name: Test sonic commands with wait_for and match=any
20    sonic_command:
21       commands:
22         - 'show platform'
23         - 'show system'
24       wait_for:
25         - result[0] contains Fel
26         - result[1] contains sonic
27       match: any
28    register: result
29
30  - assert:
31      that:
32        - "result.failed == False"
33        - "result.changed == False"
34