Closed Octoate closed 1 year ago
I fear, this is nothing I can fix as the script_upload
feature was removed from Keycloak as mentioned here:
https://www.keycloak.org/2022/04/keycloak-1800-released.html#_the_deprecated_upload_script_feature_was_removed
Ah, okay. I understand - that was not clear to me. Hmm... how can I import the test realm into the running Keycloak instance now? Is there a kind of best practice on how to configure the running Keycloak test container?
Remove the relevant parts from the realm JSON file...
What are the relevant parts?
Hmm... that's not so easy to figure out. Most likely, from my experience, there are some authorization
nodes in the JSON file. Try to remove them, then import should work. If not... 🤷♂️ trial and error until success.
This library is mostly a wrapper around the Keycloak container and provides convenient methods to spin up a Keycloak instance for your tests. There is not additional or special magic behind, I make just use of the things Keycloak offers.
Thanks a lot for your fast help. I will try my best to get it working :-).
So, how did you do it?
Describe the bug
Hi, I am currently trying to write some integration tests for our system, but stumbled upon a problem when starting the docker container with Keycloak. The import of the realm file does not work and fails with a RuntimeException:
The configuration is quite simple at the moment - I just create a container with
I will also attach the full startup log (without our spring boot startup) to this bug report.
Since you already set the "keycloak.profile.feature.upload_scripts=enabled" this error message should not occur, so any idea what happens here is highly appreciated.
Version
2.3.0
Expected behavior
The Keycloak docker instance is started and the realm configuration is imported without an exception.
Actual behavior
The realm import fails with a "Script upload is disabled" RuntimeException.
How to Reproduce?
No response
Relevant log output
Anything else?
No response