aodh/tests
Doug Hellmann 3173ab4c4b Implement V2 API with Pecan and WSME
This changeset reimplements the API
using Pecan and WSME instead of Flask.

Pecan uses "object dispatch" instead of
declared routes. The controller classes
are chained together to implement the
API.  Most of what we have are simple
REST lookups, but a few cases required
custom methods.

WSME is used to define types of inputs
and outputs for each controller method.
The WSME layer handles serizlization and
deserialization in several formats. In
our case, only JSON and XML are
configured.

There are a few small changes to the
return types in the API, as well as to
error handling. Now all errors are
returned as JSON messages made up of a
mapping containing the key
'error_message' and the text of the
error. This will later be enhanced to
include XML support for XML requests.

This change also moves the script for
starting the V1 API to a new name and
replaces it with a script that starts
the V2 API. There is an open
bug/blueprint to fix that so both
versions of the API are loaded.

blueprint api-server-pecan-wsme

Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Change-Id: I1b99a16de68f902370a8999eca073c56f9f14865
2012-12-04 12:57:58 -05:00
..
api Implement V2 API with Pecan and WSME 2012-12-04 12:57:58 -05:00
collector Use the service.py in openstack-common 2012-11-05 08:28:59 +11:00
compute Fix blocking test for nova notifier 2012-11-28 15:01:20 -05:00
image Clean up context usage 2012-10-29 17:42:08 +01:00
network Remove database access from agent pollsters 2012-11-07 18:06:39 +01:00
objectstore Implement object store metering 2012-11-30 11:07:30 +01:00
storage Implement /meters to make discovery "nicer" from the client 2012-12-03 14:19:55 +11:00
volume Listen for volume.delete.start instead of end 2012-09-27 12:01:00 +01:00
__init__.py Skeleton for API server 2012-07-27 10:34:36 -04:00
policy.json API: add Keystone ACL and policy support 2012-10-08 14:39:03 +02:00
sources.json api: add source detail retrieval 2012-10-26 16:37:23 +02:00
test_meter.py Set source at publish time 2012-10-26 15:13:03 +02:00
test_publish.py Set source at publish time 2012-10-26 15:13:03 +02:00
test_service.py Split service preparation, periodic interval configurable 2012-06-26 15:40:38 +02:00
test_tools_notificationclient.py Combined fix to get past broken state of repo 2012-06-22 11:31:53 -04:00
utils.py Add a notification handler for image downloads. 2012-09-26 16:36:44 +01:00