X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fopenflowplugin%2FFlows_Additional_TCs%2F030_Flow_Update_Test.robot;fp=csit%2Fsuites%2Fopenflowplugin%2FFlows_Additional_TCs%2F030_Flow_Update_Test.robot;h=ae400fa848e8d94c2fb3e260a21d70c0323bb6ae;hb=14c1be480643f37f1eeef9d16149b631edd6aa2d;hp=b6836def759b84adfe64aae37eb2afc1a7f8d26c;hpb=540125131c520642019271cd3ce8a8e694df4af2;p=integration%2Ftest.git diff --git a/csit/suites/openflowplugin/Flows_Additional_TCs/030_Flow_Update_Test.robot b/csit/suites/openflowplugin/Flows_Additional_TCs/030_Flow_Update_Test.robot index b6836def75..ae400fa848 100644 --- a/csit/suites/openflowplugin/Flows_Additional_TCs/030_Flow_Update_Test.robot +++ b/csit/suites/openflowplugin/Flows_Additional_TCs/030_Flow_Update_Test.robot @@ -1,23 +1,27 @@ *** Settings *** -Documentation Test suite with independent flow tests -Suite Setup Initialization Phase -Suite Teardown Final Phase -Library String -Library Collections -Library XML -Library RequestsLibrary -Library SSHLibrary -Resource ../../../libraries/Utils.robot -Resource ../../../libraries/FlowLib.robot -Resource ../../../variables/openflowplugin/Variables.robot -Variables ../../../variables/Variables.py -Library ../../../libraries/XmlComparator.py +Documentation Test suite with independent flow tests + +Library String +Library Collections +Library XML +Library RequestsLibrary +Library SSHLibrary +Resource ../../../libraries/Utils.robot +Resource ../../../libraries/FlowLib.robot +Resource ../../../variables/openflowplugin/Variables.robot +Variables ../../../variables/Variables.py +Library ../../../libraries/XmlComparator.py + +Suite Setup Initialization Phase +Suite Teardown Final Phase + *** Variables *** -${XmlsDir} ${CURDIR}/../../../../csit/variables/xmls -${flowfile} f2.xml -${switch_idx} 1 -${switch_name} s${switch_idx} +${XmlsDir} ${CURDIR}/../../../../csit/variables/xmls +${flowfile} f2.xml +${switch_idx} 1 +${switch_name} s${switch_idx} + *** Test Cases *** Update With Delete And Add @@ -34,6 +38,7 @@ Update With Delete And Add Wait Until Keyword Succeeds 30s 1s Check Operational Flow ${True} ${upddata} [Teardown] Delete Flow + *** Keywords *** Log Switch Flows [Documentation] Logs the switch content @@ -54,7 +59,10 @@ Final Phase Delete Flow [Documentation] Removes used flow - ${resp}= RequestsLibrary.Delete Request session ${RFC8040_NODES_API}/node=openflow%3A${switch_idx}/flow-node-inventory:table=${table_id}/flow=${flow_id} + ${resp}= RequestsLibrary.Delete Request + ... session + ... ${RFC8040_NODES_API}/node=openflow%3A${switch_idx}/flow-node-inventory:table=${table_id}/flow=${flow_id} Log ${resp.content} - ${msg}= Set Variable Delete flow for ${RFC8040_NODES_API}/node=openflow%3A${switch_idx}/flow-node-inventory:table=${table_id}/flow=${flow_id} failed, http response ${resp.status_code} received. + ${msg}= Set Variable + ... Delete flow for ${RFC8040_NODES_API}/node=openflow%3A${switch_idx}/flow-node-inventory:table=${table_id}/flow=${flow_id} failed, http response ${resp.status_code} received. Should Be Equal As Strings ${resp.status_code} 200 msg=${msg}