[keycloak-dev] Testing a custom Provider

Youssef EL HOUTI youssef.elhouti at gmail.com
Fri Feb 23 01:27:15 EST 2018


Hi,

I'm building a custom RealmResourceProvider to be able run a full realm
export and import while the app is running. Since these are sensitive
tasks, I want to secure the endpoint. I think i managed to do that by
"copying" what is done with the adminResource.
Now I want to (integration) test my custom provider
How should proceed to build tests like the ones available in the test suite
(using: AbstractKeycloakTest)

Also is this the right approach?

Things I would like to test:
User is connected to master and has create-realm role  to be able to import
new realm
User is importing from the realm specified in the file to avoid mistakes
User has the role manage-realm to be able to import...
...

Thanks for your help

Youssef


More information about the keycloak-dev mailing list