X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tools%2FRobot_Tool%2Fsuites%2Fbase%2Fforwarding_manager.txt;fp=tools%2FRobot_Tool%2Fsuites%2Fbase%2Fforwarding_manager.txt;h=0000000000000000000000000000000000000000;hb=7ef28e701bb30353fe438e97c635e05130f23b84;hp=b22e81a128a344276b06ccffd5baa3081effe49b;hpb=9bd49ac057331e960542fdc38d3eedd7e282d046;p=integration%2Ftest.git diff --git a/tools/Robot_Tool/suites/base/forwarding_manager.txt b/tools/Robot_Tool/suites/base/forwarding_manager.txt deleted file mode 100644 index b22e81a128..0000000000 --- a/tools/Robot_Tool/suites/base/forwarding_manager.txt +++ /dev/null @@ -1,41 +0,0 @@ -*** Settings *** -Documentation Test suite for the forwarding manager module. -Suite Teardown Delete All Sessions -Library Collections -Library RequestsLibrary -Library ../../libraries/Common.py -Variables ../../variables/Variables.py - -*** Variables *** -${name} test_route1 -${key} staticRoute -${REST_CONTEXT} /controller/nb/v2/staticroute - -*** Test Cases *** -Add a static route - [Documentation] Add a static route, list to validate the result. - [Tags] add - ${body} Create Dictionary name=${name} prefix=192.168.1.0/24 nextHop=10.0.0.2 - ${headers} Create Dictionary Content-Type=application/json - Create Session session http://${CONTROLLER}:8080 headers=${headers} auth=${auth} - ${resp} Put session ${REST_CONTEXT}/${CONTAINER}/route/${name} data=${body} - Should Be Equal As Strings ${resp.status_code} 201 Response status code error - ${resp} Get session ${REST_CONTEXT}/${CONTAINER}/routes - 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 subnet - [Documentation] Remove a subnet, list to validate the result. - [Tags] remove - ${body} Create Dictionary name=${name} prefix=192.168.1.0/24 nextHop=10.0.0.2 - ${headers} Create Dictionary Content-Type=application/json - Create Session session http://${CONTROLLER}:8080 headers=${headers} auth=${auth} - ${resp} Delete session ${REST_CONTEXT}/${CONTAINER}/route/${name} - Should Be Equal As Strings ${resp.status_code} 204 Response status code error - ${resp} Get session ${REST_CONTEXT}/${CONTAINER}/routes - 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}