CSIT-506: HC Test- Update and cleanup all suites
[csit.git] / tests / func / honeycomb / mgmt-cfg-spanrx-apihc-apivat-func.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 *** Variables ***
27 | ${interface1}= | ${node['interfaces']['port1']['name']}
28 | ${interface2}= | ${node['interfaces']['port3']['name']}
29 | ${interface3}= | local0
30
31 *** Test Cases ***
32 # TODO: Add verification once operational data is available (HONEYCOMB-306)
33 | TC01: Honeycomb can configure SPAN on an interface
34 | | [Documentation] | Honeycomb configures SPAN on interface and verifies/
35 | | ... | against VPP SPAN dump.
36 | | Given SPAN configuration from VAT should not exist
37 | | ... | ${node}
38 | | When Honeycomb Configures SPAN on interface
39 | | ... | ${node} | ${interface1} | ${interface2}
40 | | Then Interface SPAN configuration from VAT should be
41 | | ... | ${node} | ${interface1} | ${interface2}
42
43 | TC02: Honeycomb can disable SPAN on interface
44 | | [Documentation] | Honeycomb removes existing SPAN configuration\
45 | | ... | on interface and verifies against VPP SPAN dump.
46 | | Given Interface SPAN configuration from VAT should be
47 | | ... | ${node} | ${interface1} | ${interface2}
48 | | When Honeycomb removes interface SPAN configuration
49 | | ... | ${node} | ${interface1}
50 | | Then SPAN configuration from VAT should not exist
51 | | ... | ${node}
52
53 | TC03: Honeycomb can configure SPAN on one interface to mirror two interfaces
54 | | [Documentation] | Honeycomb configures SPAN on interface, mirroring\
55 | | ... | two interfaces at the same time. Then verifies against VPP SPAN dump.
56 | | [Teardown] | Honeycomb removes interface SPAN configuration
57 | | ... | ${node} | ${interface1}
58 | | Given SPAN configuration from VAT should not exist
59 | | ... | ${node}
60 | | When Honeycomb Configures SPAN on interface
61 | | ... | ${node} | ${interface1} | ${interface2} | ${interface3}
62 | | Then Interface SPAN configuration from VAT should be
63 | | ... | ${node} | ${interface1} | ${interface2} | ${interface3}