summaryrefslogtreecommitdiffstats
path: root/testcases/Controllers/ODL/custom_tests
diff options
context:
space:
mode:
Diffstat (limited to 'testcases/Controllers/ODL/custom_tests')
-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