summaryrefslogtreecommitdiff
path: root/glanceclient
diff options
context:
space:
mode:
authorBrian Rosmaita <rosmaita.fossdev@gmail.com>2018-04-08 14:47:05 -0400
committerBrian Rosmaita <rosmaita.fossdev@gmail.com>2018-04-08 14:48:36 -0400
commite89fcae346eee1e3e5b5beb65e641fbc666fd59c (patch)
tree6f833ea8e11e3d2220350972a4f3a58bcf1ce9ed /glanceclient
parent79543a67edd7a15aa23426548d3be9ac5b99366d (diff)
downloadpython-glanceclient-e89fcae346eee1e3e5b5beb65e641fbc666fd59c.tar.gz
Update local copy of image schema for 2.6
Update the local copy of the image schema to reflect Image API 2.6. Change-Id: Ib0e56027927880d0fa198ffd8ea4b57e39f9d0fe Closes-bug: #1762044 Depends-on: https://review.openstack.org/#/c/559501/
Diffstat (limited to 'glanceclient')
-rw-r--r--glanceclient/tests/unit/v2/fixtures.py5
-rw-r--r--glanceclient/v2/image_schema.py3
2 files changed, 6 insertions, 2 deletions
diff --git a/glanceclient/tests/unit/v2/fixtures.py b/glanceclient/tests/unit/v2/fixtures.py
index 7f0e99c..5a603c0 100644
--- a/glanceclient/tests/unit/v2/fixtures.py
+++ b/glanceclient/tests/unit/v2/fixtures.py
@@ -303,12 +303,15 @@ schema_fixture = {
"readOnly": True,
"description": "Status of the image",
"enum": [
+ "deactivated",
"queued",
"saving",
"active",
"killed",
"deleted",
- "pending_delete"
+ "pending_delete",
+ "uploading",
+ "importing"
],
"type": "string"
},
diff --git a/glanceclient/v2/image_schema.py b/glanceclient/v2/image_schema.py
index 922e026..1ff20bc 100644
--- a/glanceclient/v2/image_schema.py
+++ b/glanceclient/v2/image_schema.py
@@ -129,7 +129,8 @@ _BASE_SCHEMA = {
},
"status": {
"readOnly": True,
- "enum": ["queued", "saving", "active", "killed", "deleted",
+ "enum": ["queued", "saving", "active", "killed",
+ "deleted", "uploading", "importing",
"pending_delete", "deactivated"],
"type": "string",
"description": "Status of the image"