From 7024c2f1461ac80296d12fd17f8a5ca8412320cc Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Tue, 14 Jun 2016 11:17:21 +0200 Subject: Add reachability testcase for ODL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It simply gets the complete lists of networks, subnets and ports. Change-Id: I529c381996ee45f0b11f5fa24844f25c2f8f4a93 Signed-off-by: Cédric Ollivier --- .../custom_tests/neutron/001__reachability.robot | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 testcases/Controllers/ODL/custom_tests/neutron/001__reachability.robot 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 -- cgit 1.2.3-korg