Add another schema validation test

This commit is contained in:
Pim van Pelt
2022-03-13 21:18:08 +00:00
parent 5c61259edd
commit 3f2b80172c

View File

@ -4,7 +4,7 @@ test:
expected:
- "yamale: .* is not a "
- "yamale: .*: Unexpected element"
count: 11
count: 12
---
interfaces:
GigabitEthernet1/0/0:
@ -17,6 +17,13 @@ interfaces:
description: [ "a", "list" ]
encapsulation:
dot1q: "hello world"
GigabitEthernet1/0/1:
mtu: 1500
sub-interfaces:
"string":
description: "the sub-int key should be an int"
garbage:
description: "There's no 'garbage' scope"