Add check for missing candidates in entity owner Keyword
[integration/test.git] / csit / libraries / ClusterOpenFlow.robot
index 0a3fd8043778a0f8a093c9c2b66af8ee32136de0..4aaa55c3790a16fd7795dd0eb0b6cdb6cfe0f3b8 100644 (file)
@@ -57,7 +57,9 @@ Get Cluster Entity Owner For Openflow
     : FOR    ${entity_candidate}    IN    @{entity_candidates_list}
     \    ${candidate}=    Replace String    &{entity_candidate}[name]    member-    ${EMPTY}
     \    ${candidate}=    Convert To Integer    ${candidate}
-    \    Run Keyword If    '${candidate}' != '${owner}'    Append To List    ${candidates_list}    ${candidate}
+    \    Append To List    ${candidates_list}    ${candidate}
+    List Should Contain Sublist    ${candidates_list}    ${controller_index_list}    Candidates are missing in ${candidates_list}
+    Remove Values From List    ${candidates_list}    ${owner}
     [Return]    ${owner}    ${candidates_list}
 
 Get OpenFlow Entity Owner Status For One Device