summaryrefslogtreecommitdiff
path: root/tests/fake_api.py
diff options
context:
space:
mode:
authorChristophe Labouisse <christophe@labouisse.org>2015-02-06 20:00:04 +0100
committerChristophe Labouisse <christophe@labouisse.org>2015-02-11 07:25:59 +0100
commita07bd28077ce8cd13bfe66c2b74b3b0f76f14d8e (patch)
tree85ea996688b6c5cc6be90c90b3a6cb457db8bc49 /tests/fake_api.py
parentd0512028be0301325a59bc94831743e628e3108e (diff)
downloaddocker-py-a07bd28077ce8cd13bfe66c2b74b3b0f76f14d8e.tar.gz
Add missing options to the events command
- Add since, until and filters parameters to `Client.events` - Add missing `events`command in the documentation Signed-off-by: Christophe Labouisse <christophe@labouisse.org>
Diffstat (limited to 'tests/fake_api.py')
-rw-r--r--tests/fake_api.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/fake_api.py b/tests/fake_api.py
index d311fc1..ab2e4fd 100644
--- a/tests/fake_api.py
+++ b/tests/fake_api.py
@@ -221,6 +221,13 @@ def get_fake_diff():
return status_code, response
+def get_fake_events():
+ status_code = 200
+ response = [{'status': 'stop', 'id': FAKE_CONTAINER_ID,
+ 'from': FAKE_IMAGE_ID, 'time': 1423247867}]
+ return status_code, response
+
+
def get_fake_export():
status_code = 200
response = 'Byte Stream....'
@@ -402,5 +409,7 @@ fake_responses = {
'{1}/{0}/containers/create'.format(CURRENT_VERSION, prefix):
post_fake_create_container,
'{1}/{0}/build'.format(CURRENT_VERSION, prefix):
- post_fake_build_container
+ post_fake_build_container,
+ '{1}/{0}/events'.format(CURRENT_VERSION, prefix):
+ get_fake_events
}