You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
5 years ago | |
|---|---|---|
| async | 5 years ago | |
| cli | 5 years ago | |
| examples | 5 years ago | |
| statik | 5 years ago | |
| templates | 5 years ago | |
| .gitignore | 5 years ago | |
| LICENSE | 5 years ago | |
| README.md | 5 years ago | |
| generate.go | 5 years ago | |
| go.mod | 5 years ago | |
| go.sum | 5 years ago | |
| importer.go | 5 years ago | |
| release.sh | 5 years ago | |
README.md
Keycloak Realm Generator & Importer
This tool is used to load data into Keycloak before running a performance test.
Usage
Generation
Generate 5 realms, each one containing 10 clients and 100 users. Generated files are saved in the current directory.
kci generate --realms 5 --clients 10 --users 100
Same as above but save files in the specified directory.
kci generate --realms 5 --clients 10 --users 100 --target realms/
Generate realms using the provided template.
kci generate --realms 5 --clients 10 --users 100 --realm my.template
Import
Configure your target Keycloak instance.
kci config set realm --value master
kci config set login --value admin
kci config set password --value S3cr3t
kci config set keycloak_url --value http://localhost:8080/auth
Import the previously generated realms.
kci import *.json
By default, 5 workers are used to speed up the loading process. You can change this with:
kci config set workers --value 10