Rework of controller car/people cluster suite
[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       ClusterManagement.ClusterManagement_Setup
15 Default Tags      clustering    carpeople    critical
16 Resource          ${CURDIR}/../../../libraries/ClusterManagement.robot
17
18 *** Variables ***
19 ${CLUSTER_BOOTUP_SYNC_TIMEOUT}    180s
20 @{SHARD_NAME_LIST}    car    people    car-people
21
22 *** Test Cases ***
23 Wait_For_Sync_And_Shards
24     [Documentation]    Repeatedly check for cluster sync status and Shard Leaders, fail when timeout is exceeded.
25     BuiltIn.Wait_Until_Keyword_Succeeds    ${CLUSTER_BOOTUP_SYNC_TIMEOUT}    10s    Check_Sync_And_Shards
26
27 *** Keywords ***
28 Check_Sync_And_Shards
29     ClusterManagement.Check_Cluster_Is_In_Sync
30     ClusterManagement.Verify_Leader_Exists_For_Each_Shard    shard_name_list=${SHARD_NAME_LIST}    shard_type=config