Add test for {"HostConfig":{}} overriding previous settings, but still connecting to weave

This commit is contained in:
Paul Bellamy authored and Bryan Boreham committed 2015-10-20 11:26:29 +01:00
1 parent 119d87b795
commit 526c9c3d73
1 file changed
+6
+6
View File
@@ -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