X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=test%2Fcsit%2Fsuites%2Fopenflowplugin%2FAD_SAL_NSF_OF10%2F020__topology_manager.robot;fp=test%2Fcsit%2Fsuites%2Fopenflowplugin%2FAD_SAL_NSF_OF10%2F020__topology_manager.robot;h=0000000000000000000000000000000000000000;hb=59e81c38620fa1b61e15771191e35771450b9499;hp=3fb8747dc63bb4dee0c4d39ad8e922597a8be855;hpb=072f6e3a8d1bdf8f4c663843589c22d93ba07791;p=integration%2Ftest.git diff --git a/test/csit/suites/openflowplugin/AD_SAL_NSF_OF10/020__topology_manager.robot b/test/csit/suites/openflowplugin/AD_SAL_NSF_OF10/020__topology_manager.robot deleted file mode 100644 index 3fb8747dc6..0000000000 --- a/test/csit/suites/openflowplugin/AD_SAL_NSF_OF10/020__topology_manager.robot +++ /dev/null @@ -1,49 +0,0 @@ -*** Settings *** -Documentation Test suite for Topology Manager -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 *** -${node1} "00:00:00:00:00:00:00:01" -${node2} "00:00:00:00:00:00:00:02" -${node3} "00:00:00:00:00:00:00:03" -${name} test_userlink1 -${REST_CONTEXT} /controller/nb/v2/topology - -*** Test Cases *** -Get Topology - [Documentation] Get Topology and validate the result. - [Tags] adsal - Wait Until Keyword Succeeds 10s 2s Check For Specific Number Of Elements At URI ${REST_CONTEXT}/${CONTAINER} ${node1} 4 - Wait Until Keyword Succeeds 10s 2s Check For Specific Number Of Elements At URI ${REST_CONTEXT}/${CONTAINER} ${node1} 4 - Wait Until Keyword Succeeds 10s 2s Check For Specific Number Of Elements At URI ${REST_CONTEXT}/${CONTAINER} ${node1} 4 - -Add a userlink - [Documentation] Add a userlink, list to validate the result. - [Tags] adsal - ${body} Set Variable {"name":"${name}", "status":"Success", "srcNodeConnector":"OF|1@OF|00:00:00:00:00:00:00:02", "dstNodeConnector":"OF|1@OF|00:00:00:00:00:00:00:03"} - ${expected_content} To JSON ${body} - ${resp} RequestsLibrary.Put session ${REST_CONTEXT}/${CONTAINER}/userLink/${name} data=${body} - Should Be Equal As Strings ${resp.status_code} 201 - ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/${CONTAINER}/userLinks - Should Be Equal As Strings ${resp.status_code} 200 - ${result} To JSON ${resp.content} - ${resp_content} Get From Dictionary ${result} userLinks - List Should Contain Value ${resp_content} ${expected_content} - -Remove a userlink - [Documentation] Remove a userlink, list to validate the result. - [Tags] adsal - ${expected_content} Create Dictionary name=${name} status=Success srcNodeConnector=OF|1@OF|00:00:00:00:00:00:00:02 dstNodeConnector=OF|1@OF|00:00:00:00:00:00:00:03 - ${resp} RequestsLibrary.Delete session ${REST_CONTEXT}/${CONTAINER}/userLink/${name} - Should Be Equal As Strings ${resp.status_code} 204 - ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/${CONTAINER}/userLinks - Should Be Equal As Strings ${resp.status_code} 200 - ${result} To JSON ${resp.content} - ${resp_content} Get From Dictionary ${result} userLinks - List Should Not Contain Value ${resp_content} ${expected_content}