Browse code

integ-cli: skip test assuming -H is unix://...

`TestCliProxyDisableProxyUnixSock` verifies that HTTP_PROXY env var is
used when DOCKER_HOST is not set and cli connects to `unix://...` by
default.

In the windows/darwin CLI CIs, daemon is on remote host and we always
connect via `tcp://`, therefore this test fails very straight. Skipping
this test to run only on "same host daemon" assumption.

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>

Ahmet Alp Balkan authored on 2015/03/07 07:45:26
Showing 1 changed files
... ...
@@ -8,6 +8,8 @@ import (
8 8
 )
9 9
 
10 10
 func TestCliProxyDisableProxyUnixSock(t *testing.T) {
11
+	testRequires(t, SameHostDaemon) // test is valid when DOCKER_HOST=unix://..
12
+
11 13
 	cmd := exec.Command(dockerBinary, "info")
12 14
 	cmd.Env = appendDockerHostEnv([]string{"HTTP_PROXY=http://127.0.0.1:9999"})
13 15