neutron-vpnaas/neutron
Paul Michali 1683bea1c6 Rework and enable VPNaaS UT for Cisco CSR REST
The Cisco CSR REST client library unit tests were developed in
Icehouse, using the httmock library. However, the community did
not want to add this library to global requirements, as there was
a similar httpretty library available (albeit with some short-
comings). As a result, the test module was renamed with a "no"
prefix, to prevent inclusion in automated tests.

Since then, a new library, requests-mock, has been added to global
requirements, to replace httpretty, and is being used on several
other projects.

This commit reworks the unit test to use requests-mock, instead of
httmock. The functionality is the same, but the mechanism (a
fixture with URI registration vs context manager) is different.

This commit provides coverage for the REST client code, by using a
mock for the Cisco CSR VM. The unit test module can be subclassed,
and used with a real CSR VM, for 3rd party CI testing, in the
future.

Change-Id: I55c8a253eb32985bc2016ae748b1ded58d021e1a
Closes-Bug: 1358470
2014-09-18 13:46:59 +00:00
..
db Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
services Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
tests/unit Rework and enable VPNaaS UT for Cisco CSR REST 2014-09-18 13:46:59 +00:00
__init__.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00