8b75888275ef3c052cf0222657d2e77850cea538
[csit.git] / tests / suites / honeycomb / 2 - bridge_domain.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 | @{interfaces}= | ${node['interfaces'].values()[0]['name']}
17 | ... | ${node['interfaces'].values()[1]['name']}
18 | ${bd1_name}= | bd-01
19 | ${bd2_name}= | bd-02
20 | &{bd_settings}= | flood=${True} | forward=${True} | learn=${True}
21 | ... | unknown-unicast-flood=${True} | arp-termination=${True}
22 | &{if_settings}= | split_horizon_group=${1} | bvi=${True}
23
24 *** Settings ***
25 | Resource | resources/libraries/robot/default.robot
26 | Resource | resources/libraries/robot/honeycomb/honeycomb.robot
27 | Resource | resources/libraries/robot/honeycomb/interfaces.robot
28 | Resource | resources/libraries/robot/honeycomb/bridge_domain.robot
29 | Suite Teardown | Stop Honeycomb service on DUTs | ${node}
30 | Documentation | *Honeycomb bridge domain management test suite.*
31 | ...
32 | ... | Test suite uses the first two interfaces on the first DUT node.
33
34 *** Test Cases ***
35 | Honeycomb sets up l2 bridge domain
36 | | [Documentation] | Check if Honeycomb can create bridge domains on VPP node.
37 | | [Tags] | honeycomb_sanity
38 | | When Honeycomb creates first l2 bridge domain
39 | | ... | ${node} | ${bd1_name} | ${bd_settings}
40 | | Then Bridge domain configuration from Honeycomb should be
41 | | ... | ${node} | ${bd1_name} | ${bd_settings}
42 | | And Bridge domain configuration from VAT should be
43 | | ... | ${node} | ${0} | ${bd_settings}
44
45 | Honeycomb assigns interfaces to bridge domain
46 | | [Documentation] | Check if Honeycomb can assign VPP interfaces to an\
47 | | ... | existing bridge domain.
48 | | [Tags] | honeycomb_sanity
49 | | Given Bridge domain configuration from Honeycomb should be
50 | | ... | ${node} | ${bd1_name} | ${bd_settings}
51 | | When Honeycomb adds interfaces to bridge domain
52 | | ... | ${node} | @{interfaces} | ${bd1_name} | ${if_settings}
53 | | Then Honeycomb should show interfaces assigned to bridge domain
54 | | ... | ${node} | @{interfaces} | ${bd1_name} | ${if_settings}
55 | | And VAT should show interfaces assigned to bridge domain
56 | | ... | ${node} | ${0} | @{interfaces} | ${if_settings}
57
58 | Honeycomb manages multiple bridge domains on node
59 | | [Documentation] | Check if Honeycomb can manage multiple bridge domains on\
60 | | ... | a single node.
61 | | [Tags] | honeycomb_sanity
62 | | Given Bridge domain configuration from Honeycomb should be
63 | | ... | ${node} | ${bd1_name} | ${bd_settings}
64 | | When Honeycomb creates l2 bridge domain
65 | | ... | ${node} | ${bd2_name} | ${bd_settings}
66 | | Then Bridge domain configuration from Honeycomb should be
67 | | ... | ${node} | ${bd1_name} | ${bd_settings}
68 | | And Bridge domain configuration from Honeycomb should be
69 | | ... | ${node} | ${bd2_name} | ${bd_settings}
70 | | And Bridge domain configuration from VAT should be
71 | | ... | ${node} | ${0} | ${bd_settings}
72 | | And Bridge domain configuration from VAT should be
73 | | ... | ${node} | ${1} | ${bd_settings}
74
75 | Honeycomb removes bridge domains
76 | | [Documentation] | Check if Honeycomb can remove bridge domains from a VPP\
77 | | ... | node.
78 | | [Tags] | honeycomb_sanity
79 | | Given Bridge domain configuration from Honeycomb should be
80 | | ... | ${node} | ${bd1_name} | ${bd_settings}
81 | | When Honeycomb removes all bridge domains | ${node}
82 | | Then Honeycomb should show no bridge domains | ${node}
83 | | And VAT should show no bridge domains | ${node}