Add reachability testcase for ODL
authorCédric Ollivier <cedric.ollivier@orange.com>
Tue, 14 Jun 2016 09:17:21 +0000 (11:17 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Tue, 14 Jun 2016 09:24:50 +0000 (11:24 +0200)
It simply gets the complete lists of networks, subnets and ports.

Change-Id: I529c381996ee45f0b11f5fa24844f25c2f8f4a93
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
testcases/Controllers/ODL/custom_tests/neutron/001__reachability.robot [new file with mode: 0644]

diff --git a/testcases/Controllers/ODL/custom_tests/neutron/001__reachability.robot b/testcases/Controllers/ODL/custom_tests/neutron/001__reachability.robot
new file mode 100644 (file)
index 0000000..d5ec842
--- /dev/null
@@ -0,0 +1,27 @@
+*** Variables ***
+${NeutronNorthbound}    /controller/nb/v2/neutron
+${NetworkNorthbound}    ${NeutronNorthbound}/networks
+${SubnetNorthbound}     ${NeutronNorthbound}/subnets
+${PortNorthbound}       ${NeutronNorthbound}/ports
+
+*** Settings ***
+Suite Setup       Create Session    ODL    http://${CONTROLLER}:${PORT}    headers=${HEADERS}    auth=${AUTH}
+Suite Teardown    Delete All Sessions
+Library           RequestsLibrary
+Variables         ../../../variables/Variables.py
+
+*** Test Cases ***
+Get the complete list of networks
+    [Tags]    reachability
+    ${resp}   get request    ODL    ${NetworkNorthbound}
+    Should be Equal As Strings    ${resp.status_code}    200
+
+Get the complete list of subnets
+    [Tags]    reachability
+    ${resp}   get request    ODL    ${SubnetNorthbound}
+    Should be Equal As Strings    ${resp.status_code}    200
+
+Get the complete list of ports
+    [Tags]    reachability
+    ${resp}   get request    ODL    ${PortNorthbound}
+    Should be Equal As Strings    ${resp.status_code}    200