Update Robot Framework format - step 5
[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
15 Resource            ${CURDIR}/../../../libraries/ClusterManagement.robot
16 Resource            ${CURDIR}/../../../libraries/SetupUtils.robot
17
18 Suite Setup         SetupUtils.Setup_Utils_For_Setup_And_Teardown
19 Test Setup          SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
20
21 Default Tags        clustering    carpeople    critical
22
23
24 *** Variables ***
25 ${CLUSTER_BOOTUP_SYNC_TIMEOUT}      180s
26 @{SHARD_NAME_LIST}                  car    people    car-people
27
28
29 *** Test Cases ***
30 Wait_For_Sync_And_Shards
31     [Documentation]    Repeatedly check for cluster sync status and Shard Leaders, fail when timeout is exceeded.
32     BuiltIn.Wait_Until_Keyword_Succeeds    ${CLUSTER_BOOTUP_SYNC_TIMEOUT}    10s    Check_Sync_And_Shards
33
34
35 *** Keywords ***
36 Check_Sync_And_Shards
37     ClusterManagement.Check_Cluster_Is_In_Sync
38     ClusterManagement.Verify_Leader_Exists_For_Each_Shard    shard_name_list=${SHARD_NAME_LIST}    shard_type=config