X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tools%2FRobot_Tool%2Fsuites%2Fbase%2Fhost_tracker.txt;fp=tools%2FRobot_Tool%2Fsuites%2Fbase%2Fhost_tracker.txt;h=0000000000000000000000000000000000000000;hb=7ef28e701bb30353fe438e97c635e05130f23b84;hp=ed4259d2055faff29b53466e4b87ce2a135299e7;hpb=9bd49ac057331e960542fdc38d3eedd7e282d046;p=integration%2Ftest.git diff --git a/tools/Robot_Tool/suites/base/host_tracker.txt b/tools/Robot_Tool/suites/base/host_tracker.txt deleted file mode 100644 index ed4259d205..0000000000 --- a/tools/Robot_Tool/suites/base/host_tracker.txt +++ /dev/null @@ -1,45 +0,0 @@ -*** Settings *** -Documentation Test suite for the host tracker module. -Suite Teardown Delete All Sessions -Library Collections -Library RequestsLibrary -Library ../../libraries/Common.py -Variables ../../variables/Variables.py - -*** Variables *** -${name} 10.0.1.4 -${key} hostConfig -${REST_CONTEXT} /controller/nb/v2/hosttracker - -*** Test Cases *** -Add a host - [Documentation] Add a host, list to validate the result. - [Tags] add - ${body} Create Dictionary nodeType=OF dataLayerAddress=5e:bf:79:84:10:a6 - ... vlan=1 nodeId=00:00:00:00:00:00:00:03 nodeConnectorId=9 - ... networkAddress=10.0.1.4 staticHost=${True} nodeConnectorType=OF - ${headers} Create Dictionary Content-Type=application/json - Create Session session http://${CONTROLLER}:8080 headers=${headers} auth=${auth} - ${resp} Put session ${REST_CONTEXT}/${CONTAINER}/address/${name} data=${body} - Should Be Equal As Strings ${resp.status_code} 201 Response status code error - ${resp} Get session ${REST_CONTEXT}/${CONTAINER}/hosts/inactive - 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 host - [Documentation] Remove a host, list to validate the result. - [Tags] remove - ${body} Create Dictionary nodeType=OF dataLayerAddress=5e:bf:79:84:10:a6 - ... vlan=1 nodeId=00:00:00:00:00:00:00:03 nodeConnectorId=9 - ... networkAddress=10.0.1.4 staticHost=${True} nodeConnectorType=OF - ${headers} Create Dictionary Content-Type=application/json - Create Session session http://${CONTROLLER}:8080 headers=${headers} auth=${auth} - ${resp} Delete session ${REST_CONTEXT}/${CONTAINER}/address/${name} - Should Be Equal As Strings ${resp.status_code} 204 Response status code error - ${resp} Get session ${REST_CONTEXT}/${CONTAINER}/hosts/inactive - 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}