46e6ba3dde3de6205b9e6eafd156ab19917de178
[integration/test.git] / csit / suites / controller / dom_data_broker / listener_stability_prefbasedshard.robot
1 *** Settings ***
2 Documentation     DOMDataBroker testing: Listener Stability for prefix-based shards
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       SetupUtils.Setup_Utils_For_Setup_And_Teardown    http_timeout=125
14 Suite Teardown    SSHLibrary.Close_All_Connections
15 Test Setup        BuiltIn.Run_Keywords    SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
16 ...               AND    DdbCommons.Create_Prefix_Based_Shard_And_Verify
17 Test Teardown     BuiltIn.Run_Keywords    DdbCommons.Remove_Prefix_Based_Shard_And_Verify
18 ...               AND    SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
19 Default Tags      critical
20 Test Template     DdbCommons.Listener_Stability_PrefBasedShard_Test_Templ
21 Library           SSHLibrary
22 Resource          ${CURDIR}/../../../libraries/controller/DdbCommons.robot
23 Resource          ${CURDIR}/../../../libraries/SetupUtils.robot
24
25 *** Test Cases ***
26 Move_Leader_From_Listener_Local_To_Remote
27     [Documentation]    Listener runs on leader node when leader is moved to remote node.
28     local    remote
29
30 Restart_1
31     [Documentation]    Restart odl.
32     [Setup]    SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
33     [Template]
34     DdbCommons.Restart_Test_Templ
35     [Teardown]    SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
36
37 Move_Leader_From_Listener_Remote_To_Other_Remote
38     [Documentation]    Listener runs on follower node when leader is moved to the third node.
39     remote    remote
40
41 Restart_2
42     [Documentation]    Restart odl.
43     [Setup]    SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
44     [Template]
45     DdbCommons.Restart_Test_Templ
46     [Teardown]    SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
47
48 Move_Leader_From_Listener_Remote_To_Local
49     [Documentation]    Listener runs on follower node when leader is moved to local node.
50     remote    local