Rename Honeycomb test suites
[csit.git] / tests / suites / honeycomb / 031_vxlan_gpe.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 # Interface to run tests on.
16 | ${interface}= | ${node['interfaces']['port1']['name']}
17
18 # Parameters to be set on existing interface
19 | ${vxlan_gpe_existing_if}= | ${interface}
20 | &{vxlan_gpe_base_wrong_interface_settings}=
21 | ... | name=${vxlan_gpe_existing_if}
22 | ... | type=iana-if-type:ethernetCsmacd
23 | ... | description=for testing purposes
24 | ... | enabled=true
25 | ... | link-up-down-trap-enable=enabled
26 | &{vxlan_gpe_wrong_interface_settings}=
27 | ... | local=192.168.50.77
28 | ... | remote=192.168.50.72
29 | ... | vni=${9}
30 | ... | next-protocol=wrong_ipv4
31 | ... | encap-vrf-id=${0}
32 | ... | decap-vrf-id=${0}
33
34 *** Settings ***
35 | Resource | resources/libraries/robot/default.robot
36 | Resource | resources/libraries/robot/honeycomb/interfaces.robot
37 | Resource | resources/libraries/robot/honeycomb/vxlan_gpe.robot
38 # Import additional VxLAN GPE settings from resource file
39 | Variables | tests/suites/honeycomb/resources/vxlan_gpe.py
40 | Documentation | *Honeycomb VxLAN-GPE management test suite.*
41 | Force Tags | honeycomb_sanity
42
43 *** Test Cases ***
44 | Honeycomb creates VxLAN GPE tunnel
45 | | [Documentation] | Check if Honeycomb API can configure VxLAN GPE tunnel.
46 | | ...
47 | | Given interface configuration from Honeycomb should be empty
48 | | ... | ${node} | ${vxlan_gpe_if1}
49 | | And interface configuration from VAT should be empty
50 | | ... | ${node} | ${vxlan_gpe_if1}
51 | | When Honeycomb creates VxLAN GPE interface
52 | | ... | ${node} | ${vxlan_gpe_if1}
53 | | ... | ${vxlan_gpe_base_settings} | ${vxlan_gpe_settings}
54 | | Then run keyword and continue on failure
55 | | ... | VxLAN GPE configuration from Honeycomb should be
56 | | ... | ${node} | ${vxlan_gpe_if1}
57 | | ... | ${vxlan_gpe_base_settings} | ${vxlan_gpe_settings}
58 | | And run keyword and continue on failure
59 | | ... | VxLAN GPE configuration from VAT should be
60 | | ... | ${node} | ${vxlan_gpe_if1} | ${vxlan_gpe_settings}
61 | | And run keyword and continue on failure
62 | | ... | VxLAN GPE Interface indices from Honeycomb and VAT should correspond
63 | | ... | ${node} | ${vxlan_gpe_if1}
64
65 | Honeycomb removes VxLAN GPE tunnel
66 | | [Documentation] | Check if Honeycomb API can remove VxLAN GPE tunnel.
67 | | ...
68 # Disabled beacuse of bug in Honeycomb.
69 # TODO: Enable when fixed.
70 #| | Given VxLAN GPE configuration from Honeycomb should be
71 #| | ... | ${node} | ${vxlan_gpe_if1}
72 #| | ... | ${vxlan_gpe_base_settings} | ${vxlan_gpe_settings}
73 #| | And VxLAN GPE configuration from VAT should be
74 #| | ... | ${node} | ${vxlan_gpe_if1} | ${vxlan_gpe_settings}
75 | | When Honeycomb removes VxLAN GPE interface
76 | | ... | ${node} | ${vxlan_gpe_if1}
77 | | Then VxLAN GPE configuration from VAT should be empty
78 | | ... | ${node}
79 | | And VxLAN GPE configuration from Honeycomb should be
80 | | ... | ${node} | ${vxlan_gpe_if1}
81 | | ... | ${vxlan_gpe_disabled_base_settings} | ${vxlan_gpe_settings}
82
83 | Honeycomb sets wrong interface type while creating VxLAN GPE tunnel
84 | | [Documentation] | Check if Honeycomb refuses to create a VxLAN GPE tunnel\
85 | | ... | with a wrong interface type set.
86 | | ...
87 | | Given interface configuration from Honeycomb should be empty
88 | | ... | ${node} | ${vxlan_gpe_if2}
89 | | And interface configuration from VAT should be empty
90 | | ... | ${node} | ${vxlan_gpe_if2}
91 | | When Honeycomb fails to create VxLAN GPE interface
92 | | ... | ${node} | ${vxlan_gpe_if2}
93 | | ... | ${vxlan_gpe_wrong_type_base_settings} | ${vxlan_gpe_settings}
94 | | Then interface configuration from Honeycomb should be empty
95 | | ... | ${node} | ${vxlan_gpe_if2}
96 | | And interface configuration from VAT should be empty
97 | | ... | ${node} | ${vxlan_gpe_if2}
98
99 | Honeycomb sets wrong protocol while creating VxLAN GPE tunnel
100 | | [Documentation] | Check if Honeycomb refuses to create a VxLAN GPE tunnel\
101 | | ... | with a wrong next-protocol set.
102 | | ...
103 | | Given interface configuration from Honeycomb should be empty
104 | | ... | ${node} | ${vxlan_gpe_if3}
105 | | And interface configuration from VAT should be empty
106 | | ... | ${node} | ${vxlan_gpe_if3}
107 | | When Honeycomb fails to create VxLAN GPE interface
108 | | ... | ${node} | ${vxlan_gpe_if3}
109 | | ... | ${vxlan_gpe_wrong_protocol_base_settings}
110 | | ... | ${vxlan_gpe_wrong_protocol_settings}
111 | | Then interface configuration from Honeycomb should be empty
112 | | ... | ${node} | ${vxlan_gpe_if3}
113 | | And interface configuration from VAT should be empty
114 | | ... | ${node} | ${vxlan_gpe_if3}
115
116 | Honeycomb sets VxLAN GPE tunnel on existing interface with wrong type
117 | | [Documentation] | Check if Honeycomb refuses to create a VxLAN GPE tunnel\
118 | | ... | on existing interface with wrong type.
119 | | ...
120 | | Given VxLAN GPE configuration from VAT should be empty
121 | | ... | ${node}
122 | | When Honeycomb fails to create VxLAN GPE interface
123 | | ... | ${node} | ${vxlan_gpe_existing_if}
124 | | ... | ${vxlan_gpe_base_wrong_interface_settings}
125 | | ... | ${vxlan_gpe_wrong_interface_settings}
126 | | Then VxLAN GPE configuration from VAT should be empty
127 | | ... | ${node}
128
129 | Honeycomb creates VxLAN GPE tunnel with ipv6
130 | | [Documentation] | Check if Honeycomb API can configure VxLAN GPE tunnel\
131 | | ... | with IPv6 addresses.
132 | | ...
133 | | Given VxLAN GPE configuration from VAT should be empty
134 | | ... | ${node}
135 # Disabled beacuse of bug in Honeycomb
136 # TODO: Enable when fixed.
137 #| | And VxLAN GPE configuration from Honeycomb should be
138 #| | ... | ${node} | ${vxlan_gpe_if5}
139 #| | ... | ${vxlan_gpe_disabled_base_settings} | ${vxlan_gpe_settings}
140 | | When Honeycomb creates VxLAN GPE interface
141 | | ... | ${node} | ${vxlan_gpe_if5}
142 | | ... | ${vxlan_gpe_base_ipv6_settings} | ${vxlan_gpe_ipv6_settings}
143 | | Then run keyword and continue on failure
144 | | ... | VxLAN GPE configuration from Honeycomb should be
145 | | ... | ${node} | ${vxlan_gpe_if5}
146 | | ... | ${vxlan_gpe_base_ipv6_settings} | ${vxlan_gpe_ipv6_settings}
147 | | And run keyword and continue on failure
148 | | ... | VxLAN GPE configuration from VAT should be
149 | | ... | ${node} | ${vxlan_gpe_if5} | ${vxlan_gpe_ipv6_settings}
150 | | And run keyword and continue on failure
151 | | ... | VxLAN GPE Interface indices from Honeycomb and VAT should correspond
152 | | ... | ${node} | ${vxlan_gpe_if5}
153
154 | Honeycomb creates the second VxLAN GPE tunnel with ipv6
155 | | [Documentation] | Check if Honeycomb API can configure another one VxLAN\
156 | | ... | GPE tunnel with IPv6 addresses.
157 | | ...
158 | | Given interface configuration from Honeycomb should be empty
159 | | ... | ${node} | ${vxlan_gpe_if6}
160 | | And interface configuration from VAT should be empty
161 | | ... | ${node} | ${vxlan_gpe_if6}
162 | | When Honeycomb creates VxLAN GPE interface
163 | | ... | ${node} | ${vxlan_gpe_if6}
164 | | ... | ${vxlan_gpe_base_ipv6_settings2} | ${vxlan_gpe_ipv6_settings2}
165 | | Then run keyword and continue on failure
166 | | ... | VxLAN GPE configuration from Honeycomb should be
167 | | ... | ${node} | ${vxlan_gpe_if6}
168 | | ... | ${vxlan_gpe_base_ipv6_settings2} | ${vxlan_gpe_ipv6_settings2}
169 | | And run keyword and continue on failure
170 | | ... | VxLAN GPE configuration from VAT should be
171 | | ... | ${node} | ${vxlan_gpe_if6} | ${vxlan_gpe_ipv6_settings2}
172 | | And run keyword and continue on failure
173 | | ... | VxLAN GPE Interface indices from Honeycomb and VAT should correspond
174 | | ... | ${node} | ${vxlan_gpe_if6}