CSIT-128: Remove EXPECTED_FAILING tag from VXLAN over IPv6 test cases
[csit.git] / sample_tests / sample_suite.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
14 *** Settings ***
15 | Library | resources.libraries.python.NodePath
16 | Library | resources.libraries.python.Trace
17 | Library | resources.libraries.python.TrafficScriptExecutor
18 | Library | resources.libraries.python.MacSwap
19 | Library | resources.libraries.python.SetupFramework
20 | Resource | resources/libraries/robot/default.robot
21 | Resource | resources/libraries/robot/interfaces.robot
22 | Resource | resources/libraries/robot/counters.robot
23 | Suite Setup | Run Keywords | Setup Framework | ${nodes}
24 | ...         | AND          | Setup All DUTs | ${nodes}
25 | ...         | AND          | Setup all TGs before traffic script
26 | ...         | AND          | Update All Interface Data On All Nodes | ${nodes}
27 | ...         | AND          | Setup nodes for macswap testing
28 | Test Setup | Clear interface counters on all vpp nodes in topology | ${nodes}
29 | Test Teardown | Show Packet Trace on All DUTs | ${nodes}
30 | Documentation | *MacSwap test suite.*
31 | ...
32 | ... | Test suite uses 3-node topology TG - DUT1 - DUT2 - TG with single link
33 | ... | between nodes. From this topology only TG and DUT1 nodes are used.
34 | ... | Test packet is sent from single interface on TG and test wait for
35 | ... | response on the same TG interface.
36
37 *** Keywords ***
38 | Setup nodes for macswap testing
39 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']}
40 | | Compute Path
41 | | ${tg_port} | ${tg_node}= | First Interface
42 | | ${dut_port} | ${dut_node}= | Last Interface
43 | | Set Suite Variable | ${tg_port}
44 | | Set Suite Variable | ${tg_node}
45 | | Set Suite Variable | ${dut_port}
46 | | Set Suite Variable | ${dut_node}
47 | | Set Interface State | ${tg_node} | ${tg_port} | up
48 | | Set Interface State | ${dut_node} | ${dut_port} | up
49 | | All Vpp Interfaces Ready Wait | ${nodes}
50
51 | Send and verify macswap on node "${tg_node}" interface "${tg_port}"
52 | | ${src_ip}= | Set Variable | 1.1.1.1
53 | | ${dst_ip}= | Set Variable | 2.2.2.2
54 | | ${src_mac}= | Set Variable | 01:00:00:00:00:01
55 | | ${dst_mac}= | Set Variable | 01:00:00:00:00:02
56 | | ${args}= | Traffic Script Gen Arg | ${tg_port} | ${tg_port} | ${src_mac}
57 | |          | ...                    | ${dst_mac} | ${src_ip} | ${dst_ip}
58 | | Run Traffic Script On Node | macswap_check.py | ${tg_node} | ${args}
59
60 *** Test Cases ***
61 | VPP macswap plugin swaps MAC addresses
62 | | [Tags] | 3_NODE_SINGLE_LINK_TOPO | VM_ENV
63 | | Enable Disable macswap vat exec | ${dut_node} | ${dut_port}
64 | | Send and verify macswap on node "${tg_node}" interface "${tg_port}"