5c04d5ec819ef2b1c3521f665362ff7ab4211c9e
[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 | Library | resources/libraries/python/VatExecutor.py
17 | Library | resources/libraries/python/TrafficGenerator.py
18 | Force Tags | topo-3node
19 | Test Setup | Setup all DUTs before test
20
21 *** Test Cases ***
22 | VPP passes traffic through L2 cross connect
23 | | Given L2 xconnect initialized in topology
24 | | Then Traffic should pass with no loss | 10 | 10 | 512
25
26 *** Keywords ***
27 | L2 xconnect initialized in topology
28 | | Setup L2 xconnect | ${nodes['DUT1']} | port1 | port2
29 | | Setup L2 xconnect | ${nodes['DUT2']} | port1 | port2
30
31
32 | Setup L2 xconnect | [Arguments] | ${node} | ${src_port} | ${dst_port}
33 | | Execute script | l2xconnect.vat | ${node}
34 | | Script should have passed
35
36
37 | Traffic should pass with no loss
38 | | [Arguments] | ${duration} | ${rate} | ${framesize}
39 | | Send traffic on | ${nodes['TG']} | port1 | port2 | ${duration}
40 | | ...             | ${rate} | ${framesize}
41 | | No traffic loss occured