Move unittest YAML files into their own directory, pending more python unit tests in a followup commit

This commit is contained in:
Pim van Pelt
2022-03-20 16:59:13 +00:00
parent dbd7bca8f3
commit 2036795ef1
47 changed files with 1 additions and 1 deletions

View File

@ -0,0 +1,34 @@
test:
description: "A bunch of schema fields with the wrong type"
errors:
expected:
- "yamale: .* is not a "
- "yamale: .*: Unexpected element"
- "Length of .* is greater than 15"
count: 13
---
interfaces:
GigabitEthernet1/0/0:
description: 1234
lcp: True
mac: "0001.0203.0405"
addresses: [ 1234, "hello world", 192.0.2.1, 2001:db8::1 ]
sub-interfaces:
100:
description: [ "a", "list" ]
encapsulation:
dot1q: "hello world"
GigabitEthernet1/0/1:
mtu: 1500
lcp: "a234567890123456"
sub-interfaces:
"string":
description: "the sub-int key should be an int"
garbage:
description: "There's no 'garbage' scope"
loopback:
loop0:
description: "The toplevel scope is 'loopbacks' plural"