From d9fa1de575fa825f5b9c6fbef08873403c69472a Mon Sep 17 00:00:00 2001 From: James Nord Date: Wed, 11 Sep 2024 17:42:13 +0100 Subject: [PATCH] update keycloak container vie renovate --- .github/renovate.json | 7 +++++++ src/test/java/plugins/OicAuthPluginTest.java | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/renovate.json b/.github/renovate.json index 8c4946738c..980266d991 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -81,7 +81,14 @@ "matchStrings": ["ARG DOCKER_VERSION=(?.*?)\n"], "depNameTemplate": "docker", "datasourceTemplate": "docker" + }, + { + "fileMatch": ["src/test/java/plugins/OicAuthPluginTest.java"], + "matchStrings": [".* KEYCLOAK_IMAGE=\"(?.*?):(?.*?)@(?sha256:.*?)\";\n"], + "depNameTemplate": "{{{repo}}}", + "datasourceTemplate": "docker" } + ], "customDatasources": { "firefox": { diff --git a/src/test/java/plugins/OicAuthPluginTest.java b/src/test/java/plugins/OicAuthPluginTest.java index 9984862d48..11bb61f9a1 100644 --- a/src/test/java/plugins/OicAuthPluginTest.java +++ b/src/test/java/plugins/OicAuthPluginTest.java @@ -42,8 +42,10 @@ public class OicAuthPluginTest extends AbstractJUnitTest { private static final String REALM = "test-realm"; private static final String CLIENT = "jenkins"; + private static final String KEYCLOAK_IMAGE="keycloak/keycloak:25.0.4@sha256:bf788a3b7fd737143f98d4cb514cb9599c896acee01a26b2117a10bd99e23e11"; + @Rule - public KeycloakContainer keycloak = new KeycloakContainer(); + public KeycloakContainer keycloak = new KeycloakContainer(KEYCLOAK_IMAGE); @Inject public KeycloakUtils keycloakUtils;