Glance needs a test for GET /
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
New
|
Undecided
|
Mark T. Voelker | ||
defcore |
New
|
Medium
|
Mark T. Voelker |
Bug Description
A fundamental operation for most OpenStack services is providing information about what versions of an API are available to clients. A version document can be retrieved by sending an unauthenticated GET request to the root URL ("/") for most services, including Glance. This capability is important for discovery in that clients can learn how to interact with the cloud in question. DefCore considers it an important capability for interoperability and has added similar capabilities to it's Guidelines for other services.[1][2] With multiple API versions available across many clouds, being able to retrieve a version document will be increasingly important for clients. However, there are currently no tests for GET /, so DefCore cannot make this a required Capability. We should add a simple smoke test or two for GET /.
Note: a similar bug for Neutron [3] is being worked now; once it winds it's way through the review queue then it should be fairly simple to use much of the same logic for Glance.
[1] http://
[2] http://
[3] https:/
Changed in glance: | |
assignee: | nobody → Mark T. Voelker (mvoelker) |
Changed in defcore: | |
importance: | Undecided → Medium |
Hi Mark,
We have the following in-tree test:
glance/ tests/functiona l/test_ api.py
def test_get_ root_path( self): %s:%d' % ('127.0.0.1', self.api_port)
self.assertEqu al(300, response.status)
self.assertEqu al(self. versions_ json, content)
"""Assert GET / with `no Accept:` header.
Verify version choices returned.
Bug lp:803260 no Accept header causes a 500 in glance-api
"""
path = 'http://
http = httplib2.Http()
response, content = http.request(path, 'GET')
Do you mean a tempest test? Thanks.