Skip to content

Commit

Permalink
Specify keycloak version in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas authored and mmusgrov committed Dec 12, 2019
1 parent d079554 commit 9c51d8e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@
<findbugs.version>3.0.2</findbugs.version>
<jsoup.version>1.11.3</jsoup.version>
<wagon-provider-api.version>3.3.3</wagon-provider-api.version>

<!-- The image to use for tests that run Keycloak -->
<!-- IMPORTANT: If this is changed you must also update native-build-steps.yaml to match the version -->
<keycloak.docker.image>quay.io/keycloak/keycloak:7.0.1</keycloak.docker.image>
</properties>

<dependencyManagement>
Expand Down
2 changes: 1 addition & 1 deletion ci-templates/native-build-steps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- script: docker run --rm --publish 8000:8000 --name build-dynamodb -d amazon/dynamodb-local:1.11.477
displayName: 'start dynamodb'
- ${{ if eq(parameters.keycloak, 'true') }}:
- script: docker run --rm --publish 8180:8080 --name build-keycloak -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin -e JAVA_OPTS="-server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dkeycloak.profile.feature.upload_scripts=enabled" -d quay.io/keycloak/keycloak
- script: docker run --rm --publish 8180:8080 --name build-keycloak -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin -e JAVA_OPTS="-server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dkeycloak.profile.feature.upload_scripts=enabled" -d quay.io/keycloak/keycloak:7.0.1
displayName: 'start keycloak'
- ${{ if eq(parameters.mysql, 'true') }}:
- bash: |
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/keycloak-authorization/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
<configuration>
<images>
<image>
<name>quay.io/keycloak/keycloak</name>
<name>${keycloak.docker.image}</name>
<alias>quarkus-test-keycloak</alias>
<run>
<ports>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/oidc-code-flow/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
<configuration>
<images>
<image>
<name>quay.io/keycloak/keycloak</name>
<name>${keycloak.docker.image}</name>
<alias>quarkus-test-keycloak</alias>
<run>
<ports>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/oidc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
<configuration>
<images>
<image>
<name>quay.io/keycloak/keycloak</name>
<name>${keycloak.docker.image}</name>
<alias>quarkus-test-keycloak</alias>
<run>
<ports>
Expand Down

0 comments on commit 9c51d8e

Please sign in to comment.