CSIT-220: Rename directories in tests directory
[csit.git] / tests / func / honeycomb / 040_tap.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 *** Variables ***
15 # Interfaces to run tests on.
16 | ${interface}= | ${node['interfaces']['port1']['name']}
17 | ${tap_interface}= | tap_test
18 # Configuration which will be set and verified during tests.
19 | &{tap_settings}= | tap-name=tap_test | mac=08:00:27:c0:5d:37
20 | ... | device-instance=${1}
21 | &{tap_settings2}= | tap-name=tap_test | mac=08:00:27:60:26:ab
22 | ... | device-instance=${2}
23
24 *** Settings ***
25 | Resource | resources/libraries/robot/default.robot
26 | Resource | resources/libraries/robot/honeycomb/interfaces.robot
27 | Resource | resources/libraries/robot/honeycomb/tap.robot
28 | Force Tags | honeycomb_sanity
29 | Documentation | *Honeycomb TAP management test suite.*
30 | ...
31 | ... | Test suite uses the first interface of the first DUT node.
32
33 *** Test Cases ***
34 | Honeycomb configures TAP interface
35 | | [Documentation] | Check if Honeycomb API can configure a TAP interface.
36 | | Given TAP configuration from Honeycomb should be empty
37 | | ... | ${node} | ${tap_interface}
38 | | And TAP configuration from VAT should be empty
39 | | ... | ${node} | ${tap_interface}
40 | | When Honeycomb creates TAP interface
41 | | ... | ${node} | ${tap_interface} | ${tap_settings}
42 | | Then TAP configuration from Honeycomb should be
43 | | ... | ${node} | ${tap_interface} | ${tap_settings}
44 | | And TAP configuration from VAT should be
45 | | ... | ${node} | ${tap_interface} | ${tap_settings}
46
47 | Honeycomb modifies existing TAP interface configuration
48 | | [Documentation] | Check if Honeycomb API can re-configure and existing TAP\
49 | | ... | interface with new settings.
50 | | Given TAP configuration from Honeycomb should be
51 | | ... | ${node} | ${tap_interface} | ${tap_settings}
52 | | And TAP configuration from VAT should be
53 | | ... | ${node} | ${tap_interface} | ${tap_settings}
54 | | When Honeycomb configures TAP interface
55 | | ... | ${node} | ${tap_interface} | ${tap_settings2}
56 | | Then TAP configuration from Honeycomb should be
57 | | ... | ${node} | ${tap_interface} | ${tap_settings2}
58 | | And TAP configuration from VAT should be
59 | | ... | ${node} | ${tap_interface} | ${tap_settings2}
60
61 | Honeycomb removes TAP interface
62 | | [Documentation] | Check if Honeycomb API can remove TAP interface.
63 | | Given TAP configuration from Honeycomb should be
64 | | ... | ${node} | ${tap_interface} | ${tap_settings2}
65 | | And TAP configuration from VAT should be
66 | | ... | ${node} | ${tap_interface} | ${tap_settings2}
67 | | When Honeycomb removes TAP interface | ${node} | ${tap_interface}
68 | | Then TAP configuration from Honeycomb should be empty
69 | | ... | ${node} | ${tap_interface}
70 | | And TAP configuration from VAT should be empty
71 | | ... | ${node} | ${tap_interface}