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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 # Interface to run tests on.
16 | ${interface}= | ${node['interfaces']['port1']['name']}
19 | Resource | resources/libraries/robot/shared/default.robot
20 | Resource | resources/libraries/robot/honeycomb/persistence.robot
21 | Resource | resources/libraries/robot/honeycomb/interfaces.robot
22 | Resource | resources/libraries/robot/honeycomb/bridge_domain.robot
23 | Resource | resources/libraries/robot/honeycomb/l2_fib.robot
25 | Suite Setup | Run Keywords
26 | ... | Configure Persistence | ${node} | enable | AND
27 | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
29 | Suite Teardown | Configure Persistence | ${node} | disable
31 | Force Tags | HC_PERSIST | HC_REST_ONLY
33 | Documentation | *Honeycomb configuration persistence test suite.*
38 | TC01: Honeycomb persists configuration through restart of both Honeycomb and VPP
39 | | [Documentation] | Checks if Honeycomb maintains configuration after both\
40 | | ... | Restart Honeycomb and VPP.
42 # Failing due to HC2VPP-47
43 | | [Tags] | HC_FUNC | EXPECTED_FAILING
46 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
48 | | Given Multi-Feature Persistence test configuration | ${node} | ${interface}
49 | | And Multi-Feature persistence Test Verification | ${node} | ${interface}
50 | | And Log persisted configuration on node | ${node}
51 | | When Restart Honeycomb and VPP in pesistence test | ${node}
52 | | Then Multi-Feature persistence Test Verification | ${node} | ${interface}
54 | TC02: Honeycomb reverts to defaults if persistence files are invalid
55 | | [Documentation] | Checks if Honeycomb reverts to default configuration when\
56 | | ... | persistence files are damaged or invalid.
61 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
63 | | Given Multi-Feature Persistence test configuration | ${node} | ${interface}
64 | | And Multi-Feature persistence Test Verification | ${node} | ${interface}
65 | | When Persistence file is damaged during restart | ${node}
66 | | Then Honeycomb and VPP should have default configuration | ${node}
68 | TC03: Honeycomb persists configuration through restart of Honeycomb
69 | | [Documentation] | Checks if Honeycomb maintains configuration after it\
70 | | ... | is restarted.
73 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
75 | | Given Multi-Feature Persistence test configuration | ${node} | ${interface}
76 | | And Multi-Feature persistence Test Verification | ${node} | ${interface}
77 | | And Log persisted configuration on node | ${node}
78 | | When Restart Honeycomb | ${node}
79 | | Then Multi-Feature persistence Test Verification | ${node} | ${interface}
81 | TC04: Honeycomb persists configuration through restart of VPP
82 | | [Documentation] | Checks if Honeycomb updates VPP settings after VPP is\
86 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
88 | | Given Multi-Feature Persistence test configuration | ${node} | ${interface}
89 | | And Multi-Feature persistence Test Verification | ${node} | ${interface}
90 | | And Log persisted configuration on node | ${node}
91 | | When Restart VPP | ${node}
92 | | Then Multi-Feature persistence Test Verification | ${node} | ${interface}
94 # single-feature cases
95 # ====================
97 | TC05: Persist configuration of IP addresses and neighbors - HC and VPP restart
98 | | [Documentation] | Verify persistence of interface state, IPv4 address
99 | | ... | and neighbor entries through restart of both Honeycomb and VPP.
102 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
104 | | Given Interface Persistence Setup | ${node}
105 | | And Interface Persistence Check | ${node}
106 | | When Restart Honeycomb and VPP in pesistence test | ${node}
107 | | Then Interface Persistence Check | ${node}
109 | TC06: Persist configuration of IP addresses and neighbors - HC restart
110 | | [Documentation] | Verify persistence of interface state, IPv4 address
111 | | ... | and neighbor entries through restart of Honeycomb.
114 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
116 | | Given Interface Persistence Setup | ${node}
117 | | And Interface Persistence Check | ${node}
118 | | When Restart Honeycomb | ${node}
119 | | Then Interface Persistence Check | ${node}
121 | TC07: Persist configuration of IP addresses and neighbors - VPP restart
122 | | [Documentation] | Verify persistence of interface state, IPv4 address
123 | | ... | and neighbor entries through restart of VPP.
126 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
128 | | Given Interface Persistence Setup | ${node}
129 | | And Interface Persistence Check | ${node}
130 | | When Restart VPP | ${node}
131 | | Then Interface Persistence Check | ${node}
133 | TC08: Honeycomb persists configuration of bridge domains - HC and VPP restart
134 | | [Documentation] | Verify persistence of bridge domain, L2-FIB entry
135 | | ... | and Bridge domain Operational Interface Assignment through restart
136 | | ... | of both Honeycomb and VPP.
139 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
141 | | Given Bridge Domain Persistence Setup | ${node}
142 | | When Restart Honeycomb and VPP in pesistence test | ${node}
143 | | Then Bridge Domain Persistence Check | ${node}
145 | TC09: Honeycomb persists configuration of bridge domains - HC restart
146 | | [Documentation] | Verify persistence of bridge domain, L2-FIB entry
147 | | ... | and Bridge domain Operational Interface Assignment through restart
148 | | ... | of Honeycomb.
151 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
153 | | Given Bridge Domain Persistence Setup | ${node}
154 | | When Restart Honeycomb | ${node}
155 | | Then Bridge Domain Persistence Check | ${node}
157 | TC10: Honeycomb persists configuration of bridge domains - VPP restart
158 | | [Documentation] | Verify persistence of bridge domain, L2-FIB entry
159 | | ... | and Bridge domain Operational Interface Assignment through restart
163 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
165 | | Given Bridge Domain Persistence Setup | ${node}
166 | | When Restart VPP | ${node}
167 | | Then Bridge Domain Persistence Check | ${node}
169 #TODO: All other features