CSIT-181: Remove fds tests from vpp-csit-verify and csit-vpp-verify jobs
[csit.git] / tests / suites / honeycomb / 7 - 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 # Node and interface to run tests on.
16 | ${node}= | ${nodes['DUT1']}
17 | ${interface}= | ${node['interfaces']['port1']['name']}
18
19 *** Settings ***
20 | Resource | resources/libraries/robot/default.robot
21 | Resource | resources/libraries/robot/honeycomb/persistence.robot
22 | Suite Setup | Restart Honeycomb and VPP and clear persisted configuration
23 | ... | ${node}
24 | Force Tags | honeycomb_persistence
25 | Documentation | *Honeycomb configuration persistence test suite.*
26
27 *** Test Cases ***
28 | Honeycomb persists configuration through restart of both Honeycomb and VPP
29 | | [Documentation] | Checks if Honeycomb maintains configuration after both\
30 | | ... | Honeycomb and VPP are restarted.
31 | | Given Honeycomb configures every setting | ${node} | ${interface}
32 | | And Honeycomb and VPP should verify every setting | ${node} | ${interface}
33 | | When Honeycomb and VPP are restarted | ${node}
34 | | Then Honeycomb and VPP should verify every setting | ${node} | ${interface}
35 | | And Honeycomb should show no rogue interfaces | ${node}
36
37 | Honeycomb persists configuration through restart of Honeycomb
38 | | [Documentation] | Checks if Honeycomb maintains configuration after it\
39 | | ... | is restarted.
40 | | Given Honeycomb and VPP should verify every setting | ${node} | ${interface}
41 | | When Honeycomb is restarted | ${node}
42 | | Then Honeycomb and VPP should verify every setting | ${node} | ${interface}
43 | | And Honeycomb should show no rogue interfaces | ${node}
44
45 | Honeycomb persists configuration through restart of VPP
46 | | [Documentation] | Checks if Honeycomb updates VPP settings after VPP is\
47 | | ... | restarted.
48 | | Given Honeycomb and VPP should verify every setting | ${node} | ${interface}
49 | | When VPP is restarted | ${node}
50 | | Then Honeycomb and VPP should verify every setting | ${node} | ${interface}
51 | | And Honeycomb should show no rogue interfaces | ${node}
52
53 | Honeycomb reverts to defaults if persistence files are invalid
54 | | [Documentation] | Checks if Honeycomb reverts to default configuration when\
55 | | ... | persistence files are damaged or invalid.
56 | | [Teardown] | Run keyword if test failed
57 | | ... | Restart both systems and clear persisted configuration | ${node}
58 | | Given Honeycomb and VPP should not have default configuration | ${node}
59 | | When Persistence file is damaged during restart | ${node}
60 | | Then Honeycomb and VPP should have default configuration | ${node}
61
62 *** Keywords ***
63 | Restart Honeycomb and VPP and clear persisted configuration
64 | | [Documentation] | Restarts Honeycomb and VPP with default configuration.
65 | | ...
66 | | ... | *Arguments:*
67 | | ... | - node - information about a DUT node. Type: dictionary
68 | | ...
69 | | ... | *Example:*
70 | | ...
71 | | ... | Restart both systems and clear persisted configuration \
72 | | ... | \| ${nodes['DUT1']} \|
73 | | [Arguments] | ${node}
74 | | Stop Honeycomb service on DUTs | ${node}
75 | | Clear persisted Honeycomb configuration | ${node}
76 | | Setup DUT | ${node}
77 | | Setup Honeycomb service on DUTs | ${node}