json static file tests failing in python 2.6

Bug #918388 reported by Major Hayden
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Undecided
Major Hayden

Bug Description

Two tests in keystone involving json aren't passing in python 2.6 (but they pass in python 2.7):

  * TestStaticFiles.test_json_sample
  * TestAdminStaticFiles.test_json_sample

Failure output:

  * http://paste.openstack.org/show/4403/

It seems like RestfulTestCase.restful_request isn't setting an "Accept: application/json" header on its request and the reply doesn't come back with a "Content-Type: application/json" header. That's causing problems in _decode_response_body because response.content_type is None.

I'm still a bit new to python and I don't have any patches to suggest for a fix. :/

Changed in keystone:
assignee: nobody → Major Hayden (rackerhacker)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/3151

Changed in keystone:
status: New → In Progress
Revision history for this message
Dolph Mathews (dolph) wrote :

I think the source of the problem is really that the server isn't setting a Content-Type at all, even with *.json is requested -- which puts the problem (and therefore, fix) on the server side.

Revision history for this message
Dolph Mathews (dolph) wrote :

Assuming this is now invalid as the codebase has been completely replaced (post-merge of redux), and the files referenced above are no longer in master; please re-open if I'm mistaken.

Changed in keystone:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.