commit | 0dc4f8e08803d181bac5abc46a8b4124ab204c27 | [log] [tgz] |
---|---|---|
author | Felipe Monteiro <felipe.monteiro@att.com> | Wed Oct 04 01:57:51 2017 +0100 |
committer | Felipe Monteiro <felipe.monteiro@att.com> | Wed Oct 04 01:57:51 2017 +0100 |
tree | 42378ae9f0310face911df426e8847657166b06a | |
parent | 2283472a52290f8da482494b28b94842730d6dc6 [diff] |
Add compare header version to test images oneserver This PS uses `compare_version_header_to_response` in `api_version_utils` in test_images_oneserver(_negative) to correctly parse the image_id from the returned image, based on the microversion in the response body. According to the Nova docs for this API [0], the image_id is located in location header for < 2.45 microversion but for >= 2.45 it is located in resp.response['image_id']. [0] https://developer.openstack.org/api-ref/compute/#create-image-createimage-action Change-Id: I255bb5ec5c4db1468dfa25d64f9c33f4afcab6d5