Migrate Get Requests invocations(libraries)
[integration/test.git] / csit / suites / controller / dom_data_broker / leader_isolation_prefbasedshard.robot
1 *** Settings ***
2 Documentation       DOMDataBroker testing: Leader 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 goal is to ensure the datastore succeeds in basic isolation/rejoin scenario,
11 ...                 simulating either a network partition, or a prolonged GC pause.
12
13 Library             SSHLibrary
14 Resource            ${CURDIR}/../../../libraries/controller/DdbCommons.robot
15 Resource            ${CURDIR}/../../../libraries/SetupUtils.robot
16
17 Suite Setup         SetupUtils.Setup_Utils_For_Setup_And_Teardown    http_timeout=125
18 Suite Teardown      SSHLibrary.Close_All_Connections
19 Test Setup          BuiltIn.Run_Keywords    SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
20 ...                     AND    DdbCommons.Create_Prefix_Based_Shard_And_Verify
21 Test Teardown       BuiltIn.Run_Keywords    DdbCommons.Remove_Prefix_Based_Shard_And_Verify
22 ...                     AND    SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
23 Test Template       DdbCommons.Leader_Isolation_PrefBasedShard_Test_Templ
24
25 Default Tags        critical
26
27
28 *** Test Cases ***
29 Healing_Within_Request_Timeout
30     [Documentation]    The isolated node (leader) is rejoined as soon as new leader is elected and
31     ...    and within request timeout.
32     ${HEAL_WITHIN_REQUEST_TIMEOUT}
33 Restart
34     [Documentation]    Restart odl.
35     [Setup]    SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
36     DdbCommons.Restart_Test_Templ
37     [Teardown]    SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
38 Healing_After_Request_Timeout
39     [Documentation]    The isolated node (leader) is rejoined after request timeout.
40     ${HEAL_AFTER_REQUEST_TIMEOUT}