mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-23 14:11:30 +00:00
fix(load-test): correct k6 command (#8760)
This commit is contained in:
parent
3c4a92a981
commit
4ebc23aa1f
@ -4,42 +4,43 @@ ZITADEL_HOST ?=
|
|||||||
ADMIN_LOGIN_NAME ?=
|
ADMIN_LOGIN_NAME ?=
|
||||||
ADMIN_PASSWORD ?=
|
ADMIN_PASSWORD ?=
|
||||||
|
|
||||||
|
K6 := ./../../xk6-modules/k6
|
||||||
|
|
||||||
.PHONY: human_password_login
|
.PHONY: human_password_login
|
||||||
human_password_login: bundle
|
human_password_login: bundle
|
||||||
k6 run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/human_password_login.js --vus ${VUS} --duration ${DURATION}
|
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/human_password_login.js --vus ${VUS} --duration ${DURATION}
|
||||||
|
|
||||||
.PHONY: machine_pat_login
|
.PHONY: machine_pat_login
|
||||||
machine_pat_login: bundle
|
machine_pat_login: bundle
|
||||||
k6 run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/machine_pat_login.js --vus ${VUS} --duration ${DURATION}
|
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/machine_pat_login.js --vus ${VUS} --duration ${DURATION}
|
||||||
|
|
||||||
.PHONY: machine_client_credentials_login
|
.PHONY: machine_client_credentials_login
|
||||||
machine_client_credentials_login: bundle
|
machine_client_credentials_login: bundle
|
||||||
k6 run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/machine_client_credentials_login.js --vus ${VUS} --duration ${DURATION}
|
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/machine_client_credentials_login.js --vus ${VUS} --duration ${DURATION}
|
||||||
|
|
||||||
.PHONY: user_info
|
.PHONY: user_info
|
||||||
user_info: bundle
|
user_info: bundle
|
||||||
k6 run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/user_info.js --vus ${VUS} --duration ${DURATION}
|
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/user_info.js --vus ${VUS} --duration ${DURATION}
|
||||||
|
|
||||||
.PHONY: manipulate_user
|
.PHONY: manipulate_user
|
||||||
manipulate_user: bundle
|
manipulate_user: bundle
|
||||||
k6 run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/manipulate_user.js --vus ${VUS} --duration ${DURATION}
|
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/manipulate_user.js --vus ${VUS} --duration ${DURATION}
|
||||||
|
|
||||||
.PHONY: introspect
|
.PHONY: introspect
|
||||||
introspect: ensure_modules bundle
|
introspect: ensure_modules bundle
|
||||||
go install go.k6.io/xk6/cmd/xk6@latest
|
go install go.k6.io/xk6/cmd/xk6@latest
|
||||||
cd ../../xk6-modules && xk6 build --with xk6-zitadel=.
|
cd ../../xk6-modules && xk6 build --with xk6-zitadel=.
|
||||||
./../../xk6-modules/k6 run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/introspection.js --vus ${VUS} --duration ${DURATION}
|
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/introspection.js --vus ${VUS} --duration ${DURATION}
|
||||||
|
|
||||||
.PHONY: add_session
|
.PHONY: add_session
|
||||||
add_session: bundle
|
add_session: bundle
|
||||||
k6 run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/session.js --vus ${VUS} --duration ${DURATION}
|
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/session.js --vus ${VUS} --duration ${DURATION}
|
||||||
|
|
||||||
.PHONY: machine_jwt_profile_grant
|
.PHONY: machine_jwt_profile_grant
|
||||||
machine_jwt_profile_grant: ensure_modules ensure_key_pair bundle
|
machine_jwt_profile_grant: ensure_modules ensure_key_pair bundle
|
||||||
go install go.k6.io/xk6/cmd/xk6@latest
|
go install go.k6.io/xk6/cmd/xk6@latest
|
||||||
cd ../../xk6-modules && xk6 build --with xk6-zitadel=.
|
cd ../../xk6-modules && xk6 build --with xk6-zitadel=.
|
||||||
./../../xk6-modules/k6 run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/machine_jwt_profile_grant.js --iterations 1
|
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/machine_jwt_profile_grant.js --vus ${VUS} --duration ${DURATION}
|
||||||
# --vus ${VUS} --duration ${DURATION}
|
|
||||||
|
|
||||||
.PHONY: machine_jwt_profile_grant_single_user
|
.PHONY: machine_jwt_profile_grant_single_user
|
||||||
machine_jwt_profile_grant_single_user: ensure_modules ensure_key_pair bundle
|
machine_jwt_profile_grant_single_user: ensure_modules ensure_key_pair bundle
|
||||||
@ -64,6 +65,8 @@ endif
|
|||||||
bundle:
|
bundle:
|
||||||
npm i
|
npm i
|
||||||
npm run bundle
|
npm run bundle
|
||||||
|
go install go.k6.io/xk6/cmd/xk6@latest
|
||||||
|
cd ../../xk6-modules && xk6 build --with xk6-zitadel=.
|
||||||
|
|
||||||
.PHONY: ensure_key_pair
|
.PHONY: ensure_key_pair
|
||||||
ensure_key_pair:
|
ensure_key_pair:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user