Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.58 KB

File metadata and controls

47 lines (38 loc) · 1.58 KB

embedded-keycloak

Maven dependency

pom.xml
<dependency>
    <groupId>com.playtika.testcontainers</groupId>
    <artifactId>embedded-keycloak</artifactId>
    <scope>test</scope>
</dependency>

Consumes (via bootstrap.properties)

  • embedded.keycloak.enabled (true|false, default is true)

  • embedded.keycloak.reuseContainer (true|false, default is false)

  • embedded.keycloak.dockerImage (default is 'jboss/keycloak:16.1.1')

  • embedded.keycloak.command (String[], default is '["-c", "standalone.xml", "-Dkeycloak.profile.feature.upload_scripts=enabled"]')

  • embedded.keycloak.admin-user (default is 'admin')

  • embedded.keycloak.admin-password (default is 'letmein')

  • embedded.keycloak.import-file (default is '')

  • embedded.toxiproxy.proxies.keycloak.enabled Enables both creation of the container with ToxiProxy TCP proxy and a proxy to the embedded-keycloak container.

Produces

  • embedded.keycloak.host

  • embedded.keycloak.http-port (mapped HTTP port)

  • embedded.keycloak.auth-server-url

  • embedded.keycloak.toxiproxy.host

  • embedded.keycloak.toxiproxy.port

  • embedded.keycloak.networkAlias

  • embedded.keycloak.internalPort

  • Bean ToxiproxyContainer.ContainerProxy keycloakContainerProxy

Example

To configure for example the keycloak-spring-boot-starter use these properties in your test application.yaml:

/src/test/resources/application.yaml
keycloak:
  auth-server-url: ${embedded.keycloak.auth-server-url}