diff --git a/performance/backend_script.js b/performance/backend_script.js index 0766c70a9..bb62d318e 100644 --- a/performance/backend_script.js +++ b/performance/backend_script.js @@ -34,8 +34,10 @@ export const options = { // mapSearchAllOpenComplaints: defaultOptions, // mapSearchAllComplaints: defaultOptions, // mapSearchWithCMFilter: defaultOptions, + + // Complaint Details getComplaintDetails: defaultOptions, - // addAndRemoveComplaintOutcome: defaultOptions, + addAndRemoveComplaintOutcome: defaultOptions, }, thresholds: { http_req_duration: ["p(99)<2000"], // 99% of requests must complete below 2s diff --git a/performance/tests/backend/search.js b/performance/tests/backend/search.js index 11b76f2d6..6a5989987 100644 --- a/performance/tests/backend/search.js +++ b/performance/tests/backend/search.js @@ -1,7 +1,7 @@ import http from "k6/http"; import { check } from "k6"; -// Search for open HWCR complaints in the South Peace region +// Search with default parameters (open HWCR complaints in the South Peace region) export const searchWithDefaultFilters = async (host, requestConfig) => { check( await http.get( @@ -10,8 +10,8 @@ export const searchWithDefaultFilters = async (host, requestConfig) => { requestConfig, ), { - "response status 200": (r) => r.status === 200, - "response has entries": (r) => JSON.parse(r.body).totalCount > 0, + "Search with default parameters response status 200": (r) => r.status === 200, + "Search with default parameters response has entries": (r) => JSON.parse(r.body).totalCount > 0, }, ); }; @@ -24,8 +24,8 @@ export const searchWithoutFilters = async (host, requestConfig) => { requestConfig, ), { - "response status 200": (r) => r.status === 200, - "response has entries": (r) => JSON.parse(r.body).totalCount > 0, + "Search for all HWCR complaints response status 200": (r) => r.status === 200, + "Search for all HWCR complaints response has entries": (r) => JSON.parse(r.body).totalCount > 0, }, ); }; @@ -39,8 +39,8 @@ export const openSearchWithoutFilters = async (host, requestConfig) => { requestConfig, ), { - "response status 200": (r) => r.status === 200, - "response has entries": (r) => JSON.parse(r.body).totalCount > 0, + "Search for all open HWCR complaints response status 200": (r) => r.status === 200, + "Search for all open HWCR complaints response has entries": (r) => JSON.parse(r.body).totalCount > 0, }, ); }; @@ -55,8 +55,8 @@ export const searchWithCMFilter = async (host, requestConfig) => { requestConfig, ), { - "response status 200": (r) => r.status === 200, - "response has entries": (r) => JSON.parse(r.body).totalCount > 0, + "Search with case management filters response status 200": (r) => r.status === 200, + "Search with case management filters response has entries": (r) => JSON.parse(r.body).totalCount > 0, }, ); };