Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVladimir Shushlin <v.shushlin@gmail.com>2021-12-08 18:50:25 +0300
committerVladimir Shushlin <v.shushlin@gmail.com>2021-12-13 15:46:18 +0300
commit197d53c3f8c20942f76f111cc7bf6aac04c0dad4 (patch)
treedce0eda3e778f18229114607f45bec4726ce576c /test
parent94f6f41485e4698f59eb1862729e454c1f5f302b (diff)
refactor: abstract ratelimiter package
We want to add domain-based ratelimiter. The logic will be identical, but we'll use host instead of IP address.
Diffstat (limited to 'test')
-rw-r--r--test/acceptance/ratelimiter_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/acceptance/ratelimiter_test.go b/test/acceptance/ratelimiter_test.go
index 2986d46b..5b3be98a 100644
--- a/test/acceptance/ratelimiter_test.go
+++ b/test/acceptance/ratelimiter_test.go
@@ -104,7 +104,7 @@ func TestSourceIPRateLimitMiddleware(t *testing.T) {
if tc.expectFail && i >= int(tc.rateLimit) {
require.Equal(t, http.StatusTooManyRequests, rsp.StatusCode, "group.gitlab-example.com request: %d failed", i)
- assertLogFound(t, logBuf, []string{"source IP hit rate limit", "\"source_ip\":\"" + tc.blockedIP + "\""})
+ assertLogFound(t, logBuf, []string{"request hit rate limit", "\"source_ip\":\"" + tc.blockedIP + "\""})
continue
}