Upgrade RF syntax for v3.2 compatibility
[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     DdbCommons.Restart_Test_Templ
34     [Teardown]    SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
35
36 Move_Leader_From_Listener_Remote_To_Other_Remote
37     [Documentation]    Listener runs on follower node when leader is moved to the third node.
38     remote    remote
39
40 Restart_2
41     [Documentation]    Restart odl.
42     [Setup]    SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
43     DdbCommons.Restart_Test_Templ
44     [Teardown]    SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
45
46 Move_Leader_From_Listener_Remote_To_Local
47     [Documentation]    Listener runs on follower node when leader is moved to local node.
48     remote    local