Move the output around - first print the unexpected messages, only then fail the assertions

This commit is contained in:
Pim van Pelt
2022-03-21 10:23:49 +00:00
parent 58d0ebe71e
commit 551b06bb67
2 changed files with 6 additions and 28 deletions

View File

@ -1,22 +0,0 @@
test:
description: "The length of the generated child LCP name is too long"
errors:
expected:
- "sub-interface .* has LCP with too long name"
count: 1
---
interfaces:
GigabitEthernet1/0/0:
lcp: "e01234"
sub-interfaces:
100:
description: "Dot1Q subinterface"
encapsulation:
dot1q: 1234
101:
description: "QinQ subinterface"
addresses: [ 192.0.2.1/24 ]
encapsulation:
dot1q: 1234
inner-dot1q: 2345