X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=test%2Fcsit%2Fsuites%2Fopenflowplugin%2FFlows_OF13%2F318__metadata.robot;fp=test%2Fcsit%2Fsuites%2Fopenflowplugin%2FFlows_OF13%2F318__metadata.robot;h=2c193d35941b41353138f59fa297c0f03af41986;hb=222697d2890cf6fe26f30bbbee88cbca10d6534c;hp=286d845d8cec12f8bc0e6dbf459f4338fbd673e9;hpb=02f304585d3b2c2d69680402c8befc4bb2092904;p=integration%2Ftest.git diff --git a/test/csit/suites/openflowplugin/Flows_OF13/318__metadata.robot b/test/csit/suites/openflowplugin/Flows_OF13/318__metadata.robot index 286d845d8c..2c193d3594 100644 --- a/test/csit/suites/openflowplugin/Flows_OF13/318__metadata.robot +++ b/test/csit/suites/openflowplugin/Flows_OF13/318__metadata.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