From d77bc169b2fc9b816e6320396f9dabb4e3f0a24d Mon Sep 17 00:00:00 2001 From: Dima K Date: Tue, 17 Mar 2026 12:43:52 -0700 Subject: [PATCH] feat(tests): add stress tests for searching applications and registrations --- strr-host-pm-web/tests/stress/.env.example | 4 +- strr-host-pm-web/tests/stress/README.md | 16 +- .../tests/stress/search-applications.js | 171 ++++++++++++++++ .../tests/stress/search-registrations.js | 183 ++++++++++++++++++ 4 files changed, 367 insertions(+), 7 deletions(-) create mode 100644 strr-host-pm-web/tests/stress/search-applications.js create mode 100644 strr-host-pm-web/tests/stress/search-registrations.js diff --git a/strr-host-pm-web/tests/stress/.env.example b/strr-host-pm-web/tests/stress/.env.example index dcf742417..0a7131d8b 100644 --- a/strr-host-pm-web/tests/stress/.env.example +++ b/strr-host-pm-web/tests/stress/.env.example @@ -2,5 +2,7 @@ STRR_API_URL= # Account ID of the user that will be used to perform API requests (submit application, etc) ACCOUNT_ID= +# IDIR Account ID of the user that will be used to perform API requests +IDIR_ACCOUNT_ID= # Bearer access token for authorizing API requests (could be obtained from /token response in UI) -ACCESS_TOKEN= \ No newline at end of file +ACCESS_TOKEN= diff --git a/strr-host-pm-web/tests/stress/README.md b/strr-host-pm-web/tests/stress/README.md index e71dbe5d9..966cbbd30 100644 --- a/strr-host-pm-web/tests/stress/README.md +++ b/strr-host-pm-web/tests/stress/README.md @@ -15,7 +15,8 @@ Fill in the required values into `.env`: | Variable | Required | Description | | --- | --- | --- | | `STRR_API_URL` | Yes | Base URL of the STRR API (e.g. `https://strr-api-dev-...run.app/`) | -| `ACCOUNT_ID` | Yes | BC Registries account ID for the `Account-Id` header | +| `ACCOUNT_ID` | Yes | BCSC account ID for the `Account-Id` header | +| `IDIR_ACCOUNT_ID` | Yes | IDIR account ID for the `Account-Id` header (used by examiner scripts) | | `ACCESS_TOKEN` | Yes | Bearer token for the `Authorization` header | ## Running the Tests @@ -32,9 +33,12 @@ Replace `