Check for fields that are of the wrong type. Fix bug in ip_interface() validator thanks to this unittest

This commit is contained in:
Pim van Pelt
2022-03-13 20:20:14 +00:00
parent 0f03d6cbaa
commit 2ca7cc3f11
3 changed files with 20 additions and 0 deletions

View 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"