Open lhanusov opened 1 year ago
Using testcontainers: https://github.com/testcontainers/testcontainers-java with Arquillian or Quarkus can replace the ZIP startup with docker run lifecycle within Integration test suite like over here: https://github.com/keycloak/keycloak/blob/main/quarkus/tests/junit5/src/main/java/org/keycloak/it/junit5/extension/DatabaseContainer.java
Integrate with (Postgres, MariaDB, MySQL): https://github.com/keycloak/keycloak/blob/main/testsuite/integration-arquillian/tests/base/pom.xml#L368-L436 or replace with TestContainers
Description
Example PR: https://github.com/keycloak/keycloak/pull/20654 (author: @miquelsi) Bug which blocked the PR: https://github.com/keycloak/keycloak/issues/20455
Because of the Keycloak 22 and RHBK 22 release, this action is postponed after the RHBK release in September.
Instead of trying to support multiple JDKs in Testsuite, it's better to download the Keycloak container image and run it within Arquillian instead of unziping and running the standalone distribution with different JDK version.