Upgrade RF syntax for v3.2 compatibility
[integration/test.git] / csit / suites / controller / dom_data_broker / client_isolation_prefbasedshard.robot
1 *** Settings ***
2 Documentation     DOMDataBroker testing: Client Isolation
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 purpose of this test is to ascertain that the failure modes of
11 ...               cds-access-client work as expected. This is performed by having a steady
12 ...               stream of transactions flowing from the frontend and isolating the node hosting
13 ...               the frontend from the rest of the cluster.
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.Client_Isolation_PrefBasedShard_Test_Templ
22 Library           SSHLibrary
23 Resource          ${CURDIR}/../../../libraries/controller/DdbCommons.robot
24 Resource          ${CURDIR}/../../../libraries/SetupUtils.robot
25
26 *** Test Cases ***
27 Producer_On_Shard_Leader_Node_Isolated_Transactions
28     [Documentation]    Client isolation with producer on shard leader with isolated transactions flag set.
29     leader    ${ISOLATED_TRANS_TRUE}
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 Producer_On_Shard_Leader_Node_Nonisolated_Transactions
38     [Documentation]    Client isolation with producer on shard leader with isolated transactions flag unset.
39     leader    ${ISOLATED_TRANS_FALSE}
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 Producer_On_Shard_Non_Leader_Node_Isolated_Transactions
48     [Documentation]    Client isolation with producer on shard non-leader with isolated transactions flag set.
49     non-leader    ${ISOLATED_TRANS_TRUE}
50
51 Restart3
52     [Documentation]    Restart odl
53     [Setup]    SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
54     DdbCommons.Restart_Test_Templ
55     [Teardown]    SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
56
57 Producer_On_Shard_Non_Leader_Node_Nonisolated_Transactions
58     [Documentation]    Client isolation with producer on shard non-leader with isolated transactions flag unset.
59     non-leader    ${ISOLATED_TRANS_FALSE}