1---
2
3
4 - name: Test sonic command with prompt handling
5 sonic_command:
6 commands:
7 - command: 'image remove all'
8 prompt: '\[y/N\]:$'
9 answer: 'N'
10 register: result
11
12 - assert:
13 that:
14 - "result.changed == false"
15 - "result.stdout is defined"
16