test(load): add machine jwt profile test for a single user (#8593)

# How the Problems Are Solved

Adds a new load test to use the token endpoint with a single user by
multiple threads.
This commit is contained in:
Silvan
2024-09-11 11:23:24 +02:00
committed by GitHub
parent 58a7eb1f26
commit 15c9f71bee
3 changed files with 45 additions and 1 deletions

View File

@@ -42,6 +42,12 @@ machine_jwt_profile_grant: ensure_modules ensure_key_pair bundle
cd ../../xk6-modules && xk6 build --with xk6-zitadel=.
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/machine_jwt_profile_grant.js --vus ${VUS} --duration ${DURATION}
.PHONY: machine_jwt_profile_grant_single_user
machine_jwt_profile_grant_single_user: ensure_modules ensure_key_pair bundle
go install go.k6.io/xk6/cmd/xk6@latest
cd ../../xk6-modules && xk6 build --with xk6-zitadel=.
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/machine_jwt_profile_grant_single_user.js --vus ${VUS} --duration ${DURATION}
.PHONY: lint
lint:
npm i