DropRateSearch library
[csit.git] / tests / suites / performance / short_bridge_domain.robot
1 # Copyright (c) 2016 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13 *** Settings ***
14 | Resource | resources/libraries/robot/default.robot
15 | Resource | resources/libraries/robot/interfaces.robot
16 | Resource | resources/libraries/robot/bridge_domain.robot
17 | Resource | resources/libraries/robot/performance.robot
18 | Resource | resources/libraries/robot/counters.robot
19 | Library | resources.libraries.python.TrafficGenerator
20 | Library | resources.libraries.python.NodePath
21 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_SHORT
22 | Suite Setup | 3-node Performance Suite Setup
23 | Suite Teardown | 3-node Performance Suite Teardown
24 | Test Setup | Setup all DUTs before test
25 | Test Teardown  | Run Keyword If Test Failed | Show statistics on all DUTs
26
27 *** Test Cases ***
28 | 1core VPP passes 64B frames through bridge domain at 3.5mpps in 3-node topology
29 | | Given L2 bridge domain initialized in a 3-node circular topology
30 | | Then Traffic should pass with no loss | 10 | 3.5mpps | 64 | 3-node-bridge
31
32 | 1core VPP passes 1518B frames through bridge domain at 10gbps in 3-node topology
33 | | Given L2 bridge domain initialized in a 3-node circular topology
34 | | Then Traffic should pass with no loss | 10 | 10gbps | 1518 | 3-node-bridge
35
36 | 1core VPP passes 9000B frames through bridge domain at 10gbps in 3-node topology
37 | | Given L2 bridge domain initialized in a 3-node circular topology
38 | | Then Traffic should pass with no loss | 10 | 10gbps | 9000 | 3-node-bridge
39
40 *** Keywords ***
41
42 | 3-node Performance Suite Setup
43 | | 3-node circular Topology Variables Setup
44 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
45 | | ...                          | ${dut1} | ${dut1_if1} | ${dut1_if2}
46 | | ...                          | ${dut2} | ${dut2_if1} | ${dut2_if2}
47 | | ...                          | L2
48
49 | 3-node Performance Suite Teardown
50 | | Teardown traffic generator | ${tg}
51
52 | L2 bridge domain initialized in a 3-node circular topology
53 | | Vpp l2bd forwarding setup | ${dut1} | ${dut1_if1} | ${dut1_if2}
54 | | Vpp l2bd forwarding setup | ${dut2} | ${dut2_if1} | ${dut2_if2}
55 | | All Vpp Interfaces Ready Wait | ${nodes}
56
57 | Traffic should pass with no loss
58 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
59 | | Send traffic on | ${tg} | ${duration}
60 | | ...             | ${rate} | ${framesize} | ${topology_type}
61 | | No traffic loss occured
62
63 | Show statistics on all DUTs
64 | | Sleep | 10 | Waiting for statistics to be collected
65 | | Vpp show stats | ${dut1}
66 | | Vpp show stats | ${dut2}