From 526c9c3d7313901cb079923d9c35a7f43108c559 Mon Sep 17 00:00:00 2001 From: Paul Bellamy Date: Mon, 19 Oct 2015 13:38:10 +0100 Subject: [PATCH] Add test for {"HostConfig":{}} overriding previous settings, but still connecting to weave --- test/666_abuse_of_start_test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/666_abuse_of_start_test.sh b/test/666_abuse_of_start_test.sh index 39b41297..41761583 100755 --- a/test/666_abuse_of_start_test.sh +++ b/test/666_abuse_of_start_test.sh @@ -38,4 +38,10 @@ proxy docker_on $HOST1 create --name=c6 $SMALL_IMAGE $CHECK_ETHWE_UP proxy docker_api_on $HOST1 POST /containers/c6/start '{"NetworkMode": "container:c2", "HostConfig": {"NetworkMode": "container:c1"}}' check_hostconfig c6 container:c1 +# Start c7 with an empty HostConfig and check this removes previous parameters, but still attaches to weave +proxy docker_on $HOST1 create --name=c7 --memory-swap -1 $SMALL_IMAGE $CHECK_ETHWE_UP +proxy docker_api_on $HOST1 POST /containers/c7/start '{"HostConfig":{}}' +assert "docker_on $HOST1 inspect -f '{{.HostConfig.MemorySwap}}' c7" "0" +check_hostconfig c7 default + end_suite