summaryrefslogtreecommitdiff
path: root/tests/fake_api.py
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2015-02-10 12:43:56 -0800
committerJoffrey F <joffrey@docker.com>2015-02-10 12:55:44 -0800
commita7f7fbb0fdd1ad247c413170c354d08deb43dd32 (patch)
treeb2fae940cc7a74caa1c8345f991cd6314e7f4a50 /tests/fake_api.py
parent35c4cbd9c49d70922802aa19cb57c302c9bc9d8b (diff)
downloaddocker-py-rename_container.tar.gz
rename() tests and docsrename_container
Diffstat (limited to 'tests/fake_api.py')
-rw-r--r--tests/fake_api.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/fake_api.py b/tests/fake_api.py
index c0b323b..d311fc1 100644
--- a/tests/fake_api.py
+++ b/tests/fake_api.py
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-CURRENT_VERSION = 'v1.16'
+CURRENT_VERSION = 'v1.17'
FAKE_CONTAINER_ID = '3cc2351ab11b'
FAKE_IMAGE_ID = 'e9aa60c60128'
@@ -271,6 +271,11 @@ def post_fake_restart_container():
return status_code, response
+def post_fake_rename_container():
+ status_code = 204
+ return status_code, None
+
+
def delete_fake_remove_container():
status_code = 200
response = {'Id': FAKE_CONTAINER_ID}
@@ -348,6 +353,8 @@ fake_responses = {
post_fake_resize_container,
'{1}/{0}/containers/3cc2351ab11b/json'.format(CURRENT_VERSION, prefix):
get_fake_inspect_container,
+ '{1}/{0}/containers/3cc2351ab11b/rename'.format(CURRENT_VERSION, prefix):
+ post_fake_rename_container,
'{1}/{0}/images/e9aa60c60128/tag'.format(CURRENT_VERSION, prefix):
post_fake_tag_image,
'{1}/{0}/containers/3cc2351ab11b/wait'.format(CURRENT_VERSION, prefix):