X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=test%2Fcsit%2Fsuites%2Fopenflowplugin%2FAD_SAL_NSF_OF13%2F040__flow_programmer.robot;fp=test%2Fcsit%2Fsuites%2Fopenflowplugin%2FAD_SAL_NSF_OF13%2F040__flow_programmer.robot;h=0000000000000000000000000000000000000000;hb=59e81c38620fa1b61e15771191e35771450b9499;hp=9d0bc242f107898e3012ac6c0947c0c9d20b7211;hpb=072f6e3a8d1bdf8f4c663843589c22d93ba07791;p=integration%2Ftest.git diff --git a/test/csit/suites/openflowplugin/AD_SAL_NSF_OF13/040__flow_programmer.robot b/test/csit/suites/openflowplugin/AD_SAL_NSF_OF13/040__flow_programmer.robot deleted file mode 100644 index 9d0bc242f1..0000000000 --- a/test/csit/suites/openflowplugin/AD_SAL_NSF_OF13/040__flow_programmer.robot +++ /dev/null @@ -1,56 +0,0 @@ -*** Settings *** -Documentation Test suite for Flow Programmer -Suite Setup Create Session session http://${CONTROLLER}:${RESTPORT} auth=${AUTH} headers=${HEADERS} -Suite Teardown Delete All Sessions -Library Collections -Library RequestsLibrary -Library ../../../libraries/Common.py -Variables ../../../variables/Variables.py -Resource ../../../libraries/Utils.robot - -*** Variables *** -${name} flow1 -${node_id} 00:00:00:00:00:00:00:02 -${REST_CONTEXT} /controller/nb/v2/flowprogrammer -${REST_CONTEXT_ST} /controller/nb/v2/statistics - -*** Test Cases *** -Add a flow - [Documentation] Add a flow, list to validate the result. - [Tags] adsal - ${body} Set Variable {"installInHw":"true","name":"flow1","node":{"id":"00:00:00:00:00:00:00:02","type":"OF"},"priority":"1","etherType":"0x800","nwDst":"10.0.0.1/32","actions":["OUTPUT=1"]} - ${expected_content} To JSON ${body} - ${resp} RequestsLibrary.Put session ${REST_CONTEXT}/${CONTAINER}/node/OF/${node_id}/staticFlow/${name} data=${body} - Should Be Equal As Strings ${resp.status_code} 201 - ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/${CONTAINER} - Should Be Equal As Strings ${resp.status_code} 200 - ${result} To JSON ${resp.content} - ${resp_content} Get From Dictionary ${result} flowConfig - List Should Contain Value ${resp_content} ${expected_content} - -Check flow in flow stats - [Documentation] Show flow stats and validate result - [Tags] adsal - ${elements}= Create List 10.0.0.1 - Wait Until Keyword Succeeds 90s 2s Check For Elements At URI ${REST_CONTEXT_ST}/${CONTAINER}/flow ${elements} - -Remove a flow - [Documentation] Remove a flow, list to validate the result. - [Tags] adsal - ${node} Create Dictionary type=OF id=${node_id} - ${actions} Create List OUTPUT=1 - ${expected_content} Create Dictionary name=${name} installInHw=true node=${node} priority=1 etherType=0x800 - ... nwDst=10.0.0.1/32 actions=${actions} - ${resp} RequestsLibrary.Delete session ${REST_CONTEXT}/${CONTAINER}/node/OF/${node_id}/staticFlow/${name} - Should Be Equal As Strings ${resp.status_code} 204 - ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/${CONTAINER} - Should Be Equal As Strings ${resp.status_code} 200 - ${result} To JSON ${resp.content} - ${resp_content} Get From Dictionary ${result} flowConfig - List Should Not Contain Value ${resp_content} ${expected_content} - -Check flow is not in flow stats - [Documentation] Show flow stats and validate result - [Tags] adsal - ${elements}= Create List 10.0.0.1 - Wait Until Keyword Succeeds 60s 2s Check For Elements Not At URI ${REST_CONTEXT_ST}/${CONTAINER}/flow ${elements}