48fe5ae08a86e6234da7bfb93bd3de726543dc2d
[csit.git] / tests / func / honeycomb / 120_port_mirroring.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 | Resource | resources/libraries/robot/default.robot
16 | Resource | resources/libraries/robot/honeycomb/port_mirroring.robot
17 | Resource | resources/libraries/robot/honeycomb/interfaces.robot
18 | Resource | resources/libraries/robot/honeycomb/honeycomb.robot
19 # Test suite out of date since https://gerrit.fd.io/r/4272
20 # | Force Tags | honeycomb_sanity
21 | Suite Setup | Add Interface local0 To Topology | ${node}
22 | Suite Teardown | Run Keyword If Any Tests Failed
23 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
24 | Documentation | *Honeycomb port mirroring test suite.*
25 | ...
26 | ... | Test suite uses the first interface of the first DUT node.
27
28 *** Variables ***
29 | ${interface1}= | ${node['interfaces']['port1']['name']}
30 | ${interface2}= | ${node['interfaces']['port3']['name']}
31 | ${interface3}= | local0
32
33 *** Test Cases ***
34 # TODO: Add verification once operational data is available (HONEYCOMB-306)
35 | Honeycomb can configure SPAN on an interface
36 | | [Documentation] | Honeycomb configures SPAN on interface and verifies/
37 | | ... | against VPP SPAN dump.
38 | | Given SPAN configuration from VAT should not exist
39 | | ... | ${node}
40 | | When Honeycomb Configures SPAN on interface
41 | | ... | ${node} | ${interface1} | ${interface2}
42 | | Then Interface SPAN configuration from VAT should be
43 | | ... | ${node} | ${interface1} | ${interface2}
44
45 | Honeycomb can disable SPAN on interface
46 | | [Documentation] | Honeycomb removes existing SPAN configuration\
47 | | ... | on interface and verifies against VPP SPAN dump.
48 | | Given Interface SPAN configuration from VAT should be
49 | | ... | ${node} | ${interface1} | ${interface2}
50 | | When Honeycomb removes interface SPAN configuration
51 | | ... | ${node} | ${interface1}
52 | | Then SPAN configuration from VAT should not exist
53 | | ... | ${node}
54
55 | Honeycomb can configure SPAN on one interface to mirror two interfaces
56 | | [Documentation] | Honeycomb configures SPAN on interface, mirroring\
57 | | ... | two interfaces at the same time. Then verifies against VPP SPAN dump.
58 | | [Teardown] | Honeycomb removes interface SPAN configuration
59 | | ... | ${node} | ${interface1}
60 | | Given SPAN configuration from VAT should not exist
61 | | ... | ${node}
62 | | When Honeycomb Configures SPAN on interface
63 | | ... | ${node} | ${interface1} | ${interface2} | ${interface3}
64 | | Then Interface SPAN configuration from VAT should be
65 | | ... | ${node} | ${interface1} | ${interface2} | ${interface3}