Add restart test case to ddb suites 93/57193/6
authorPeter Gubka <pgubka@cisco.com>
Tue, 16 May 2017 16:39:43 +0000 (18:39 +0200)
committerVratko Polák <vrpolak@cisco.com>
Wed, 17 May 2017 10:46:06 +0000 (10:46 +0000)
Change-Id: I4fa6d95e9049b2f42ff4c06069222c773f97c36a
Signed-off-by: Peter Gubka <pgubka@cisco.com>
csit/libraries/controller/DdbCommons.robot
csit/suites/controller/dom_data_broker/client_isolation.robot
csit/suites/controller/dom_data_broker/client_isolation_prefbasedshard.robot
csit/suites/controller/dom_data_broker/remote_listener.robot
csit/suites/controller/dom_data_broker/remote_listener_prefbasedshard.robot

index 6a21535c42bd687c849dcc8054ae0cc0bc7f8351..f22374b8ff82d7fe2abc25b12a7c25e6fd79e265 100644 (file)
@@ -369,3 +369,11 @@ Verify_Shard_Replica_Removed
     ${uri} =    BuiltIn.Set_Variable    /jolokia/read/org.opendaylight.controller:Category=Shards,name=member-${member_index}-shard-${shard_name}-${shard_type},type=${type_class}
     ${text}    TemplatedRequests.Get_From_Uri    uri=${uri}    session=${session}
     BuiltIn.Should_Contain    ${text}    "status":404    javax.management.InstanceNotFoundException
+
+Restart_Test_Templ
+    [Documentation]    Kill every odl node and start again.
+    ClusterManagement.Kill_Members_From_List_Or_All
+    ClusterManagement.Clean_Directories_On_List_Or_All    tmp_dir=/tmp
+    ClusterManagement.Start_Members_From_List_Or_All
+    BuiltIn.Wait_Until_Keyword_Succeeds    300s    10s    ShardStability.Shards_Stability_Get_Details    ${DEFAULT_SHARD_LIST}    verify_restconf=True
+    ClusterManagement.Run_Bash_Command_On_List_Or_All    ps -ef | grep java
index 735803a00de0f40883d9ee803a7c8f100ec67d87..187aadddba8717eee8bf10bcc62d653df9425223 100644 (file)
@@ -26,14 +26,29 @@ Producer_On_Shard_Leader_Node_ChainedTx
     [Documentation]    Client isolation with producer on shard leader with chained transactions.
     leader    ${CHAINED_TX}
 
+Restart1
+    [Documentation]    Restart odl
+    [Template]
+    DdbCommons.Restart_Test_Templ
+
 Producer_On_Shard_Leader_Node_SimpleTx
     [Documentation]    Client isolation with producer on shard leader with simple transactions.
     leader    ${SIMPLE_TX}
 
+Restart2
+    [Documentation]    Restart odl
+    [Template]
+    DdbCommons.Restart_Test_Templ
+
 Producer_On_Shard_Non_Leader_Node_ChainedTx
     [Documentation]    Client isolation with producer on shard non-leader with chained transactions.
     non-leader    ${CHAINED_TX}
 
+Restart3
+    [Documentation]    Restart odl
+    [Template]
+    DdbCommons.Restart_Test_Templ
+
 Producer_On_Shard_Non_Leader_Node_SimpleTx
     [Documentation]    Client isolation with producer on shard non-leader with simple transactions.
     non-leader    ${SIMPLE_TX}
index fa949384af876f5e2f3d709c1370c5bfeec1266a..7b76f004212408f61090219601c43c3b8b469eb3 100644 (file)
@@ -28,14 +28,29 @@ Producer_On_Shard_Leader_Node_Isolated_Transactions
     [Documentation]    Client isolation with producer on shard leader with isolated transactions flag set.
     leader    ${ISOLATED_TRANS_TRUE}
 
+Restart1
+    [Documentation]    Restart odl
+    [Template]
+    DdbCommons.Restart_Test_Templ
+
 Producer_On_Shard_Leader_Node_Nonisolated_Transactions
     [Documentation]    Client isolation with producer on shard leader with isolated transactions flag unset.
     leader    ${ISOLATED_TRANS_FALSE}
 
+Restart2
+    [Documentation]    Restart odl
+    [Template]
+    DdbCommons.Restart_Test_Templ
+
 Producer_On_Shard_Non_Leader_Node_Isolated_Transactions
     [Documentation]    Client isolation with producer on shard non-leader with isolated transactions flag set.
     non-leader    ${ISOLATED_TRANS_TRUE}
 
+Restart3
+    [Documentation]    Restart odl
+    [Template]
+    DdbCommons.Restart_Test_Templ
+
 Producer_On_Shard_Non_Leader_Node_Nonisolated_Transactions
     [Documentation]    Client isolation with producer on shard non-leader with isolated transactions flag unset.
     non-leader    ${ISOLATED_TRANS_FALSE}
index 57e29fa1b8aafa93835a8e1ec4fc4ca8c2d2f48d..33ddd375257553728a88df0f560eb1e78eabe798 100644 (file)
@@ -25,6 +25,11 @@ Listener_On_Shard_Leader_Node
     [Documentation]    Listener runs on leader node when leader changed.
     leader
 
+Restart
+    [Documentation]    Restart odl
+    [Template]
+    DdbCommons.Restart_Test_Templ
+
 Listener_On_Shard_Non_Leader_Node
     [Documentation]    Listener runs on non-leader node when leader changed.
     non-leader
index e50547d3e893360e3fe753cc05774092595368eb..c81fa1780de1d7234984db55f638e332db2075e7 100644 (file)
@@ -27,6 +27,11 @@ Listener_On_Shard_Leader_Node
     [Documentation]    Listener runs on leader node when leader changed.
     leader
 
+Restart
+    [Documentation]    Restart odl
+    [Template]
+    DdbCommons.Restart_Test_Templ
+
 Listener_On_Shard_Non_Leader_Node
     [Documentation]    Listener runs on non-leader node when leader changed.
     non-leader