2 Documentation Test suite for verifying basic variations of export API including checking statuses
3 Suite Setup ClusterManagement Setup
4 Suite Teardown Delete All Sessions
5 Library OperatingSystem
7 Resource ../../libraries/DaeximKeywords.robot
10 Create and Cancel Export
11 [Documentation] schedule and cancel export of a cluster
13 DaeximKeywords.Verify Export Status ${EXPORT_INITIAL_STATUS} ${FIRST_CONTROLLER_INDEX}
14 DaeximKeywords.Schedule Export ${FIRST_CONTROLLER_INDEX}
15 DaeximKeywords.Verify Export Status ${EXPORT_SCHEDULED_STATUS} ${FIRST_CONTROLLER_INDEX}
16 DaeximKeywords.Cancel Export ${FIRST_CONTROLLER_INDEX}
17 DaeximKeywords.Verify Export Status ${EXPORT_INITIAL_STATUS} ${FIRST_CONTROLLER_INDEX}
19 Schedule Absolute Time Export With UTC
20 [Documentation] Schedule export at a particular time
21 [Tags] absolute time export
22 ${time} DateTime.Get Current Date UTC 00:00:10 %Y-%m-%dT%H:%M:%SZ ${FALSE}
23 DaeximKeywords.Schedule Export ${FIRST_CONTROLLER_INDEX} ${time}
24 BuiltIn.Wait Until Keyword Succeeds 20 sec 5 sec DaeximKeywords.Verify Scheduled Export Timestamp ${FIRST_CONTROLLER_INDEX} ${time}
25 Builtin.Wait Until Keyword Succeeds 20 sec 5 sec DaeximKeywords.Verify Export Status ${EXPORT_COMPLETE_STATUS} ${FIRST_CONTROLLER_INDEX}
26 DaeximKeywords.Verify Export Files ${FIRST_CONTROLLER_INDEX}
28 Schedule Absolute Time Export With Localtime
29 [Documentation] Schedule export at a particular time
30 [Tags] absolute time export
31 ${time} DateTime.Get Current Date local 00:00:10 %Y-%m-%dT%H:%M:%S+000 ${FALSE}
32 Builtin.Run Keyword And Expect Error * Schedule Export ${FIRST_CONTROLLER_INDEX} ${time}
34 Schedule Absolute Time Export In Past
35 [Documentation] Schedule export at a particular time
36 [Tags] absolute time export
37 ${time} DateTime.Get Current Date UTC -00:00:10 %Y-%m-%dT%H:%M:%SZ ${FALSE}
38 Builtin.Run Keyword And Expect Error * Schedule Export ${FIRST_CONTROLLER_INDEX} ${time}
40 Create Module Exclude Export
41 [Documentation] schedule export with exclude option on a cluster
43 ${file1} DaeximKeywords.Schedule Exclude Export ${FIRST_CONTROLLER_INDEX} config network-topology
44 ${lines1} OperatingSystem.Grep File ${file1} network-topology:
45 Builtin.Should Be Empty ${lines1}
46 ${file2} DaeximKeywords.Schedule Exclude Export ${FIRST_CONTROLLER_INDEX} operational opendaylight-inventory
47 ${lines2} OperatingSystem.Grep File ${file2} opendaylight-inventory:
48 Builtin.Should Be Empty ${lines2}
50 Create Wildcard Exclude Export
51 [Documentation] schedule export with wildstar exclude option
52 [Tags] wildcard exclude export
53 ${file1} DaeximKeywords.Schedule Exclude Export ${FIRST_CONTROLLER_INDEX} config *
54 ${lines1} Operating System.Get File ${file1}
55 Builtin.Should Be Equal ${lines1} {}
56 ${file2} Schedule Exclude Export ${FIRST_CONTROLLER_INDEX} operational *
57 ${lines2} Operating System.Get File ${file2}
58 Builtin.Should Be Equal ${lines2} {}