add ServersTransport on services

This commit is contained in:
Julien Salleyron
2020-09-11 15:40:03 +02:00
committed by GitHub
parent 6075f7e8fd
commit 76f42a3013
64 changed files with 2359 additions and 242 deletions

View File

@@ -97,6 +97,10 @@ func (s *KeepAliveSuite) TestShouldRespectConfiguredBackendHttpKeepAliveTime(c *
c.Check(err, checker.IsNil)
defer cmd.Process.Kill()
// Wait for Traefik
err = try.GetRequest("http://127.0.0.1:8080/api/rawdata", time.Duration(1)*time.Second, try.StatusCodeIs(200), try.BodyContains("PathPrefix(`/keepalive`)"))
c.Check(err, checker.IsNil)
err = try.GetRequest("http://127.0.0.1:8000/keepalive", time.Duration(1)*time.Second, try.StatusCodeIs(200))
c.Check(err, checker.IsNil)