Add prefix based shard dom-data-broker suites
[integration/test.git] / csit / suites / controller / dom_data_broker / remote_listener_prefbasedshard.robot
1 *** Settings ***
2 Documentation     DOMDataBroker testing: Remote Listener
3 ...
4 ...               Copyright (c) 2017 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 ...               The goal is to ensure listeners do no observe disruption when the leader moves.
11 ...               This is performed by having a steady stream of transactions being observed by
12 ...               the listeners and having the leader move.
13 Suite Setup       BuiltIn.Run_Keywords    SetupUtils.Setup_Utils_For_Setup_And_Teardown
14 ...               AND    DdbCommons.Create_Prefix_Based_Shard
15 Suite Teardown    BuiltIn.Run_Keywords    DdbCommons.Remove_Prefix_Based_Shard
16 ...               AND    SSHLibrary.Close_All_Connections
17 Test Setup        SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
18 Test Teardown     SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
19 Default Tags      critical
20 Test Template     DdbCommons.Remote_Listener_PrefBasedShard_Test_Templ
21 Library           SSHLibrary
22 Resource          ${CURDIR}/../../../libraries/controller/DdbCommons.robot
23 Resource          ${CURDIR}/../../../libraries/SetupUtils.robot
24
25 *** Test Cases ***
26 Listener_On_Shard_Leader_Node
27     [Documentation]    Listener runs on leader node when leader changed.
28     leader
29
30 Listener_On_Shard_Non_Leader_Node
31     [Documentation]    Listener runs on non-leader node when leader changed.
32     non-leader