...
This section lists unit test cases that verify basic functionality, i.e. adding, deleting and showing UDSP rules. These test tests focus on UDSP API and don't generate any traffic. The tests are structured as follows:
- Configuration
- Dump UDSP rules and verify result (optional)
- Add or Delete UDSP (command line or YAML)
- Dump UDSP rules and verify result
- Go to 3 (optional).
- Clean up.
Expected Behavior
Basic UT
Primary Requirement ID | Secondary Requirement ID | Unit Test ID | Unit Test Description |
---|
|
|
| - Setup: configure single network, 3 NIDs on the network
- Execute UDSP "Show" command
- Verify that the resulting YAML file doesn't contain any policy description
|
|
|
| - Setup: configure single network, 3 NIDs on the network
- Add UDSP rule that gives two of the interfaces highest priority
- Execute UDSP "Show" command
- Verify that the resulting YAML file contains policy description as expected
|
|
|
| - Setup: configure single network, 3 NIDs on the network
- Add UDSP rule that gives two of the interfaces highest priority
- Execute UDSP "Show" command
- Verify that the resulting YAML file contains policy description as expected
- Add UDSP rule that lowers the priority of one of the NIDs with highest priority back to default
- Execute UDSP "Show" command
- Verify that the resulting YAML file contains policy description as expected
|
|
|
| - Setup: configure two networks, two NIDs on each network
- Add UDSP rule that gives one of the networks highest priority
- Add UDSP rule that gives the highest priority to one of the NIDs on the network with the highest priority
- Execute UDSP "Show" command
- Verify that the resulting YAML file contains policy description as expected (for network and NID)
- Delete UDSP rule that gives the highest priority to one of the NIDs
- Execute UDSP "Show" command
- Verify that the resulting YAML file contains policy description as expected (for network)
- Delete UDSP rule that gives the highest priority to one of the networks
- Execute UDSP "Show" command
- Verify that the resulting YAML file doesn't contain any policy description
|
|
|
| - Setup: configure single network, 3 NIDs on the network locally, 3 NIDs on the remote peer
- Add UDSP rule that gives priority to one of the remote peer's NIDs
- Execute UDSP "Show" command
- Verify that the resulting YAML file contains policy description as expected
- Delete UDSP rule that gives the highest priority to the remote peer's NID
- Execute UDSP "Show" command
- Verify that the resulting YAML file doesn't contain any policy description
|
|
|
| - Setup: configure single network, 3 NIDs on the network locally, 3 NIDs on the local peer
- Add UDSP rule that gives priority to a pair of the local NID and peer's NID
- Execute UDSP "Show" command
- Verify that the resulting YAML file contains policy description as expected
- Delete UDSP rule that gives the highest priority to the NID pair
- Execute UDSP "Show" command
- Verify that the resulting YAML file doesn't contain any policy description
|
|
|
| - Configure single local network with two NIDs on the network
- Configure two routers/gateways each providing access to a remote network
- Configure remote peer to have access to the remote network with two NIDs
- Add UDSP rule that designates a pair of a router and remote peer NID as preferred
- Execute UDSP "Show" command
- Verify that the resulting YAML file contains policy description as expected
- Delete UDSP rule that gives the highest priority to the router/remote NID pair
- Execute UDSP "Show" command
- Verify that the resulting YAML file doesn't contain any policy description
|
|
|
| - Configure single local network with two NIDs on the network
- Configure two routers/gateways each providing access to a remote network
- Configure remote peer to have access to the remote network with two NIDs
- Add UDSP rule that designates a pair of a router and local network as preferred
- Execute UDSP "Show" command
- Verify that the resulting YAML file contains policy description as expected
- Delete UDSP rule that gives the highest priority to the router/local network pair
- Execute UDSP "Show" command
- Verify that the resulting YAML file doesn't contain any policy description
|
Single Network Configuration
...
Expected Behavior
In-Range UT
Primary Requirement ID | Secondary Requirement ID | Unit Test ID | Unit Test Description |
---|
|
|
| |
a - single local network with two NIDs on the network
- Configure two routers/gateways each providing access to a remote network
- Configure remote peer to have access to the remote
|
networks - network with two NIDs
- Add UDSP rule that designates a pair of a router and remote peer NIDs as preferred
- Add UDSP rule that gives the same remote peer NID highest priority
- Start traffic
- Stop traffic
- Verify that the preferred remote peer NID and router NID were used
|
|
|
| - Configure single local network with two NIDs on the network
- Configure two routers/gateways each providing access to a remote network
- Configure remote peer to have access to the remote network with two NIDs
- Add UDSP rule that designates a pair of a router and local network as preferred
- Start traffic
- Stop traffic
- Verify that the preferred router was used
|
|
|
| - Configure two local networks (net1, net2) with two NIDs on each network
- Configure two routers/gateways per local network
- Configure remote peer to have access to the remote network with two NIDs
- Add UDSP rule that designates a pair of a router and local network (net1) as preferred
- Start traffic
- Stop traffic
- Verify that if net1 was used then the paired router was used
|
Out-of-Range UT
Primary Requirement ID | Secondary Requirement ID | Unit Test ID | Unit Test Description |
---|
|
|
|
|
|
|
|
|
Error UT
Primary Requirement ID | Secondary Requirement ID | Unit Test ID | Unit Test Description |
---|
|
|
|
|
|
|
|
|
Functional Requirements
Performance Requirements
...