summaryrefslogtreecommitdiff
path: root/cinderclient/tests/unit/v3/fakes_base.py
diff options
context:
space:
mode:
authorwhoami-rajat <rajatdhasmana@gmail.com>2018-10-01 12:55:43 +0530
committerwhoami-rajat <rajatdhasmana@gmail.com>2022-02-24 23:13:19 +0530
commit12075cb71067563f60de929e61f79eae33b2c2ec (patch)
tree665a82bcf7e08994cbb96bdf2b0cc042d5034a4e /cinderclient/tests/unit/v3/fakes_base.py
parentaf3bc66a5fe2a1ab37d537b6cfe1f5dfb5659002 (diff)
downloadpython-cinderclient-12075cb71067563f60de929e61f79eae33b2c2ec.tar.gz
Add volume reimage command
A new reimage API will be introduced on cinder API side with change in depends on. This patch provides the CLI support for the same by adding a reimage command. Implements: blueprint add-volume-re-image-api Change-Id: I37c254d4caf2f416e456ff6a78b5a4df4e08a176
Diffstat (limited to 'cinderclient/tests/unit/v3/fakes_base.py')
-rw-r--r--cinderclient/tests/unit/v3/fakes_base.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cinderclient/tests/unit/v3/fakes_base.py b/cinderclient/tests/unit/v3/fakes_base.py
index ec75ff0..b5f2728 100644
--- a/cinderclient/tests/unit/v3/fakes_base.py
+++ b/cinderclient/tests/unit/v3/fakes_base.py
@@ -550,6 +550,8 @@ class FakeHTTPClient(base_client.HTTPClient):
_body = body
elif action == 'revert':
assert 'snapshot_id' in body[action]
+ elif action == 'os-reimage':
+ assert 'image_id' in body[action]
else:
raise AssertionError("Unexpected action: %s" % action)
return (resp, {}, _body)