Skip to content

Commit 2fe13dd

Browse files
committed
Addressing some feedback
1 parent 39b4811 commit 2fe13dd

5 files changed

Lines changed: 10 additions & 2 deletions

File tree

load_testing/config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ export const FRONTEND_BASE_URL: string = __ENV.FRONTEND_BASE_URL?.replace(
88
/\/$/,
99
"",
1010
)
11-
export const SSO_BASE_URL: string = __ENV.SSO_BASE_URL?.replace(/\/$/, "")
11+
export const SSO_BASE_URL: string = (
12+
__ENV.SSO_BASE_URL ?? "http://localhost"
13+
).replace(/\/$/, "")
1214

1315
export const IGNORE_HTTPS_ERRORS: boolean =
1416
(__ENV.IGNORE_HTTPS_ERRORS || "false").toLowerCase() == "true"

load_testing/frontend/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async function loginKeycloak(
103103
await page.locator("button[type=submit]").click()
104104
console.log("Login > Keycloak > submitting email address")
105105

106-
await page.waitForNavigation(KEYCLOAK_PASSWORD_URL_RE)
106+
await page.waitForURL(KEYCLOAK_PASSWORD_URL_RE)
107107
console.log("Login > Keycloak > on login password page")
108108

109109
const passwordInput = await page.locator("input[name=password]")

load_testing/learn.average-load.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ export const options = {
3939
thresholds: {
4040
// the rate of successful checks should be higher than 90%
4141
checks: ["rate>0.9"],
42+
http_req_failed: ["rate<0.01"],
43+
browser_http_req_failed: ["rate<0.05"],
4244
},
4345
insecureSkipTLSVerify: IGNORE_HTTPS_ERRORS,
4446
}

load_testing/learn.smoke.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export const options = {
3030
thresholds: {
3131
// the rate of successful checks should be higher than 90%
3232
checks: ["rate>0.9"],
33+
http_req_failed: ["rate<0.01"],
34+
browser_http_req_failed: ["rate<0.05"],
3335
},
3436
insecureSkipTLSVerify: IGNORE_HTTPS_ERRORS,
3537
}

load_testing/learn.stress.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ export const options = {
3939
thresholds: {
4040
// the rate of successful checks should be higher than 90%
4141
checks: ["rate>0.9"],
42+
http_req_failed: ["rate<0.01"],
43+
browser_http_req_failed: ["rate<0.05"],
4244
},
4345
insecureSkipTLSVerify: IGNORE_HTTPS_ERRORS,
4446
}

0 commit comments

Comments
 (0)