37200d023fdef06a5971555f3dc64121eade81f0
[csit.git] / tests / suites / honeycomb / interface_management.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 | ${node}= | ${nodes['DUT1']}
16 | ${interface}= | ${node['interfaces'].values()[0]['name']}
17
18 *** Settings ***
19 | Resource | resources/libraries/robot/default.robot
20 | Resource | resources/libraries/robot/honeycomb/honeycomb.robot
21 | Resource | resources/libraries/robot/honeycomb/interfaces.robot
22 | Suite Setup | Run keywords | Setup all DUTs before test | AND
23 | ... | Setup Honeycomb service on DUTs | ${node}
24 | Suite Teardown | Stop Honeycomb service on DUTs | ${node}
25 | Documentation | *Honeycomb interface management test suite.*
26 | ...
27 | ... | Test suite uses the first interface of the first DUT node.
28
29 *** Test Cases ***
30 | Honeycomb modifies interface state
31 | | [Documentation] | Check if Honeycomb API can modify the admin state of
32 | | ... | VPP interfaces.
33 | | [Tags] | honeycomb_sanity
34 | | Given Interface state is | ${node} | ${interface} | down
35 | | When Honeycomb sets interface state | ${node} | ${interface} | up
36 | | Then Interface state from Honeycomb should be
37 | | ... | ${node} | ${interface} | up
38 | | And Interface state from VAT should be | ${node} | ${interface} | up
39 | | When Honeycomb sets interface state | ${node} | ${interface} | down
40 | | Then Interface state from Honeycomb should be
41 | | ... | ${node} | ${interface} | down
42 | | And Interface state from VAT should be | ${node} | ${interface} | down