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
This commit is contained in:
John Warren 2016-01-13 12:01:01 -05:00
parent 92d6a26bb6
commit 33e2b5a732
1 changed files with 2 additions and 2 deletions

View File

@ -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,