Migrate pcepuser.robot
[integration/test.git] / csit / suites / test / cluster_reset.robot
1 *** Settings ***
2 Documentation       Kill nodes, delete all data created since boot, start nodes, wait for sync.
3 ...
4 ...                 Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
5 ...
6 ...                 This program and the accompanying materials are made available under the
7 ...                 terms of the Eclipse Public License v1.0 which accompanies this distribution,
8 ...                 and is available at http://www.eclipse.org/legal/epl-v10.html
9 ...
10 ...
11 ...                 This suite is useful for undoing feature installation, Leader movement
12 ...                 and for recovering from bably broken state.
13 ...                 The intent is to provide speed compared to isolated job runs.
14 ...
15 ...                 FIXME: Import improvements from suites manipulating tell-based protocol setting.
16
17 Library             DateTime
18 Library             SSHLibrary
19 Resource            ${CURDIR}/../../libraries/ClusterManagement.robot
20
21 Suite Setup         ClusterManagement.ClusterManagement_Setup
22
23 Default Tags        clustering    critical
24
25
26 *** Test Cases ***
27 Kill_All_And_Get_Logs
28     [Documentation]    Kill every node, download karaf logs.
29     ClusterManagement.Kill_Members_From_List_Or_All
30     ClusterManagement.Safe_With_Ssh_To_List_Or_All_Run_Keyword
31     ...    member_index_list=${EMPTY}
32     ...    keyword_name=Download_Karaf_Log
33
34 Clean_Start_All_And_Sync
35     [Documentation]    Remove various data folders, including ${KARAF_HOME}/data/ on every node.
36     ...    Start each memberand wait for sync.
37     ClusterManagement.Clean_Directories_On_List_Or_All
38     ClusterManagement.Start_Members_From_List_Or_All
39     BuiltIn.Comment    Basic synch performed, but waits for specific functionality may still be needed.
40
41
42 *** Keywords ***
43 Download_Karaf_Log
44     ${timestamp} =    DateTime.Get_Current_Date    time_zone=UTC    result_format=%Y%m%d%H%M%S%f
45     SSHLibrary.Get_File    ${WORKSPACE}${/}${BUNDLEFOLDER}${/}data${/}log${/}karaf.log    karaf_${timestamp}.log