CSIT doc gen: remove "package" and change "module" to "suite"
[csit.git] / tests / 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/default.robot
20 | Resource | resources/libraries/robot/honeycomb/persistence.robot
21 | Suite Setup | Restart Honeycomb And VPP And Clear Persisted Configuration
22 | ... | ${node}
23 | Force Tags | honeycomb_sanity
24 | Documentation | *Honeycomb configuration persistence test suite.*
25
26 *** Test Cases ***
27 | TC01: Honeycomb persists configuration through restart of both Honeycomb and VPP
28 | | [Documentation] | Checks if Honeycomb maintains configuration after both\
29 | | ... | Honeycomb and VPP are restarted.
30 # Vxlan tunnel name is not properly restored (HONEYCOMB-301)
31 | | [Tags] | EXPECTED_FAILING
32 | | Given Honeycomb configures every setting | ${node} | ${interface}
33 | | And Honeycomb and VPP should verify every setting | ${node} | ${interface}
34 | | When Honeycomb and VPP are restarted | ${node}
35 | | Then Honeycomb and VPP should verify every setting | ${node} | ${interface}
36 | | And Honeycomb should show no rogue interfaces | ${node}
37
38 | TC02: Honeycomb persists configuration through restart of Honeycomb
39 | | [Documentation] | Checks if Honeycomb maintains configuration after it\
40 | | ... | is restarted.
41 # Vxlan tunnel name is not properly restored (HONEYCOMB-301)
42 | | [Tags] | EXPECTED_FAILING
43 | | Given Honeycomb and VPP should verify every setting | ${node} | ${interface}
44 | | When Honeycomb is restarted | ${node}
45 | | Then Honeycomb and VPP should verify every setting | ${node} | ${interface}
46 | | And Honeycomb should show no rogue interfaces | ${node}
47
48 | TC03: Honeycomb persists configuration through restart of VPP
49 | | [Documentation] | Checks if Honeycomb updates VPP settings after VPP is\
50 | | ... | restarted.
51 # Vxlan tunnel name is not properly restored (HONEYCOMB-301)
52 | | [Tags] | EXPECTED_FAILING
53 | | Given Honeycomb and VPP should verify every setting | ${node} | ${interface}
54 | | When VPP is restarted | ${node}
55 | | Then Honeycomb and VPP should verify every setting | ${node} | ${interface}
56 | | And Honeycomb should show no rogue interfaces | ${node}
57
58 | TC04: Honeycomb reverts to defaults if persistence files are invalid
59 | | [Documentation] | Checks if Honeycomb reverts to default configuration when\
60 | | ... | persistence files are damaged or invalid.
61 | | [Teardown] | Run keyword if test failed
62 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
63 | | Given Honeycomb and VPP should not have default configuration | ${node}
64 | | When Persistence file is damaged during restart | ${node}
65 | | Then Honeycomb and VPP should have default configuration | ${node}