1d3ce02e051085ebe049d7a5d5a2d196b93667d1
[csit.git] / tests / vpp / func / honeycomb / mgmt-statepersist-apihc-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 *** Settings ***
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
24 | ...
25 | Suite Setup | Run Keywords
26 | ... | Configure Persistence | ${node} | enable | AND
27 | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
28 | ...
29 | Suite Teardown | Configure Persistence | ${node} | disable
30 | ...
31 | Force Tags | HC_PERSIST | HC_REST_ONLY
32 | ...
33 | Documentation | *Honeycomb configuration persistence test suite.*
34
35 *** Test Cases ***
36 # multi-feature cases
37 # ===================
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.
41 | | ...
42 # Failing due to HC2VPP-47
43 | | [Tags] | HC_FUNC | EXPECTED_FAILING
44 | | ...
45 | | [Teardown]
46 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
47 | | ...
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}
53
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.
57 | | ...
58 | | [Tags] | HC_FUNC
59 | | ...
60 | | [Teardown]
61 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
62 | | ...
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}
67
68 | TC03: Honeycomb persists configuration through restart of Honeycomb
69 | | [Documentation] | Checks if Honeycomb maintains configuration after it\
70 | | ... | is restarted.
71 | | ...
72 | | [Teardown]
73 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
74 | | ...
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}
80
81 | TC04: Honeycomb persists configuration through restart of VPP
82 | | [Documentation] | Checks if Honeycomb updates VPP settings after VPP is\
83 | | ... | restarted.
84 | | ...
85 | | [Teardown]
86 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
87 | | ...
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}
93
94 # single-feature cases
95 # ====================
96
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.
100 | | ...
101 | | [Teardown]
102 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
103 | | ...
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}
108
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.
112 | | ...
113 | | [Teardown]
114 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
115 | | ...
116 | | Given Interface Persistence Setup | ${node}
117 | | And Interface Persistence Check | ${node}
118 | | When Restart Honeycomb | ${node}
119 | | Then Interface Persistence Check | ${node}
120
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.
124 | | ...
125 | | [Teardown]
126 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
127 | | ...
128 | | Given Interface Persistence Setup | ${node}
129 | | And Interface Persistence Check | ${node}
130 | | When Restart VPP | ${node}
131 | | Then Interface Persistence Check | ${node}
132
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.
137 | | ...
138 | | [Teardown]
139 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
140 | | ...
141 | | Given Bridge Domain Persistence Setup | ${node}
142 | | When Restart Honeycomb and VPP in pesistence test | ${node}
143 | | Then Bridge Domain Persistence Check | ${node}
144
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.
149 | | ...
150 | | [Teardown]
151 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
152 | | ...
153 | | Given Bridge Domain Persistence Setup | ${node}
154 | | When Restart Honeycomb | ${node}
155 | | Then Bridge Domain Persistence Check | ${node}
156
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
160 | | ... | of VPP.
161 | | ...
162 | | [Teardown]
163 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
164 | | ...
165 | | Given Bridge Domain Persistence Setup | ${node}
166 | | When Restart VPP | ${node}
167 | | Then Bridge Domain Persistence Check | ${node}
168
169 #TODO: All other features