Skip to content

Commit

Permalink
Merge branch 'main' into MWPW-163214
Browse files Browse the repository at this point in the history
  • Loading branch information
Axelcureno committed Dec 9, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 3011993 + 0e37470 commit ee6bd94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion k6-scripts/wcs-fetches.js
Original file line number Diff line number Diff line change
@@ -29,7 +29,9 @@ export default function () {
const locale = { country: 'US', locale: 'en_US' };
const osiIndex = (__VU - 1 + __ITER) % osis.length; // rotates per user & iteration
const osi = osis[osiIndex];
const url = `${__ENV.TEST_WCS_URL}${osi}&country=${locale.country}&language=${locale.country === 'GB' ? 'EN' : 'MULT'}&locale=${locale.locale}&api_key=${api_key}&landscape=PUBLISHED`;
const landscape =
__ENV.TEST_WCS_URL?.indexOf('.stage.') > 0 ? 'ALL' : 'PUBLISHED';
const url = `${__ENV.TEST_WCS_URL}${osi}&country=${locale.country}&language=${locale.country === 'GB' ? 'EN' : 'MULT'}&locale=${locale.locale}&api_key=${api_key}&landscape=${landscape}`;
const res = http.get(url);

// Assertions to validate response

0 comments on commit ee6bd94

Please sign in to comment.