CDCgov / prime-simplereport

SimpleReport is a fast, free, and easy way for COVID-19 testing facilities to report results to public health departments.
https://simplereport.gov
Creative Commons Zero v1.0 Universal
58 stars 53 forks source link

[SPIKE] Okta user keeps getting locked out for Cypress E2E tests #8320

Open mpbrown opened 4 days ago

mpbrown commented 4 days ago

Description

Our Cypress E2E tests use a test account named Cypress McTestUser in the Okta lower environment. The logs show that this account is used successfully for a period of time, but then begins to fail the stage of "Authentication of user via MFA" due to "INVALID_CREDENTIALS". These failures continue until Okta locks the account which results in all E2E test runs failing. The account must then be manually unlocked via the Okta admin panel.

Separately, this test account uses an email of a developer no longer working on SimpleReport.

See this Slack thread for a short overview of the logs

Proposed Solutions