Generates & import data into Keycloak for performance tests
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.
Nicolas Massé f001d21bde support for custom templates 5 years ago
async cut the ties 5 years ago
cli support custom templates 5 years ago
examples support custom templates 5 years ago
statik initial release 5 years ago
templates initial release 5 years ago
.gitignore fix release script 5 years ago
LICENSE initial release 5 years ago
README.md support for custom templates 5 years ago
generate.go support custom templates 5 years ago
go.mod cut the ties 5 years ago
go.sum cut the ties 5 years ago
importer.go cut the ties 5 years ago
release.sh fix the release script 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