kavitha Alagesan | 373e055 | 2016-11-22 05:22:05 +0530 | [diff] [blame] | 1 | FUNCgroup test suite |
| 2 | |
| 3 | Summary: |
| 4 | |
| 5 | The purpose of this test suite is to test the Group Subsystem. |
| 6 | As part of this test, we are testing the functionality of the Group Subsystem. |
| 7 | Install a group of type ‘ALL’ whose bucket will have treatments of type ‘OUTPUT’ to port 2,3, and 4 respectively. |
| 8 | Install a flow which will have selector criteria IN_PORT as port 1 and Instructions as type ‘Group’ with the Group Id already created. |
| 9 | Verify when port 1 receives any packet, it should follow the actions which are mentioned in the Group and send the packet to port 2, 3 and 4. |
| 10 | |
| 11 | Topology: |
| 12 | The topology consists of one switch with four hosts connected to it. |
| 13 | |
| 14 | Required: |
| 15 | Ths test requires Mininet topology file topo-group.py located in the dependencies folder. |
| 16 | You will also need to install the Python module, Scapy. |
| 17 | |
| 18 | Test Description: |
| 19 | # CASE - Description |
| 20 | # 1 - Variable initialization and optional pull and build ONOS package |
| 21 | # 2 - install ONOS |
| 22 | # 3 - Start mininet and verify topology |
| 23 | # 4 - Testing Scapy |
| 24 | # 5 - Testing GROUP with type "ALL" |
| 25 | # 5.1 - Adds a Group with type ‘ALL’ and whose bucket will have treatments as type ‘OUTPUT’ |
| 26 | to port 2, 3, 4 respectively and verify if the Group was added correctly. |
| 27 | # 5.2 - Adds a flow with selector criteria as IN_PORT 1 and Instructions as type ‘Group’ |
| 28 | with GroupId already created and tests if the flow was added correctly. |
| 29 | # 5.3 - Sends a packet using SCAPY to port 1 of the device and check whether the |
| 30 | same packet was received at port 2, 3, and 4 of the device. |
| 31 | # 6 - Deleting the Group and Flow |
| 32 | # 7 - Testing GROUP with type "INDIRECT" |
| 33 | # 7.1 - Adds a Group with type ‘INDIRECT’ and whose bucket will have treatments |
| 34 | as type ‘OUTPUT’ to port 2 respectively and verify if the Group was added correctly |
| 35 | # 7.2 - Adds a flow with selector criteria as IN_PORT 1 and Instructions as type ‘Group’ |
| 36 | with GroupId already created and tests if the flow was added correctly. |
| 37 | # 7.3 - Sends a packet using SCAPY to port 1 of the device and check whether |
| 38 | the same packet was received at port 2 of the device. |
| 39 | # 8 - Deleting the group and flow |
| 40 | |
| 41 | |
| 42 | Scapy install: |
| 43 | sudo apt-get install Scapy |