Skip to content

Commit

Permalink
fix: load test k6
Browse files Browse the repository at this point in the history
Signed-off-by: OMPRAKASH MISHRA <[email protected]>
  • Loading branch information
mishraomp committed Oct 28, 2024
1 parent b316e31 commit 3b3ceb2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/crunchy/values.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/load/backend-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { check } from "k6";
import * as http from "k6/http";
import http from "k6/http";
import { Rate } from "k6/metrics";


Expand All @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion tests/load/frontend-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { check } from "k6";
import * as http from "k6/http";
import http from "k6/http";
import { Rate } from "k6/metrics";


Expand Down

0 comments on commit 3b3ceb2

Please sign in to comment.