X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=test%2Ftools%2FRobot_Tool%2Fsuites%2Fbase%2Fforwarding_rule_manager.txt;fp=test%2Ftools%2FRobot_Tool%2Fsuites%2Fbase%2Fforwarding_rule_manager.txt;h=0000000000000000000000000000000000000000;hb=59e81c38620fa1b61e15771191e35771450b9499;hp=e2af707ced3c18b906089c3d1e11d890755b666a;hpb=072f6e3a8d1bdf8f4c663843589c22d93ba07791;p=integration%2Ftest.git diff --git a/test/tools/Robot_Tool/suites/base/forwarding_rule_manager.txt b/test/tools/Robot_Tool/suites/base/forwarding_rule_manager.txt deleted file mode 100644 index e2af707ced..0000000000 --- a/test/tools/Robot_Tool/suites/base/forwarding_rule_manager.txt +++ /dev/null @@ -1,50 +0,0 @@ -*** Settings *** -Documentation Test suite for the forwarding rule manager module. -Suite Teardown Delete All Sessions -Library Collections -Library RequestsLibrary -Library ../../libraries/Common.py -Variables ../../variables/Variables.py - -*** Variables *** -${name} flow1 -${key} flowConfig -${node_id} 00:00:00:00:00:00:00:02 -${REST_CONTEXT} /controller/nb/v2/flowprogrammer - -*** Test Cases *** -Add a flow - [Documentation] Add a flow, list to validate the result. - [Tags] add - ${node} Create Dictionary type OF id ${node_id} - ${actions} Create List OUTPUT=1 - ${body} Create Dictionary name ${name} installInHw true node - ... ${node} priority 1 etherType 0x800 nwDst - ... 10.0.0.1/32 actions ${actions} - ${headers} Create Dictionary Content-Type application/json - Create Session session http://${CONTROLLER}:8080 headers=${headers} auth=${auth} - ${resp} Put session ${REST_CONTEXT}/${CONTAINER}/node/OF/${node_id}/staticFlow/${name} data=${body} - Should Be Equal As Strings ${resp.status_code} 201 Response status code error - ${resp} Get session ${REST_CONTEXT}/${CONTAINER} - Should Be Equal As Strings ${resp.status_code} 200 Response status code error - ${result} To JSON ${resp.content} - ${content} Get From Dictionary ${result} ${key} - List Should Contain Value ${content} ${body} - -Remove a flow - [Documentation] Remove a flow, list to validate the result. - [Tags] remove - ${node} Create Dictionary type OF id ${node_id} - ${actions} Create List OUTPUT=1 - ${body} Create Dictionary name ${name} installInHw true node - ... ${node} priority 1 etherType 0x800 nwDst - ... 10.0.0.1/32 actions ${actions} - ${headers} Create Dictionary Content-Type application/json - Create Session session http://${CONTROLLER}:8080 headers=${headers} auth=${auth} - ${resp} Delete session ${REST_CONTEXT}/${CONTAINER}/node/OF/${node_id}/staticFlow/${name} - Should Be Equal As Strings ${resp.status_code} 204 Response status code error - ${resp} Get session ${REST_CONTEXT}/${CONTAINER} - Should Be Equal As Strings ${resp.status_code} 200 Response status code error - ${result} To JSON ${resp.content} - ${content} Get From Dictionary ${result} ${key} - List Should Not Contain Value ${content} ${body}