This is an archive of the ONOS 1.5 wiki. For the current ONOS wiki, look here.

Test suite for the Network Configuration subsystem

Purpose

The purpose of this test suite is to verify the functionality of the Network Configuration Subsystem. We will test the ability to add and distribute configurations across nodes as well as how other subsystems use these configurations.

Test Overview

In this test, we use the REST api to add/modify/delete and view network configurations in ONOS. We sill use an ONOS cluster and verify that each node has access to the same configurations, regardless of wether that node was responsible for storing the configuration. In addition, we will test how other subsystems make use of these configurations.

 

 

Test Cases #DescriptionPass/Fail CriteriaImplementation Status
1Set up test parameterspass: If params are setProduction
2Set cell and build, uninstall, and install ONOSpass: If sets cell correctly and builds, uninstalls, and installs ONOS correctlyProduction
8Compare MN topology and ONOS topologypass: If ONOS topology is the same as the Mininet topologyProduction
10Setup Mininet (start mn, assign mastership to switches, and compares topology)pass: If Mininet, switch assignment and topology comparison all passProduction
20

Add some device configurations for undiscovered devices and then check they are distributed to all nodes

pass: If the given NetCfgs are added and distributed to all ONOS nodesProduction
21

Check that devices appear or don't appear in the Network Graph according to the initial NetCfgs

pass: If the allowed devices appear in the network graph and the disallowed devices don'tProduction
22

Add some device configurations for discovered devices and then check they are distributed to all nodes

pass: If the given NetCfgs are added and distributed to all ONOS nodesProduction
23

Check that only disallowed devices disappear from the Network Graph according to the additional NetCfgs

pass: If only the diallowed devices disappear from the network graphProduction
24

Remove Network Configurations using different methods. I.E. delete a device, delete multiple devices, delete all configs

pass: If the deleted NetCfgs are deleted from all nodesProduction
  • No labels