test(e2e): Decrease rate limit in config (#4183)
This commit is contained in:
1 parent
050bcdfec9
commit
3bf925ca32
2 files changed
+3
-3
No files matched your search
@@ -35,8 +35,8 @@ controller {
|
|||||||
resources = ["host"]
|
resources = ["host"]
|
||||||
actions = ["read"]
|
actions = ["read"]
|
||||||
per = "auth-token"
|
per = "auth-token"
|
||||||
limit = 5
|
limit = 3
|
||||||
period = "5s"
|
period = "10s"
|
||||||
}
|
}
|
||||||
|
|
||||||
api_rate_limit_max_quotas = 1
|
api_rate_limit_max_quotas = 1
|
||||||
|
|||||||
@@ -359,7 +359,7 @@ func TestCliRateLimit(t *testing.T) {
|
|||||||
// Log in as a second user and confirm you get a HTTP 503 response
|
// Log in as a second user and confirm you get a HTTP 503 response
|
||||||
t.Log("Logging in as another user...")
|
t.Log("Logging in as another user...")
|
||||||
boundary.AuthenticateCli(t, ctx, bc.AuthMethodId, acctName, acctPassword)
|
boundary.AuthenticateCli(t, ctx, bc.AuthMethodId, acctName, acctPassword)
|
||||||
for i := 0; i < policyLimit; i++ {
|
for i := 0; i <= policyLimit; i++ {
|
||||||
output = e2e.RunCommand(ctx, "boundary", e2e.WithArgs("hosts", "read", "-id", newHostId))
|
output = e2e.RunCommand(ctx, "boundary", e2e.WithArgs("hosts", "read", "-id", newHostId))
|
||||||
t.Log(output.Duration)
|
t.Log(output.Duration)
|
||||||
if output.Err != nil {
|
if output.Err != nil {
|
||||||
|
|||||||
Reference in new issue
Block a user