CSIT-405: Honeycomb test update and cleanup
[csit.git] / tests / func / honeycomb / 900_persistence.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 | 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 | | Given Honeycomb configures every setting | ${node} | ${interface}
31 | | And Honeycomb and VPP should verify every setting | ${node} | ${interface}
32 | | When Honeycomb and VPP are restarted | ${node}
33 | | Then Honeycomb and VPP should verify every setting | ${node} | ${interface}
34 | | And Honeycomb should show no rogue interfaces | ${node}
35
36 | Honeycomb persists configuration through restart of Honeycomb
37 | | [Documentation] | Checks if Honeycomb maintains configuration after it\
38 | | ... | is restarted.
39 | | Given Honeycomb and VPP should verify every setting | ${node} | ${interface}
40 | | When Honeycomb is restarted | ${node}
41 | | Then Honeycomb and VPP should verify every setting | ${node} | ${interface}
42 | | And Honeycomb should show no rogue interfaces | ${node}
43
44 | Honeycomb persists configuration through restart of VPP
45 | | [Documentation] | Checks if Honeycomb updates VPP settings after VPP is\
46 | | ... | restarted.
47 | | Given Honeycomb and VPP should verify every setting | ${node} | ${interface}
48 | | When VPP is restarted | ${node}
49 | | Then Honeycomb and VPP should verify every setting | ${node} | ${interface}
50 | | And Honeycomb should show no rogue interfaces | ${node}
51
52 | Honeycomb reverts to defaults if persistence files are invalid
53 | | [Documentation] | Checks if Honeycomb reverts to default configuration when\
54 | | ... | persistence files are damaged or invalid.
55 | | [Teardown] | Run keyword if test failed
56 | | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
57 | | Given Honeycomb and VPP should not have default configuration | ${node}
58 | | When Persistence file is damaged during restart | ${node}
59 | | Then Honeycomb and VPP should have default configuration | ${node}