mirror of
https://github.com/zitadel/zitadel
synced 2024-11-22 08:49:13 +00:00
82d950019f
# Which Problems Are Solved Extends load tests by testing session creation. # How the Problems Are Solved The test creates a session including a check for user id. # Additional Context - part of https://github.com/zitadel/zitadel/issues/7639
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
VUS ?= 20
|
|
DURATION ?= "200s"
|
|
ZITADEL_HOST ?=
|
|
ADMIN_LOGIN_NAME ?=
|
|
ADMIN_PASSWORD ?=
|
|
|
|
.PHONY: human_password_login
|
|
human_password_login: bundle
|
|
k6 run dist/human_password_login.js --vus ${VUS} --duration ${DURATION}
|
|
|
|
.PHONY: machine_pat_login
|
|
machine_pat_login: bundle
|
|
k6 run dist/machine_pat_login.js --vus ${VUS} --duration ${DURATION}
|
|
|
|
.PHONY: machine_client_credentials_login
|
|
machine_client_credentials_login: bundle
|
|
k6 run dist/machine_client_credentials_login.js --vus ${VUS} --duration ${DURATION}
|
|
|
|
.PHONY: user_info
|
|
user_info: bundle
|
|
k6 run dist/user_info.js --vus ${VUS} --duration ${DURATION}
|
|
|
|
.PHONY: manipulate_user
|
|
manipulate_user: bundle
|
|
k6 run dist/manipulate_user.js --vus ${VUS} --duration ${DURATION}
|
|
|
|
.PHONY: introspect
|
|
introspect: ensure_modules bundle
|
|
go install go.k6.io/xk6/cmd/xk6@latest
|
|
cd ../../xk6-modules && xk6 build --with xk6-zitadel=.
|
|
./../../xk6-modules/k6 run dist/introspection.js --vus ${VUS} --duration ${DURATION}
|
|
|
|
.PHONY: add_session
|
|
add_session: bundle
|
|
k6 run dist/session.js --vus ${VUS} --duration ${DURATION}
|
|
|
|
.PHONY: lint
|
|
lint:
|
|
npm i
|
|
npm run lint:fix
|
|
|
|
.PHONY: ensure_modules
|
|
ensure_modules:
|
|
ifeq (,$(wildcard $(PWD)/../../xk6-modules))
|
|
@echo "cloning xk6-modules"
|
|
cd ../.. && git clone https://github.com/zitadel/xk6-modules.git
|
|
endif
|
|
cd ../../xk6-modules && git pull
|
|
|
|
.PHONY: bundle
|
|
bundle:
|
|
npm i
|
|
npm run bundle
|