summaryrefslogtreecommitdiffstats
path: root/testcases/Controllers/ODL/custom_tests/neutron/001__reachability.robot
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-06-14 12:39:57 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-06-14 12:39:57 +0000
commitd68a96e9199075f5f519c3282a8f5c2cef67ea77 (patch)
tree3bed4d6de4782bc9dc43bae2abba7608b0a711ad /testcases/Controllers/ODL/custom_tests/neutron/001__reachability.robot
parentd313edf7da239ab1dd711b25440db1d7916b9680 (diff)
parent7024c2f1461ac80296d12fd17f8a5ca8412320cc (diff)
Merge "Add reachability testcase for ODL"
Diffstat (limited to 'testcases/Controllers/ODL/custom_tests/neutron/001__reachability.robot')
-rw-r--r--testcases/Controllers/ODL/custom_tests/neutron/001__reachability.robot27
1 files changed, 27 insertions, 0 deletions
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
index 000000000..d5ec842ee
--- /dev/null
+++ b/testcases/Controllers/ODL/custom_tests/neutron/001__reachability.robot
@@ -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