Commit Graph

2 Commits

Author SHA1 Message Date
jichenjc e516de74c1 Remove project id in ViewBuilder alternate link
Clearly nobody really uses the "application/vnd.openstack.image"
links in the returned results from GET /v2/{tenant}/images
REST API call, since the link URI returned in it is wrong.

Glance URIs do *not* contain a project or tenant in the URI
structure like Nova's REST API URIs do, but _get_alternate_link()
method of the image ViewBuilder tacks it on improperly:

Change-Id: I4ccb5628569c60026a1772df0794ac0271c48db3
Closes-Bug: #1343080
2014-10-22 14:23:18 +08:00
Chris Yeoh aab2bac48c Port image-size extension to work in v2.1/v3 framework
Ports v2 image-size extension and adapts it to the v2.1/v3 API
framework. API behaviour is identical with the exception
that there is no support for XML. Also

- unittest code modified to share testing with both v2/v2.1
- Adds expected error decorators for API methods

Partially implements blueprint v2-on-v3-api

Change-Id: I44f3d35b3d888e2f4429ca0788d74b9b0cce9494
2014-09-01 22:27:31 +08:00