Replace Bierman02 with RFC8040 for OpenFlow Plugin
[integration/test.git] / csit / suites / openflowplugin / Performance_Flow_Config / 070_Stats_Collection_100k_WithMininetRestart.robot
index 0e3394667162e64602afcd6af3df56f22c8df9a3..a300307a7bb3008330717d77917c0131b5eb2bc3 100644 (file)
@@ -11,6 +11,7 @@ Library           RequestsLibrary
 Library           ../../../libraries/Common.py
 Library           ../../../libraries/ScaleClient.py
 Resource          ../../../libraries/WaitForFailure.robot
+Resource          ../../../variables/openflowplugin/Variables.robot
 
 *** Variables ***
 ${swnr}           32
@@ -44,8 +45,8 @@ Configure Flows
     ${res}=    Configure Flows Bulk    flow_details=${flows}    controllers=@{cntls}    nrthreads=${nrthreads}    fpr=${fpr}
     Log    ${res}
     Set Suite Variable    ${flows}
-    ${http204ok}=    Create List    ${204}
-    ${validation}=    Validate Responses    ${res}    ${http204ok}
+    ${http201ok}=    Create List    ${201}
+    ${validation}=    Validate Responses    ${res}    ${http201ok}
     Should Be True    ${validation}
     [Teardown]    Save Setup Time    setuptime    ${starttime}
 
@@ -78,8 +79,8 @@ Check Flows Are Operational Again
 
 Deconfigure Flows
     [Documentation]    Flows deconfiguration
-    ${resp}=    Delete Request    session    ${CONFIG_NODES_API}
-    Should Be Equal As Numbers    ${resp.status_code}    200
+    ${resp}=    Delete Request    session    ${RFC8040_NODES_API}
+    Should Be Equal As Numbers    ${resp.status_code}    204
 
 Check No Flows In Operational Last
     [Documentation]    Operational datastore to be without any flows
@@ -130,7 +131,7 @@ Delete Http Session And Store Plot Data
 
 Are Switches Connected Topo
     [Documentation]    Checks wheather switches are connected to controller
-    ${resp}=    Get Request    session    ${OPERATIONAL_TOPO_API}/topology/flow:1    headers=${ACCEPT_XML}
+    ${resp}=    Get Request    session    ${RFC8040_OPERATIONAL_TOPO_FLOW1_API}    headers=${ACCEPT_XML}
     Log    ${resp.content}
     ${count}=    Get Element Count    ${resp.content}    xpath=node
     Should Be Equal As Numbers    ${count}    ${swnr}