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