Support TLS remote test daemon

This will allow us to have a windows-to-linux CI, where the linux host
can be anywhere, connecting with TLS.

Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
Tibor Vass
2016-02-24 17:59:11 -05:00
parent a7fefcf16c
commit f4a1e3db99
11 changed files with 93 additions and 43 deletions

View File

@@ -5,7 +5,6 @@ import (
"net/http"
"net/http/httptest"
"net/http/httputil"
"os"
"os/exec"
"strconv"
"strings"
@@ -91,7 +90,7 @@ func (s *DockerSuite) TestApiDockerApiVersion(c *check.C) {
// Test using the env var first
cmd := exec.Command(dockerBinary, "-H="+server.URL[7:], "version")
cmd.Env = append([]string{"DOCKER_API_VERSION=xxx"}, os.Environ()...)
cmd.Env = appendBaseEnv(false, "DOCKER_API_VERSION=xxx")
out, _, _ := runCommandWithOutput(cmd)
c.Assert(svrVersion, check.Equals, "/vxxx/version")