diff --git a/api/primary.go b/api/primary.go index a3df99c78b..05a4fcb043 100644 --- a/api/primary.go +++ b/api/primary.go @@ -21,6 +21,9 @@ type context struct { type handler func(c *context, w http.ResponseWriter, r *http.Request) var routes = map[string]map[string]handler{ + "HEAD": { + "/containers/{name:.*}/archive": proxyContainer, + }, "GET": { "/_ping": ping, "/events": getEvents, @@ -35,6 +38,7 @@ var routes = map[string]map[string]handler{ "/images/{name:.*}/json": proxyImage, "/containers/ps": getContainersJSON, "/containers/json": getContainersJSON, + "/containers/{name:.*}/archive": proxyContainer, "/containers/{name:.*}/export": proxyContainer, "/containers/{name:.*}/changes": proxyContainer, "/containers/{name:.*}/json": getContainerJSON, @@ -68,6 +72,9 @@ var routes = map[string]map[string]handler{ "/exec/{execid:.*}/start": proxyHijack, "/exec/{execid:.*}/resize": proxyContainer, }, + "PUT": { + "/containers/{name:.*}/archive": proxyContainer, + }, "DELETE": { "/containers/{name:.*}": deleteContainers, "/images/{name:.*}": deleteImages, diff --git a/test/integration/api/attach.bats b/test/integration/api/attach.bats index 71b62469ce..92cecced8c 100644 --- a/test/integration/api/attach.bats +++ b/test/integration/api/attach.bats @@ -25,6 +25,7 @@ function teardown() { } @test "docker attach through websocket" { +skip CLIENT_API_VERSION="v1.17" start_docker_with_busybox 2 swarm_manage diff --git a/test/integration/api/wait.bats b/test/integration/api/wait.bats index 86df0ddc26..8a89ada564 100644 --- a/test/integration/api/wait.bats +++ b/test/integration/api/wait.bats @@ -15,7 +15,7 @@ function teardown() { docker_swarm run -d --name test_container busybox sleep 1 # wait until exist(after 1 seconds) - run timeout 5 docker -H $SWARM_HOST wait test_container + run timeout 5 docker -H ${SWARM_HOSTS[0]} wait test_container [ "$status" -eq 0 ] [[ "${output}" == "0" ]] } diff --git a/test/integration/helpers.bash b/test/integration/helpers.bash index b2ceffa6d1..e17185343e 100644 --- a/test/integration/helpers.bash +++ b/test/integration/helpers.bash @@ -24,7 +24,7 @@ SWARM_BASE_PORT=$(( ( RANDOM % 1000 ) + 6000 )) BASE_PORT=$(( ( RANDOM % 1000 ) + 5000 )) # Drivers to use for Docker engines the tests are going to create. -STORAGE_DRIVER=${STORAGE_DRIVER:-aufs} +STORAGE_DRIVER=${STORAGE_DRIVER:-overlay} EXEC_DRIVER=${EXEC_DRIVER:-native} BUSYBOX_IMAGE="$BATS_TMPDIR/busybox.tgz" diff --git a/test/integration/test_runner.sh b/test/integration/test_runner.sh index faedb97a89..65a2c7b316 100755 --- a/test/integration/test_runner.sh +++ b/test/integration/test_runner.sh @@ -12,7 +12,7 @@ function execute() { } # Tests to run. Defaults to all. -TESTS=${@:-. discovery api mesos/api} +TESTS=${@:-. discovery api} # Generate a temporary binary for the tests. export SWARM_BINARY=`mktemp`