Last bulk update of CSIT.
[csit.git] / tests / suites / performance / short.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/ipv4.robot
18 | Library | resources/libraries/python/TrafficGenerator.py
19 | Library | resources/libraries/python/CrossConnectSetup.py
20 | Force Tags | topo-3node
21 | Test Setup | Setup all DUTs before test
22 | Suite Setup | Initialize traffic generator | ${nodes['TG']}
23 | ... | ${nodes['TG']['interfaces']['port3']['pci_address']}
24 | ... | ${nodes['TG']['interfaces']['port5']['pci_address']}
25 | Suite Teardown | Teardown traffic generator | ${nodes['TG']}
26
27 *** Test Cases ***
28 | VPP passes 64B frames through L2 cross connect at 30% of linerate in 3-node-topology
29 | | Given L2 xconnect initialized in a 3-node topology
30 | | Then Traffic should pass with no loss | 10 | 30 | 64 | 3-node-xconnect
31
32 | VPP passes 1518B frames through L2 cross connect at 100% of linerate in 3-node-topology
33 | | Given L2 xconnect initialized in a 3-node topology
34 | | Then Traffic should pass with no loss | 10 | 100 | 1518 | 3-node-xconnect
35
36 | VPP passes 9000B frames through L2 cross connect at 100% of linerate in 3-node-topology
37 | | Given L2 xconnect initialized in a 3-node topology
38 | | Then Traffic should pass with no loss | 10 | 100 | 9000 | 3-node-xconnect
39
40 | VPP passes 64B frames through bridge domain at 30% in 3-node topology
41 | | Given L2 bridge domain initialized in a 3-node topology
42 | | Then Traffic should pass with no loss | 10 | 30 | 64 | 3-node-bridge
43
44 | VPP passes 1518B frames through bridge domain at 100% in 3-node topology
45 | | Given L2 bridge domain initialized in a 3-node topology
46 | | Then Traffic should pass with no loss | 10 | 100 | 1518 | 3-node-bridge
47
48 | VPP passes 9000B frames through bridge domain at 100% in 3-node topology
49 | | Given L2 bridge domain initialized in a 3-node topology
50 | | Then Traffic should pass with no loss | 10 | 100 | 9000 | 3-node-bridge
51
52 #| VPP passes 64B frames through IPv4 forwarding at 30% in 3-node topology
53 #| | Given IPv4 forwarding initialized in a 3-node topology
54 #| | Then Traffic should pass with no loss | 10 | 30 | 64 | 3-node-IPv4
55
56 #| VPP passes 1518B frames through IPv4 forwarding at 100% in 3-node topology
57 #| | Given IPv4 forwarding initialized in a 3-node topology
58 #| | Then Traffic should pass with no loss | 10 | 100 | 1518 | 3-node-IPv4
59
60 #| VPP passes 9000B frames through IPv4 forwarding at 100% in 3-node topology
61 #| | Given IPv4 forwarding initialized in a 3-node topology
62 #| | Then Traffic should pass with no loss | 10 | 100 | 9000 | 3-node-IPv4
63
64
65 *** Keywords ***
66
67
68 | L2 xconnect initialized in a 3-node topology
69 | | Interfaces on DUT are in "up" state
70 | | L2 setup xconnect on DUTs
71
72 | L2 setup xconnect on DUTs
73 | | Vpp Setup Bidirectional Cross Connect | ${nodes['DUT1']}
74 | | ... | ${nodes['DUT1']['interfaces']['port1']['name']}
75 | | ... | ${nodes['DUT1']['interfaces']['port3']['name']}
76 | | Vpp Setup Bidirectional Cross Connect | ${nodes['DUT2']}
77 | | ... | ${nodes['DUT2']['interfaces']['port1']['name']}
78 | | ... | ${nodes['DUT2']['interfaces']['port3']['name']}
79
80 | L2 bridge domain initialized in a 3-node topology
81 | | ${tg}= | Set Variable | ${nodes['TG']}
82 | | ${dut1}= | Set Variable | ${nodes['DUT1']}
83 | | ${dut2}= | Set Variable | ${nodes['DUT2']}
84 | | ${tg_links}= | bridge_domain.Setup TG "${tg}" DUT1 "${dut1}" And DUT2 "${dut2}" For 3 Node L2 Bridge Domain Test
85
86 | IPv4 forwarding initialized in a 3-node topology
87 | | Setup DUT nodes for IPv4 testing
88
89 | Interfaces on DUT are in "${state}" state
90 | | Node "${nodes['DUT1']}" interface "${nodes['DUT1']['interfaces']['port1']['name']}" is in "${state}" state
91 | | Node "${nodes['DUT1']}" interface "${nodes['DUT1']['interfaces']['port3']['name']}" is in "${state}" state
92 | | Node "${nodes['DUT2']}" interface "${nodes['DUT2']['interfaces']['port1']['name']}" is in "${state}" state
93 | | Node "${nodes['DUT2']}" interface "${nodes['DUT2']['interfaces']['port3']['name']}" is in "${state}" state
94
95 | Traffic should pass with no loss
96 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
97 | | Send traffic on | ${nodes} | ${duration}
98 | | ...             | ${rate} | ${framesize} | ${topology_type}
99 | | No traffic loss occured