Disable RateLimit temporarily
This commit is contained in:
parent
d5f4934acf
commit
e3627e9cba
12 changed files with 122 additions and 144 deletions
|
@ -309,6 +309,8 @@ func (s *AccessLogSuite) TestAccessLogFrontendRedirect(c *check.C) {
|
|||
}
|
||||
|
||||
func (s *AccessLogSuite) TestAccessLogRateLimit(c *check.C) {
|
||||
c.Skip("RateLimit is disable for now")
|
||||
|
||||
ensureWorkingDirectoryIsClean()
|
||||
|
||||
expected := []accessLogValue{
|
||||
|
|
|
@ -54,7 +54,8 @@ func init() {
|
|||
check.Suite(&LogRotationSuite{})
|
||||
check.Suite(&MarathonSuite{})
|
||||
check.Suite(&MarathonSuite15{})
|
||||
check.Suite(&RateLimitSuite{})
|
||||
// TODO: disable temporarily
|
||||
// check.Suite(&RateLimitSuite{})
|
||||
check.Suite(&RestSuite{})
|
||||
check.Suite(&RetrySuite{})
|
||||
check.Suite(&SimpleSuite{})
|
||||
|
|
|
@ -55,18 +55,19 @@ frontendRedirect:
|
|||
- traefik.http.middlewares.redirecthttp.redirectScheme.scheme=http
|
||||
- traefik.http.middlewares.redirecthttp.redirectScheme.port=8000
|
||||
- traefik.http.services.service3.loadbalancer.server.port=80
|
||||
rateLimit:
|
||||
image: containous/whoami
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.rt-rateLimit.entryPoints=httpRateLimit
|
||||
- traefik.http.routers.rt-rateLimit.rule=Host("ratelimit.docker.local")
|
||||
- traefik.http.routers.rt-rateLimit.middlewares=rate
|
||||
- traefik.http.middlewares.rate.ratelimit.extractorfunc=client.ip
|
||||
- traefik.http.middlewares.rate.ratelimit.rateset.Rate0.average=1
|
||||
- traefik.http.middlewares.rate.ratelimit.rateset.Rate0.burst=2
|
||||
- traefik.http.middlewares.rate.ratelimit.rateset.Rate0.period=10s
|
||||
- traefik.http.services.service3.loadbalancer.server.port=80
|
||||
# TODO: disable temporarily (rateLimit)
|
||||
#rateLimit:
|
||||
# image: containous/whoami
|
||||
# labels:
|
||||
# - traefik.enable=true
|
||||
# - traefik.http.routers.rt-rateLimit.entryPoints=httpRateLimit
|
||||
# - traefik.http.routers.rt-rateLimit.rule=Host("ratelimit.docker.local")
|
||||
# - traefik.http.routers.rt-rateLimit.middlewares=rate
|
||||
# - traefik.http.middlewares.rate.ratelimit.extractorfunc=client.ip
|
||||
# - traefik.http.middlewares.rate.ratelimit.rateset.Rate0.average=1
|
||||
# - traefik.http.middlewares.rate.ratelimit.rateset.Rate0.burst=2
|
||||
# - traefik.http.middlewares.rate.ratelimit.rateset.Rate0.period=10s
|
||||
# - traefik.http.services.service3.loadbalancer.server.port=80
|
||||
frontendWhitelist:
|
||||
image: containous/whoami
|
||||
labels:
|
||||
|
|
|
@ -41,6 +41,8 @@ func (s *TracingSuite) startZipkin(c *check.C) {
|
|||
}
|
||||
|
||||
func (s *TracingSuite) TestZipkinRateLimit(c *check.C) {
|
||||
c.Skip("RateLimit is disable for now")
|
||||
|
||||
s.startZipkin(c)
|
||||
defer s.composeProject.Stop(c, "zipkin")
|
||||
file := s.adaptFile(c, "fixtures/tracing/simple-zipkin.toml", TracingTemplate{
|
||||
|
@ -155,6 +157,8 @@ func (s *TracingSuite) startJaeger(c *check.C) {
|
|||
}
|
||||
|
||||
func (s *TracingSuite) TestJaegerRateLimit(c *check.C) {
|
||||
c.Skip("RateLimit is disable for now")
|
||||
|
||||
s.startJaeger(c)
|
||||
defer s.composeProject.Stop(c, "jaeger")
|
||||
file := s.adaptFile(c, "fixtures/tracing/simple-jaeger.toml", TracingTemplate{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue