From 3b3ceb2e9e0e666aabae3fa70640e98f51ce2e80 Mon Sep 17 00:00:00 2001 From: OMPRAKASH MISHRA Date: Mon, 28 Oct 2024 14:58:36 -0700 Subject: [PATCH] fix: load test k6 Signed-off-by: OMPRAKASH MISHRA --- charts/crunchy/values.yaml | 2 +- tests/load/backend-test.js | 4 ++-- tests/load/frontend-test.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/crunchy/values.yaml b/charts/crunchy/values.yaml index af200522c..40ee1c395 100644 --- a/charts/crunchy/values.yaml +++ b/charts/crunchy/values.yaml @@ -1,6 +1,6 @@ global: config: - dbName: app + dbName: app #test crunchy: # enable it for TEST and PROD, for PR based pipelines simply use single postgres enabled: true crunchyImage: artifacts.developer.gov.bc.ca/bcgov-docker-local/crunchy-postgres-gis:ubi8-16.2-3.3-0 diff --git a/tests/load/backend-test.js b/tests/load/backend-test.js index 31c11ca8b..470413624 100644 --- a/tests/load/backend-test.js +++ b/tests/load/backend-test.js @@ -1,5 +1,5 @@ import { check } from "k6"; -import * as http from "k6/http"; +import http from "k6/http"; import { Rate } from "k6/metrics"; @@ -21,7 +21,7 @@ function checkStatus(response, checkName, statusCode = 200) { } -export default function(token) { +export default function() { let url = `${__ENV.BACKEND_URL}/v1/users`; let params = { headers: { diff --git a/tests/load/frontend-test.js b/tests/load/frontend-test.js index ecd24a46f..ee49609bd 100644 --- a/tests/load/frontend-test.js +++ b/tests/load/frontend-test.js @@ -1,5 +1,5 @@ import { check } from "k6"; -import * as http from "k6/http"; +import http from "k6/http"; import { Rate } from "k6/metrics";