fix: configuration for integration tests.
This commit is contained in:
parent
ee0e014617
commit
0750235712
65 changed files with 297 additions and 124 deletions
|
@ -1,11 +1,11 @@
|
|||
[log]
|
||||
logLevel = "ERROR"
|
||||
filePath = "traefik.log"
|
||||
|
||||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "ERROR"
|
||||
filePath = "traefik.log"
|
||||
|
||||
[accessLog]
|
||||
filePath = "access.log"
|
||||
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web]
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web]
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web]
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,11 +1,14 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web]
|
||||
address = ":8000"
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[providers]
|
||||
[providers.file]
|
||||
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[serversTransport]
|
||||
rootCAs = [ """{{ .CertContent }}""" ]
|
||||
|
||||
[global]
|
||||
debug = true
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web-secure]
|
||||
address = ":4443"
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
[global]
|
||||
debug = true
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web]
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
[global]
|
||||
debug = true
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web-secure]
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[serversTransport]
|
||||
insecureSkipVerify = true
|
||||
|
||||
[global]
|
||||
debug = true
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web-secure]
|
||||
address = ":4443"
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[serversTransport]
|
||||
rootCAs = [ """{{ .CertContent }}""" ]
|
||||
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[serversTransport]
|
||||
rootCAs = [ """{{ .CertContent }}""" ]
|
||||
|
|
|
@ -1,11 +1,14 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web]
|
||||
address = ":8000"
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[providers]
|
||||
[providers.file]
|
||||
|
||||
|
|
|
@ -1,11 +1,14 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web]
|
||||
address = ":8000"
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[providers]
|
||||
[providers.file]
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web-secure]
|
||||
address = ":4443"
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web-secure]
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web-secure]
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web]
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web-secure]
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web-secure]
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web-secure]
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
||||
[serversTransport]
|
||||
# Use certificate in net/internal/testcert.go
|
||||
rootCAs = [ """
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
[global]
|
||||
debug=true
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
[global]
|
||||
debug=true
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
keepTrailingSlash = {{ .KeepTrailingSlash }}
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web]
|
||||
address = ":8000"
|
||||
|
||||
[providers]
|
||||
[providers.file]
|
||||
|
||||
# rules
|
||||
[backends]
|
||||
[backends.backend1]
|
||||
[backends.backend1.servers.server1]
|
||||
url = "http://172.17.0.2:80"
|
||||
weight = 1
|
||||
|
||||
[frontends]
|
||||
[frontends.frontend1]
|
||||
backend = "backend1"
|
||||
[frontends.frontend1.routes.test_1]
|
||||
rule = "Path(`/test/foo`)"
|
|
@ -1,30 +1,23 @@
|
|||
################################################################
|
||||
# Global configuration
|
||||
################################################################
|
||||
[accessLog]
|
||||
filePath = "access.log"
|
||||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
filePath = "traefik.log"
|
||||
logLevel = "ERROR"
|
||||
|
||||
[accessLog]
|
||||
filePath = "access.log"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web]
|
||||
address = ":8000"
|
||||
[entrypoints.api]
|
||||
address = ":7888"
|
||||
|
||||
checkNewVersion = false
|
||||
|
||||
################################################################
|
||||
# Api configuration backend
|
||||
################################################################
|
||||
[api]
|
||||
entryPoint = "api"
|
||||
|
||||
################################################################
|
||||
# File configuration backend
|
||||
################################################################
|
||||
[providers]
|
||||
[providers.file]
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
[global]
|
||||
debug=true
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web]
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
@ -12,6 +16,8 @@ logLevel = "DEBUG"
|
|||
[entrypoints.traefik.transport.lifeCycle]
|
||||
RequestAcceptGraceTimeout = "10s"
|
||||
|
||||
[ping]
|
||||
|
||||
[providers]
|
||||
[providers.file]
|
||||
|
||||
|
@ -28,4 +34,3 @@ logLevel = "DEBUG"
|
|||
URL = "{{.Server}}"
|
||||
Weight = 1
|
||||
|
||||
[ping]
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web]
|
||||
|
@ -5,8 +11,5 @@
|
|||
|
||||
[api]
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[providers]
|
||||
[providers.rest]
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web]
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
[global]
|
||||
debug=true
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web]
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.tcp]
|
||||
address = ":8093"
|
||||
|
|
|
@ -1,12 +1,16 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.tcp]
|
||||
address = ":8093"
|
||||
|
||||
[api]
|
||||
|
||||
[global]
|
||||
debug = true
|
||||
|
||||
[providers.file]
|
||||
|
||||
[tcp]
|
||||
|
|
|
@ -1,12 +1,16 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.tcp]
|
||||
address = ":8093"
|
||||
|
||||
[api]
|
||||
|
||||
[global]
|
||||
debug = true
|
||||
|
||||
[providers.file]
|
||||
|
||||
[tcp]
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
||||
[serversTransport.forwardingTimeouts]
|
||||
dialTimeout = "300ms"
|
||||
responseHeaderTimeout = "300ms"
|
||||
|
||||
|
||||
[entrypoints]
|
||||
[entrypoints.web]
|
||||
address = ":8000"
|
||||
|
@ -16,7 +18,6 @@ logLevel = "DEBUG"
|
|||
|
||||
[api]
|
||||
|
||||
|
||||
[providers]
|
||||
[providers.file]
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[global]
|
||||
debug = true
|
||||
|
||||
[serversTransport]
|
||||
rootCAs = [ """{{ .RootCertContent }}""" ]
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[global]
|
||||
debug = true
|
||||
|
||||
[api]
|
||||
|
||||
[entrypoints]
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
################################################################
|
||||
# Global configuration
|
||||
################################################################
|
||||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
filePath = "traefik.log"
|
||||
|
||||
[global]
|
||||
checkNewVersion = false
|
||||
|
||||
[accessLog]
|
||||
filePath = "access.log"
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
|
||||
|
@ -10,7 +14,6 @@ insecureSkipVerify=true
|
|||
|
||||
[api]
|
||||
|
||||
|
||||
[providers]
|
||||
[providers.file]
|
||||
|
||||
|
|
|
@ -432,30 +432,6 @@ func (s *SimpleSuite) TestXForwardedHeaders(c *check.C) {
|
|||
c.Assert(err, checker.IsNil)
|
||||
}
|
||||
|
||||
func (s *SimpleSuite) TestKeepTrailingSlash(c *check.C) {
|
||||
file := s.adaptFile(c, "fixtures/keep_trailing_slash.toml", struct {
|
||||
KeepTrailingSlash bool
|
||||
}{true})
|
||||
defer os.Remove(file)
|
||||
|
||||
cmd, output := s.traefikCmd(withConfigFile(file))
|
||||
defer output(c)
|
||||
|
||||
err := cmd.Start()
|
||||
c.Assert(err, checker.IsNil)
|
||||
defer cmd.Process.Kill()
|
||||
|
||||
oldCheckRedirect := http.DefaultClient.CheckRedirect
|
||||
http.DefaultClient.CheckRedirect = func(req *http.Request, via []*http.Request) error {
|
||||
return http.ErrUseLastResponse
|
||||
}
|
||||
|
||||
err = try.GetRequest("http://127.0.0.1:8000/test/foo/", 1*time.Second, try.StatusCodeIs(http.StatusNotFound))
|
||||
c.Assert(err, checker.IsNil)
|
||||
|
||||
http.DefaultClient.CheckRedirect = oldCheckRedirect
|
||||
}
|
||||
|
||||
func (s *SimpleSuite) TestMultiprovider(c *check.C) {
|
||||
s.createComposeProject(c, "base")
|
||||
s.composeProject.Start(c)
|
||||
|
|
Loading…
Add table
Reference in a new issue