Push upstream reachability tests
[integration/test.git] / csit / suites / openstack / neutron / 001__reachability.robot
diff --git a/csit/suites/openstack/neutron/001__reachability.robot b/csit/suites/openstack/neutron/001__reachability.robot
new file mode 100644 (file)
index 0000000..d522a88
--- /dev/null
@@ -0,0 +1,24 @@
+*** Settings ***
+Suite Setup       Create Session    ODL    http://${ODL_SYSTEM_IP}:${PORT}    headers=${HEADERS}    auth=${AUTH}
+Suite Teardown    Delete All Sessions
+Library           RequestsLibrary
+Variables         ../../../variables/Variables.py
+
+*** Test Cases ***
+Get the complete list of networks
+    [Documentation]    Get the complete list of networks
+    [Tags]    reachability
+    ${resp}    get request    ODL    ${NEUTRON_NETWORKS_API}
+    Should be Equal As Strings    ${resp.status_code}    200
+
+Get the complete list of subnets
+    [Documentation]    Get the complete list of subnets
+    [Tags]    reachability
+    ${resp}    get request    ODL    ${NEUTRON_SUBNETS_API}
+    Should be Equal As Strings    ${resp.status_code}    200
+
+Get the complete list of ports
+    [Documentation]    Get the complete list of ports
+    [Tags]    reachability
+    ${resp}    get request    ODL    ${NEUTRON_PORTS_API}
+    Should be Equal As Strings    ${resp.status_code}    200