X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=test%2Fcsit%2Fsuites%2Fopenflowplugin%2FFlows_OF13%2F301__src_ip.robot;fp=test%2Fcsit%2Fsuites%2Fopenflowplugin%2FFlows_OF13%2F301__src_ip.robot;h=c8f16900ecaf985e407ac4158aa281e8b2f6bb7f;hb=222697d2890cf6fe26f30bbbee88cbca10d6534c;hp=46b1dfe7a6518c36e9cc9d8b56899d130f79c1c5;hpb=02f304585d3b2c2d69680402c8befc4bb2092904;p=integration%2Ftest.git diff --git a/test/csit/suites/openflowplugin/Flows_OF13/301__src_ip.robot b/test/csit/suites/openflowplugin/Flows_OF13/301__src_ip.robot index 46b1dfe7a6..c8f16900ec 100644 --- a/test/csit/suites/openflowplugin/Flows_OF13/301__src_ip.robot +++ b/test/csit/suites/openflowplugin/Flows_OF13/301__src_ip.robot @@ -5,7 +5,7 @@ Suite Teardown Delete All Sessions Library SSHLibrary Library Collections Library OperatingSystem -Library ../../../libraries/RequestsLibrary.py +Library RequestsLibrary Library ../../../libraries/Common.py Variables ../../../variables/Variables.py @@ -22,13 +22,13 @@ Add a flow - Output to physical port# [Tags] Push ${body} OperatingSystem.Get File ${FILE} Set Suite Variable ${body} - ${resp} Putxml session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} data=${body} + ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body} Should Be Equal As Strings ${resp.status_code} 200 Verify after adding flow config - Output to physical port# [Documentation] Verify the flow [Tags] Get - ${resp} get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML} + ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML} Should Be Equal As Strings ${resp.status_code} 200 compare xml ${body} ${resp.content} @@ -45,13 +45,13 @@ Verify flows after adding flow config on OVS Remove a flow - Output to physical port# [Documentation] Remove a flow [Tags] remove - ${resp} Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} + ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} Should Be Equal As Strings ${resp.status_code} 200 Verify after deleting flow config - Output to physical port# [Documentation] Verify the flow [Tags] Get - ${resp} Get session ${REST_CON}/node/openflow:1/table/${TABLE} + ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE} Should Not Contain ${resp.content} ${FLOW} Verify flows after deleting flow config on OVS