Add new rpc from ClusterAdmin to sanity 75/57275/5
authorPeter Gubka <pgubka@cisco.com>
Wed, 17 May 2017 12:12:56 +0000 (14:12 +0200)
committerVratko Polák <vrpolak@cisco.com>
Thu, 18 May 2017 07:54:29 +0000 (07:54 +0000)
Change-Id: I68dee742717d7670759f5ea5665783c1941dcfdf
Signed-off-by: Peter Gubka <pgubka@cisco.com>
csit/suites/controller/dom_data_broker/ddb-sanity-module-based.robot
csit/suites/controller/dom_data_broker/ddb-sanity-prefix-based.robot

index 3f57be6d734de977278e3f6c2852777fd6b47521..8067da5846371bca808e1f57218c262ac84fab08 100644 (file)
@@ -34,6 +34,12 @@ ${CHAINED_TX}     ${True}
 ${MODULE_SHARD_PREFIX}    prefix-
 
 *** Test Cases ***
+Get_Shard_Role
+    [Documentation]    Get shard role.
+    ${all_indices} =    ClusterManagement.List_All_Indices
+    : FOR    ${index}    IN    @{all_indices}
+    \    ${role} =    ClusterAdmin.Get_Shard_Role    ${index}    ${SHARD_NAME}    ${SHARD_TYPE}
+
 Write_Transactions_One_Node_Leader
     [Documentation]    Write transactions.
     ${all_indices} =    ClusterManagement.List_All_Indices
index 40418d97391e0a96f0b1dc89e9a1d995c87fee1e..97ad8a72aa4d67cbc469567d275e44886bcb0cf2 100644 (file)
@@ -36,6 +36,12 @@ ${CHAINED_TX}     ${True}
 ${ID_PREFIX}      prefix-
 
 *** Test Cases ***
+Get_Prefix_Shard_Role
+    [Documentation]    Get prefix shard role.
+    ${all_indices} =    ClusterManagement.List_All_Indices
+    : FOR    ${index}    IN    @{all_indices}
+    \    ${role} =    ClusterAdmin.Get_Prefix_Shard_Role    ${index}    ${PREF_BASED_SHARD}    ${SHARD_TYPE}
+
 Produce_Transactions_One_Node_Leader
     [Documentation]    Produce transactions.
     ${all_indices} =    ClusterManagement.List_All_Indices