Add another schema validation test
This commit is contained in:
@ -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"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user