From: Cédric Ollivier Date: Tue, 14 Jun 2016 09:17:21 +0000 (+0200) Subject: Add reachability testcase for ODL X-Git-Tag: colorado.1.0~332^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F15509%2F1;p=functest.git Add reachability testcase for ODL It simply gets the complete lists of networks, subnets and ports. Change-Id: I529c381996ee45f0b11f5fa24844f25c2f8f4a93 Signed-off-by: Cédric Ollivier --- 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