X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fopenflowplugin%2FBug_Validation%2F7258.robot;h=7f7d99c8eff071e497ca92105ad0a79542e80391;hb=14c1be480643f37f1eeef9d16149b631edd6aa2d;hp=a43a2b1ed2f22d1ec963cd50e13f4c25c5f39937;hpb=540125131c520642019271cd3ce8a8e694df4af2;p=integration%2Ftest.git diff --git a/csit/suites/openflowplugin/Bug_Validation/7258.robot b/csit/suites/openflowplugin/Bug_Validation/7258.robot index a43a2b1ed2..7f7d99c8ef 100644 --- a/csit/suites/openflowplugin/Bug_Validation/7258.robot +++ b/csit/suites/openflowplugin/Bug_Validation/7258.robot @@ -1,35 +1,51 @@ *** Settings *** -Documentation Test suite for bug 6917 validation. -Suite Setup Initialization Phase -Suite Teardown Final Phase -Library XML -Library RequestsLibrary -Resource ../../../libraries/MininetKeywords.robot -Resource ../../../libraries/FlowLib.robot -Resource ../../../variables/Variables.robot -Resource ../../../variables/openflowplugin/Variables.robot +Documentation Test suite for bug 6917 validation. + +Library XML +Library RequestsLibrary +Resource ../../../libraries/MininetKeywords.robot +Resource ../../../libraries/FlowLib.robot +Resource ../../../variables/Variables.robot +Resource ../../../variables/openflowplugin/Variables.robot + +Suite Setup Initialization Phase +Suite Teardown Final Phase + *** Variables *** -${XmlsDir} ${CURDIR}/../../../variables/xmls -${flowfile} f161.xml -${switch_idx} 1 -${switch_name} s${switch_idx} +${XmlsDir} ${CURDIR}/../../../variables/xmls +${flowfile} f161.xml +${switch_idx} 1 +${switch_name} s${switch_idx} + *** Test Cases *** Add Alien Flow And Verify It Is In Operational DS [Documentation] Add flow with incorrect in-port format to generate alien ID FlowLib.Create Flow Variables For Suite From XML File ${XmlsDir}/${flowfile} FlowLib.Add Flow Via Restconf ${switch_idx} ${table_id} ${data} - BuiltIn.Wait Until Keyword Succeeds 10s 1s FlowLib.Check Datastore Presence ${flowfile} ${True} ${True} - ... ${False} ${False} + BuiltIn.Wait Until Keyword Succeeds + ... 10s + ... 1s + ... FlowLib.Check Datastore Presence + ... ${flowfile} + ... ${True} + ... ${True} + ... ${False} + ... ${False} [Teardown] Report_Failure_Due_To_Bug 7258 + *** Keywords *** Initialization Phase [Documentation] Starts mininet and verify if topology is in operational datastore. ${mininet_conn_id}= MininetKeywords.Start Mininet Single Controller BuiltIn.Set Suite Variable ${mininet_conn_id} - RequestsLibrary.Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML} + RequestsLibrary.Create Session + ... session + ... http://${ODL_SYSTEM_IP}:${RESTCONFPORT} + ... auth=${AUTH} + ... headers=${HEADERS_XML} BuiltIn.Wait Until Keyword Succeeds 10s 1s FlowLib.Check Switches In Topology 1 Final Phase