rest_client swallows HTTP 415 (Unsupported Media Typ) status code
Bug #1407140 reported by
Gilbert Pilz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Fix Released
|
Medium
|
Ghanshyam Mann |
Bug Description
If you try to use the tempest rest_client to test whether a service properly responds with an HTTP 415, "Unsupported Media Type", status, the rest_client code responds with an "UnexpectedResp
To post a comment you must log in.
Currently, glance V2 API support two media types ( 'application/ openstack- images- v2.1-json- patch' & 'application/ openstack- images- v2.0-json- patch' ).
Tempest always send request with supported media type only and that's why 415 did not happen. ( https:/ /github. com/openstack/ tempest/ blob/master/ tempest/ services/ image/v2/ json/image_ client. py#L62 )
But as rest_client is on the way to be part of tempest-lib, its better to handle 415 and raise appropriate error.