summaryrefslogtreecommitdiff
path: root/novaclient/tests/v1_1/contrib/fakes.py
diff options
context:
space:
mode:
Diffstat (limited to 'novaclient/tests/v1_1/contrib/fakes.py')
-rw-r--r--novaclient/tests/v1_1/contrib/fakes.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/novaclient/tests/v1_1/contrib/fakes.py b/novaclient/tests/v1_1/contrib/fakes.py
index fd25910a..3b859362 100644
--- a/novaclient/tests/v1_1/contrib/fakes.py
+++ b/novaclient/tests/v1_1/contrib/fakes.py
@@ -134,3 +134,14 @@ class FakeHTTPClient(fakes.FakeHTTPClient):
def delete_os_assisted_volume_snapshots_x(self, **kw):
return (202, {}, {})
+
+ def post_os_server_external_events(self, **kw):
+ return (200, {}, {'events': [
+ {'name': 'test-event',
+ 'status': 'completed',
+ 'tag': 'tag',
+ 'server_uuid': 'fake-uuid1'},
+ {'name': 'test-event',
+ 'status': 'completed',
+ 'tag': 'tag',
+ 'server_uuid': 'fake-uuid2'}]})