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