-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new generated specification files
- Loading branch information
1 parent
29031be
commit 12b6146
Showing
120 changed files
with
2,093 additions
and
2,023 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
- name: usb | ||
case: usb/test.py | ||
|
||
- name: usb two ports | ||
- name: usb_two_ports | ||
case: usb_two_ports/test.py |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
usb.adoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
=== USB configuration | ||
==== Description | ||
This test checks if the configuration is consistent with hardware state, | ||
and verifies whether the USB ports are correctly _locked_ (restricted from | ||
use) and _unlocked_ (available for use) when they should. It also verifies | ||
this behavior during reboot. This test does not involve the actual use of | ||
the USB port; it only ensures the configured state is consistent with the | ||
hardware state. | ||
|
||
If this pass you can be certain that the configuration of the USB | ||
port is handled correctly. | ||
|
||
==== Topology | ||
ifdef::topdoc[] | ||
image::../../test/case/ietf_hardware/usb/topology.svg[USB configuration topology] | ||
endif::topdoc[] | ||
ifndef::topdoc[] | ||
ifdef::testgroup[] | ||
image::usb/topology.svg[USB configuration topology] | ||
endif::testgroup[] | ||
ifndef::testgroup[] | ||
image::topology.svg[USB configuration topology] | ||
endif::testgroup[] | ||
endif::topdoc[] | ||
==== Test sequence | ||
. Set up topology and attach to target DUT | ||
. Unlock all USB ports | ||
. Verify that all USB ports are unlocked | ||
. Lock all USB ports | ||
. Verify that all USB ports are locked | ||
. Remove all hardware configuration | ||
. Verify that all USB ports are locked | ||
. Unlock USB ports | ||
. Verify that all USB ports are unlocked | ||
. Save the configuration to startup configuration and reboot | ||
. Verify USB port remain unlocked after reboot | ||
|
||
|
||
<<< | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
usb_two_ports.adoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
=== USB configuration with two USB ports | ||
==== Description | ||
Test that the USB locked/unlocked configuration is consistent | ||
when having two USB ports. | ||
|
||
==== Topology | ||
ifdef::topdoc[] | ||
image::../../test/case/ietf_hardware/usb_two_ports/topology.svg[USB configuration with two USB ports topology] | ||
endif::topdoc[] | ||
ifndef::topdoc[] | ||
ifdef::testgroup[] | ||
image::usb_two_ports/topology.svg[USB configuration with two USB ports topology] | ||
endif::testgroup[] | ||
ifndef::testgroup[] | ||
image::topology.svg[USB configuration with two USB ports topology] | ||
endif::testgroup[] | ||
endif::topdoc[] | ||
==== Test sequence | ||
. Set up topology and attach to target DUTs | ||
. Lock the first USB port and unlock the second USB port | ||
. Verify that the correct port is locked and the correct one is unlocked | ||
. Unlock the first USB port, and lock the second USB port | ||
. Verify that the correct port is locked and the correct one is unlocked | ||
|
||
|
||
<<< | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bridge_basic.adoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
=== Bridge basic | ||
==== Description | ||
Test basic connectivity to a bridge | ||
|
||
.... | ||
PING --> br0 (10.0.0.2) | ||
/ | ||
PC -------- target:data | ||
.... | ||
|
||
==== Topology | ||
ifdef::topdoc[] | ||
image::../../test/case/ietf_interfaces/bridge_basic/topology.svg[Bridge basic topology] | ||
endif::topdoc[] | ||
ifndef::topdoc[] | ||
ifdef::testgroup[] | ||
image::bridge_basic/topology.svg[Bridge basic topology] | ||
endif::testgroup[] | ||
ifndef::testgroup[] | ||
image::topology.svg[Bridge basic topology] | ||
endif::testgroup[] | ||
endif::topdoc[] | ||
==== Test sequence | ||
. Set up topology and attach to target DUT | ||
. Configure single bridge with a single physical port, bridge @ IP 10.0.0.2 | ||
. Verify ping 10.0.0.2 is possible from host:data | ||
|
||
|
||
<<< | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bridge_fwd_dual_dut.adoc |
44 changes: 44 additions & 0 deletions
44
test/case/ietf_interfaces/bridge_fwd_dual_dut/bridge_fwd_dual_dut.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
=== Bridge forwarding dual DUTs | ||
==== Description | ||
Ping through two bridges on two different DUTs. | ||
|
||
.... | ||
.-------------------------. .-------------------------. | ||
| [ DUT1 ] link | | link [ DUT2 ] | | ||
| br0 -----|-------|----- br0 | | ||
| / | | / \ | | ||
| mgmt data1 | | data1 data2 mgmt | | ||
'-------------------------' '-------------------------' | ||
| | | | | | ||
| | | | | | ||
.---------------------------------------------------------------. | ||
| mgmt1 data11 data21 data22 mgmt2 | | ||
| [10.0.0.2] [10.0.0.3] [10.0.0.4] | | ||
| (ns11) (ns20) (ns21) | | ||
| | | ||
| [ HOST ] | | ||
'---------------------------------------------------------------' | ||
.... | ||
|
||
==== Topology | ||
ifdef::topdoc[] | ||
image::../../test/case/ietf_interfaces/bridge_fwd_dual_dut/topology.svg[Bridge forwarding dual DUTs topology] | ||
endif::topdoc[] | ||
ifndef::topdoc[] | ||
ifdef::testgroup[] | ||
image::bridge_fwd_dual_dut/topology.svg[Bridge forwarding dual DUTs topology] | ||
endif::testgroup[] | ||
ifndef::testgroup[] | ||
image::topology.svg[Bridge forwarding dual DUTs topology] | ||
endif::testgroup[] | ||
endif::topdoc[] | ||
==== Test sequence | ||
. Set up topology and attach to target DUT | ||
. Configure a bridge with triple physical port | ||
. Verify ping 10.0.0.3 and 10.0.0.4 from host:data11 | ||
|
||
|
||
<<< | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bridge_fwd_sgl_dut.adoc |
Oops, something went wrong.