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
2 files changed