Check for fields that are of the wrong type. Fix bug in ip_interface() validator thanks to this unittest
This commit is contained in:
10
unittest/error-schema-field1.yaml
Normal file
10
unittest/error-schema-field1.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
test:
|
||||
description: "Interface description field mistyped"
|
||||
errors:
|
||||
expected:
|
||||
- "descr.*Unexpected element"
|
||||
count: 1
|
||||
---
|
||||
interfaces:
|
||||
GigabitEthernet1/0/0:
|
||||
descr: "some description"
|
Reference in New Issue
Block a user