diff options
author | John Warren <jswarren@us.ibm.com> | 2016-01-13 12:01:01 -0500 |
---|---|---|
committer | John Warren <jswarren@us.ibm.com> | 2016-01-26 10:07:44 -0500 |
commit | 33e2b5a73237418148e21c94b07efe87d200eb7b (patch) | |
tree | b1af42d4143ff374e242890b00158e50955deb71 | |
parent | 92d6a26bb658a775fb2a23a7f8913a245531e33d (diff) | |
download | tempest-lib-33e2b5a73237418148e21c94b07efe87d200eb7b.tar.gz |
Alter image json schema to allow for null name and size values
Tests are failing due to images that have null name or size values
even though these are valid images that happen to have been created
outside of tempest.
The API spec indicates that both values can be null:
http://developer.openstack.org/api-ref-image-v2.html#listImages-v2
Change-Id: I015bc569ac4dde5d06b5418b98ff29537b7a4b1c
Closes-Bug: #1533730
-rw-r--r-- | tempest_lib/api_schema/response/compute/v2_1/images.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tempest_lib/api_schema/response/compute/v2_1/images.py b/tempest_lib/api_schema/response/compute/v2_1/images.py index b8c4151..41aceaf 100644 --- a/tempest_lib/api_schema/response/compute/v2_1/images.py +++ b/tempest_lib/api_schema/response/compute/v2_1/images.py @@ -26,7 +26,7 @@ common_image_schema = { 'status': {'type': 'string'}, 'updated': {'type': 'string'}, 'links': image_links, - 'name': {'type': 'string'}, + 'name': {'type': ['string', 'null']}, 'created': {'type': 'string'}, 'minDisk': {'type': 'integer'}, 'minRam': {'type': 'integer'}, @@ -41,7 +41,7 @@ common_image_schema = { 'additionalProperties': False, 'required': ['id', 'links'] }, - 'OS-EXT-IMG-SIZE:size': {'type': 'integer'}, + 'OS-EXT-IMG-SIZE:size': {'type': ['integer', 'null']}, 'OS-DCF:diskConfig': {'type': 'string'} }, 'additionalProperties': False, |