Upgrade RF syntax for v3.2 compatibility
[integration/test.git] / csit / suites / controller / dom_data_broker / explicit_leader_movement_prefbasedshard.robot
1 *** Settings ***
2 Documentation     DOMDataBroker testing: Explicit Leader Movement
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 that applications do not observe disruption when a shard
11 ...               leader is moved as the result of explicit application request. This is performed
12 ...               by having a steady-stream producer execute operations against the shard and then
13 ...               initiate shard leader shutdown, then the producer is shut down cleanly.
14 Suite Setup       SetupUtils.Setup_Utils_For_Setup_And_Teardown    http_timeout=125
15 Suite Teardown    SSHLibrary.Close_All_Connections
16 Test Setup        BuiltIn.Run_Keywords    SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
17 ...               AND    DdbCommons.Create_Prefix_Based_Shard_And_Verify
18 Test Teardown     BuiltIn.Run_Keywords    DdbCommons.Remove_Prefix_Based_Shard_And_Verify
19 ...               AND    SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
20 Default Tags      critical
21 Test Template     DdbCommons.Explicit_Leader_Movement_PrefBasedShard_Test_Templ
22 Library           SSHLibrary
23 Resource          ${CURDIR}/../../../libraries/controller/DdbCommons.robot
24 Resource          ${CURDIR}/../../../libraries/SetupUtils.robot
25
26 *** Test Cases ***
27 Local_To_Remote_Movement
28     [Documentation]    Leader moves from local to remote node during transaction producing.
29     local    remote
30
31 Restart1
32     [Documentation]    Restart odl.
33     [Setup]    SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
34     DdbCommons.Restart_Test_Templ
35     [Teardown]    SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
36
37 Remote_To_Remote_Movement
38     [Documentation]    Leader moves from one remote to other remote node during transaction producing.
39     remote    remote
40
41 Restart2
42     [Documentation]    Restart odl.
43     [Setup]    SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
44     DdbCommons.Restart_Test_Templ
45     [Teardown]    SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
46
47 Remote_To_Local_Movement
48     [Documentation]    Leader moves from remote to local node during transaction producing.
49     remote    local