benchmark/README.md
This package contains code for benchmarking specific endpoints of the API using k6.
The use cases under tests are defined in src/use_cases. The implementation of ZITADEL resources and calls are located under src.
VUS: Amount of parallel processes execute the test (default is 20)DURATION: Defines how long the tests are executed (default is 200s)ZITADEL_HOST: URL of ZITADEL (default is http://localhost:8080)ADMIN_LOGIN_NAME: Loginanme of a human user with IAM_OWNER-roleADMIN_PASSWORD: password of the human userTo setup the tests we use the credentials of management console and log in using an admin. The user must be able to create organizations and all resources inside organizations.
ADMIN_LOGIN_NAME: [email protected]ADMIN_PASSWORD: Password1!Before you run the tests you need an initialized user. The tests don't implement the change password screen during login.
make human_password_loginmake machine_pat_loginmake machine_client_credentials_loginclient_credentials grant type.make user_infomake manipulate_usermake introspectmake add_sessionmake oidc_sessionmake otp_sessionmake password_sessionmake machine_jwt_profile_grantmake machine_jwt_profile_grant_single_usermake users_by_metadata_keymake users_by_metadata_valuemake verify_all_user_grants_exists