Move unittest YAML files into their own directory, pending more python unit tests in a followup commit
This commit is contained in:
tests.py
unittest/yaml
correct-address.yamlcorrect-bondethernet.yamlcorrect-bridgedomain.yamlcorrect-empty.yamlcorrect-empty2.yamlcorrect-example1.yamlcorrect-l2xc.yamlcorrect-loopback.yamlcorrect-vxlan.yamlerror-address1.yamlerror-bondethernet1.yamlerror-bondethernet2.yamlerror-bondethernet3.yamlerror-bondethernet4.yamlerror-bridgedomain1.yamlerror-bridgedomain2.yamlerror-bridgedomain3.yamlerror-bridgedomain4.yamlerror-bridgedomain5.yamlerror-bridgedomain6.yamlerror-bridgedomain7.yamlerror-interface-mtu1.yamlerror-interface-mtu2.yamlerror-l2xc1.yamlerror-l2xc2.yamlerror-l2xc3.yamlerror-l2xc4.yamlerror-l2xc5.yamlerror-l2xc6.yamlerror-l2xc7.yamlerror-l2xc8.yamlerror-lcp-unique1.yamlerror-lcp-unique2.yamlerror-loopback1.yamlerror-schema-field1.yamlerror-schema-field2.yamlerror-subinterface1.yamlerror-subinterface2.yamlerror-subinterface3.yamlerror-subinterface4.yamlerror-subinterface5.yamlerror-subinterface6.yamlerror-subinterface7.yamlerror-subinterface8.yamlerror-vxlan1.yamlerror-vxlan2.yaml
20
unittest/yaml/error-bridgedomain2.yaml
Normal file
20
unittest/yaml/error-bridgedomain2.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
test:
|
||||
description: "Interfaces put into the bridge, can't be L3 (so cannot have an LCP)"
|
||||
errors:
|
||||
expected:
|
||||
- "bridgedomain .* member .* has an LCP"
|
||||
count: 3
|
||||
---
|
||||
interfaces:
|
||||
GigabitEthernet1/0/0:
|
||||
lcp: "e1-0-0"
|
||||
GigabitEthernet2/0/0:
|
||||
lcp: "e2-0-0"
|
||||
sub-interfaces:
|
||||
101:
|
||||
lcp: "v101"
|
||||
|
||||
bridgedomains:
|
||||
bd10:
|
||||
description: "Bridge Domain 10"
|
||||
interfaces: [ GigabitEthernet1/0/0, GigabitEthernet2/0/0, GigabitEthernet2/0/0.101 ]
|
Reference in New Issue
Block a user