summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--glanceclient/tests/unit/v2/fixtures.py3
-rw-r--r--glanceclient/tests/unit/v2/test_shell_v2.py3
-rw-r--r--glanceclient/v2/image_schema.py3
3 files changed, 6 insertions, 3 deletions
diff --git a/glanceclient/tests/unit/v2/fixtures.py b/glanceclient/tests/unit/v2/fixtures.py
index ebf2f72..bc8793d 100644
--- a/glanceclient/tests/unit/v2/fixtures.py
+++ b/glanceclient/tests/unit/v2/fixtures.py
@@ -112,7 +112,8 @@ schema_fixture = {
"aki",
"bare",
"ovf",
- "ova"
+ "ova",
+ "docker"
],
"type": [
"null",
diff --git a/glanceclient/tests/unit/v2/test_shell_v2.py b/glanceclient/tests/unit/v2/test_shell_v2.py
index 4ccef27..1ae17b8 100644
--- a/glanceclient/tests/unit/v2/test_shell_v2.py
+++ b/glanceclient/tests/unit/v2/test_shell_v2.py
@@ -40,7 +40,8 @@ def schema_args(schema_getter, omit=None):
my_schema_getter = lambda: {
'properties': {
'container_format': {
- 'enum': [None, 'ami', 'ari', 'aki', 'bare', 'ovf', 'ova'],
+ 'enum': [None, 'ami', 'ari', 'aki', 'bare', 'ovf', 'ova',
+ 'docker'],
'type': 'string',
'description': 'Format of the container'},
'disk_format': {
diff --git a/glanceclient/v2/image_schema.py b/glanceclient/v2/image_schema.py
index 29c1b2f..ad669ba 100644
--- a/glanceclient/v2/image_schema.py
+++ b/glanceclient/v2/image_schema.py
@@ -44,7 +44,8 @@ _BASE_SCHEMA = {
"aki",
"bare",
"ovf",
- "ova"
+ "ova",
+ "docker"
],
"type": "string",
"description": "Format of the container"