Change Entity Owner suite to new cluster behavior 31/52331/6
authorLuis Gomez <ecelgp@gmail.com>
Mon, 27 Feb 2017 22:44:36 +0000 (14:44 -0800)
committerJamo Luhrsen <jluhrsen@redhat.com>
Tue, 28 Feb 2017 20:37:15 +0000 (20:37 +0000)
New cluster behavior: only entities the switch connects to show
as candidates in the entity owner API.

Change-Id: I8d16a737c31bd4f12bb892eab45b88030f5a237f
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
csit/suites/openflowplugin/EntityOwnership/010_Switch_Disconnect.robot
csit/suites/openflowplugin/Reconciliation/010_Group_Flows.robot

index 196809d81edef2270b54d17fcdc376721543390a..2e1109af3cfa64447e17f1dcbe4d3748f00fda75 100644 (file)
@@ -84,7 +84,7 @@ Disconnect Switchs Old Master
     OvsManager.Disconnect Switch From Controller And Verify Disconnected    ${switch_name}    ${old_master}
     BuiltIn.Set Test Variable    ${disc_cntl}    ${old_master}
     ${new_master}=    BuiltIn.Wait Until Keyword Succeeds    5x    3s    Verify New Master Controller Node    ${switch_name}    ${old_master}
-    ${owner}    ${successors}=    ClusterOpenFlow.Get OpenFlow Entity Owner Status For One Device    openflow:${idx}    ${active_member}    ${old_successors}
+    ${owner}    ${successors}=    ClusterOpenFlow.Get OpenFlow Entity Owner Status For One Device    openflow:${idx}    ${active_member}    ${old_successors}    after_stop=True
     BuiltIn.Should Be Equal As Strings    ${new_master}    ${ODL_SYSTEM_${owner}_IP}
     BuiltIn.Set Test Variable    ${old_owner}
     BuiltIn.Set Test Variable    ${old_successors}
@@ -108,7 +108,7 @@ Disconnect Switchs Slave
     BuiltIn.Set Test Variable    ${disc_cntl}    ${old_slave}
     ${tmp_candidates}=    BuiltIn.Create List    @{ClusterManagement__member_index_list}
     Collections.Remove Values From List    ${tmp_candidates}    ${old_successor}
-    ${owner}    ${successors}=    ClusterOpenFlow.Get OpenFlow Entity Owner Status For One Device    openflow:${idx}    ${active_member}    ${tmp_candidates}
+    ${owner}    ${successors}=    ClusterOpenFlow.Get OpenFlow Entity Owner Status For One Device    openflow:${idx}    ${active_member}    ${tmp_candidates}    after_stop=True
     BuiltIn.Should Be Equal    ${owner}    ${old_owner}
     BuiltIn.Should Be Equal As Strings    ${new_master}    ${ODL_SYSTEM_${owner}_IP}
     BuiltIn.Set Test Variable    ${old_owner}
index 906e230a1fcdaf2b536168bf9d33e979fed2e641..d9ae8331b2ae10340da62f21bf33e183ef6735e3 100644 (file)
@@ -17,7 +17,7 @@ ${VAR_DIR}        ${CURDIR}/../../../variables/openflowplugin
 
 *** Test Cases ***
 Enable Stale Flow Entry
-    [Documentation]    Check Flows after mininet starts.
+    [Documentation]    Enable stale flow entry feature.
     # Stale flows/groups feature is only available in Boron onwards.
     CompareStream.Run Keyword If At Least Boron    TemplatedRequests.Put As Json Templated    folder=${VAR_DIR}/frm-config    mapping={"STALE":"true"}    session=session