glance/glance/tests
Stuart McLaren 519c0a6be1 Remove routes collection mappings
When using the routes mapper's collection to map from URLs to
python functions several additional URIs are created by
default: 'new', 'format' and 'edit', eg this URI

/v1/images/new

was accessible and would return a '500'.

/v1/images/detail.xxx

was accessible and a 'GET' to it would create a file called 'detail.xxx'
in the image cache directory (where 'xxx' is an arbitrary string).

Similar resources for image memberships existed.

Other collection URIs (for both the API and Registry) would return
unexpected behaviour.

Use explicit mappings rather than a 'collection' to remove
the superfluous resources.

Fixes bug 1185828.

Change-Id: I2f451f0208d43cdc83dcf58a41ea31359b18fcf2
2013-06-04 13:44:02 +00:00
..
etc Use RBAC policy to determine if context is admin. 2013-05-02 16:40:24 +01:00
functional Don't make functional tests inherit from IsolatedUnitTest 2013-05-31 17:37:14 +02:00
unit Remove routes collection mappings 2013-06-04 13:44:02 +00:00
var New -k/--insecure command line option 2012-02-13 13:57:13 +00:00
__init__.py Revert "Funnel debug logging through nose properly." 2012-06-20 15:25:49 +00:00
stubs.py Implement Registry's Client V2 2013-05-13 10:42:25 +02:00
utils.py Remove glance-control from the test suite 2013-05-21 09:52:34 -10:00