Bug 8138: Do not clean journal and snapshots
[integration/test.git] / csit / suites / controller / Clustering_Datastore / cluster_ready.robot
1 *** Settings ***
2 Documentation     This test waits until cluster appears to be ready.
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 ...               Intended use is at a start of testplan, so that suites can assume cluster works.
12 ...
13 ...               This suite expects car, people and car-people modules to have separate Shards.
14 Suite Setup       SetupUtils.Setup_Utils_For_Setup_And_Teardown
15 Test Setup        SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
16 Default Tags      clustering    carpeople    critical
17 Resource          ${CURDIR}/../../../libraries/ClusterManagement.robot
18 Resource          ${CURDIR}/../../../libraries/SetupUtils.robot
19
20 *** Variables ***
21 ${CLUSTER_BOOTUP_SYNC_TIMEOUT}    180s
22 @{SHARD_NAME_LIST}    car    people    car-people
23
24 *** Test Cases ***
25 Wait_For_Sync_And_Shards
26     [Documentation]    Repeatedly check for cluster sync status and Shard Leaders, fail when timeout is exceeded.
27     BuiltIn.Wait_Until_Keyword_Succeeds    ${CLUSTER_BOOTUP_SYNC_TIMEOUT}    10s    Check_Sync_And_Shards
28
29 *** Keywords ***
30 Check_Sync_And_Shards
31     ClusterManagement.Check_Cluster_Is_In_Sync
32     ClusterManagement.Verify_Leader_Exists_For_Each_Shard    shard_name_list=${SHARD_NAME_LIST}    shard_type=config