Running Automated Tests with Cognito User

0

Hello,

We have automated integration tests. Each one needs to log in to our site using a Cognito username and password for the automated test runner user, and then run the test. We are now seeing a problem where the logins are often failing. We believe this is because there is a quota on how many logins can be requested for one user, per second.

According to this document, I believe you can only login 10 times per user per second: https://docs.aws.amazon.com/cognito/latest/developerguide/limits.html#category_operations and unfortunately I think we need that increased to almost 50 to get our test suite to pass.

I believe you can request an increase to some quotas here: https://us-east-1.console.aws.amazon.com/servicequotas/home/services/cognito-idp/quotas but unfortunately, of the thirty quotas I see there, I cannot find one that looks like logins per user per second.

Is there a way to increase the logins-per-user-per-second quota in Cognito? (And, can you confirm that there IS such a quota, as I'm not even sure that is what we're hitting, though it would explain a great many things.)

Thanks, --Dan

Dan
asked 10 months ago448 views
1 Answer
0

Can you please provide more details on the error you are getting?

Also wondering if you have an option to create multiple automated test users to be able to login so you will not hit the quota limits?

AWS
Dhilip
answered 10 months ago
  • Thanks for your response.

    There is not an error, it is just a failure to authenticate. That is, the credentials are rejected.

    The option of creating multiple automated test users could be possible, I am looking into that. If the quota we are hitting is per-user, that should help. But it is not easy for us to divvy the tests between multiple users, so if I could get a confirmation somehow that we are hitting a per-user quota, that could help me justify the workaround.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions