Improve test tag string parsing
[csit.git] / tests / honeycomb / func / mgmt-cfg-vxlangpe-apihc-apivat-func.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/shared/default.robot
36 | Resource | resources/libraries/robot/honeycomb/honeycomb.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 | resources/test_data/honeycomb/vxlan_gpe.py
41 | ...
42 | Documentation | *Honeycomb VxLAN-GPE management test suite.*
43 | ...
44 | Suite Setup | Set Up Honeycomb Functional Test Suite | ${node}
45 | ...
46 | Suite Teardown | Tear Down Honeycomb Functional Test Suite | ${node}
47
48 *** Test Cases ***
49 | TC01: Honeycomb creates VxLAN GPE tunnel
50 | | [Documentation] | Check if Honeycomb API can configure a VxLAN GPE tunnel.
51 | | ...
52 | | [Tags] | HC_FUNC
53 | | Given interface Operational Data From Honeycomb Should Be empty
54 | | ... | ${node} | ${vxlan_gpe_if1}
55 | | And interface Operational Data From VAT Should Be empty
56 | | ... | ${node} | ${vxlan_gpe_if1}
57 | | When Honeycomb creates VxLAN GPE interface
58 | | ... | ${node} | ${vxlan_gpe_if1}
59 | | ... | ${vxlan_gpe_base_settings} | ${vxlan_gpe_settings}
60 | | Then VxLAN GPE Operational Data From Honeycomb Should Be
61 | | ... | ${node} | ${vxlan_gpe_if1}
62 | | ... | ${vxlan_gpe_base_settings} | ${vxlan_gpe_settings}
63 | | And VxLAN GPE Operational Data From VAT Should Be
64 | | ... | ${node} | ${vxlan_gpe_if1} | ${vxlan_gpe_settings}
65 | | And VxLAN GPE Interface indices from Honeycomb and VAT should correspond
66 | | ... | ${node} | ${vxlan_gpe_if1}
67
68 | TC02: Honeycomb removes VxLAN GPE tunnel
69 | | [Documentation] | Check if Honeycomb API can remove VxLAN GPE tunnel.
70 | | ...
71 | | [Tags] | HC_FUNC
72 | | Given VxLAN GPE Operational Data From Honeycomb Should Be
73 | | ... | ${node} | ${vxlan_gpe_if1}
74 | | ... | ${vxlan_gpe_base_settings} | ${vxlan_gpe_settings}
75 | | VxLAN GPE Operational Data From VAT Should Be
76 | | ... | ${node} | ${vxlan_gpe_if1} | ${vxlan_gpe_settings}
77 | | When Honeycomb removes VxLAN GPE interface
78 | | ... | ${node} | ${vxlan_gpe_if1}
79 | | Then VxLAN GPE Operational Data From Honeycomb Should Be empty
80 | | ... | ${node} | ${vxlan_gpe_if1}
81 | | And VxLAN GPE Operational Data From VAT Should Be empty
82 | | ... | ${node}
83
84 | TC03: 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 | | [Tags] | HC_FUNC
89 | | Given interface Operational Data From Honeycomb Should Be empty
90 | | ... | ${node} | ${vxlan_gpe_if2}
91 | | And interface Operational Data From VAT Should Be empty
92 | | ... | ${node} | ${vxlan_gpe_if2}
93 | | When Honeycomb fails to create VxLAN GPE interface
94 | | ... | ${node} | ${vxlan_gpe_if2}
95 | | ... | ${vxlan_gpe_wrong_type_base_settings} | ${vxlan_gpe_settings}
96 | | Then interface Operational Data From Honeycomb Should Be empty
97 | | ... | ${node} | ${vxlan_gpe_if2}
98 | | And interface Operational Data From VAT Should Be empty
99 | | ... | ${node} | ${vxlan_gpe_if2}
100
101 | TC04: Honeycomb sets wrong protocol while creating VxLAN GPE tunnel
102 | | [Documentation] | Check if Honeycomb refuses to create a VxLAN GPE tunnel\
103 | | ... | with a wrong next-protocol set.
104 | | ...
105 | | [Tags] | HC_FUNC
106 | | Given interface Operational Data From Honeycomb Should Be empty
107 | | ... | ${node} | ${vxlan_gpe_if3}
108 | | And interface Operational Data From VAT Should Be empty
109 | | ... | ${node} | ${vxlan_gpe_if3}
110 | | When Honeycomb fails to create VxLAN GPE interface
111 | | ... | ${node} | ${vxlan_gpe_if3}
112 | | ... | ${vxlan_gpe_wrong_protocol_base_settings}
113 | | ... | ${vxlan_gpe_wrong_protocol_settings}
114 | | Then interface Operational Data From Honeycomb Should Be empty
115 | | ... | ${node} | ${vxlan_gpe_if3}
116 | | And interface Operational Data From VAT Should Be empty
117 | | ... | ${node} | ${vxlan_gpe_if3}
118
119 | TC05: Honeycomb sets VxLAN GPE tunnel on existing interface with wrong type
120 | | [Documentation] | Check if Honeycomb refuses to create a VxLAN GPE tunnel\
121 | | ... | on existing interface with wrong type.
122 | | ...
123 | | [Tags] | HC_FUNC
124 | | Given VxLAN GPE Operational Data From VAT Should Be empty
125 | | ... | ${node}
126 | | When Honeycomb fails to create VxLAN GPE interface
127 | | ... | ${node} | ${vxlan_gpe_existing_if}
128 | | ... | ${vxlan_gpe_base_wrong_interface_settings}
129 | | ... | ${vxlan_gpe_wrong_interface_settings}
130 | | Then VxLAN GPE Operational Data From VAT Should Be empty
131 | | ... | ${node}
132
133 | TC06: Honeycomb creates VxLAN GPE tunnel with ipv6
134 | | [Documentation] | Check if Honeycomb API can configure a VxLAN GPE tunnel\
135 | | ... | with IPv6 addresses.
136 | | ...
137 | | [Tags] | HC_FUNC
138 | | Given VxLAN GPE Operational Data From VAT Should Be empty
139 | | ... | ${node}
140 | | And VxLAN GPE Operational Data From Honeycomb Should Be empty
141 | | ... | ${node} | ${vxlan_gpe_if5}
142 | | When Honeycomb creates VxLAN GPE interface
143 | | ... | ${node} | ${vxlan_gpe_if5}
144 | | ... | ${vxlan_gpe_base_ipv6_settings} | ${vxlan_gpe_ipv6_settings}
145 | | Then VxLAN GPE Operational Data 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 Operational Data From VAT Should Be
150 | | ... | ${node} | ${vxlan_gpe_if5} | ${vxlan_gpe_ipv6_settings}
151 | | And VxLAN GPE Interface indices from Honeycomb and VAT should correspond
152 | | ... | ${node} | ${vxlan_gpe_if5}
153
154 | TC07: Honeycomb creates a second VxLAN GPE tunnel with ipv6
155 | | [Documentation] | Check if Honeycomb API can configure another VxLAN\
156 | | ... | GPE tunnel with IPv6 addresses.
157 | | ...
158 | | [Tags] | HC_FUNC
159 | | Given interface Operational Data From Honeycomb Should Be empty
160 | | ... | ${node} | ${vxlan_gpe_if6}
161 | | And interface Operational Data 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 VxLAN GPE Operational Data From Honeycomb Should Be
167 | | ... | ${node} | ${vxlan_gpe_if6}
168 | | ... | ${vxlan_gpe_base_ipv6_settings2} | ${vxlan_gpe_ipv6_settings2}
169 | | And VxLAN GPE Operational Data From VAT Should Be
170 | | ... | ${node} | ${vxlan_gpe_if6} | ${vxlan_gpe_ipv6_settings2}
171 | | And VxLAN GPE Interface indices from Honeycomb and VAT should correspond
172 | | ... | ${node} | ${vxlan_gpe_if6}