diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2016-06-14 11:17:21 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2016-06-14 11:24:50 +0200 |
commit | 7024c2f1461ac80296d12fd17f8a5ca8412320cc (patch) | |
tree | 2857a74066854863e06dfc1dc3db61e859c601b8 /testcases/Controllers/ODL/custom_tests/neutron/001__reachability.robot | |
parent | 3ce041f875fa66ddecde577fdd7041abb3fc5ba9 (diff) |
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 <cedric.ollivier@orange.com>
Diffstat (limited to 'testcases/Controllers/ODL/custom_tests/neutron/001__reachability.robot')
-rw-r--r-- | testcases/Controllers/ODL/custom_tests/neutron/001__reachability.robot | 27 |
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 |