mirror of
https://github.com/keycloak/keycloak.git
synced 2025-12-21 06:20:05 -06:00
Add JDK suite to the new testing framework and run it as part of the Java Distribution IT (#36638)
Closes #35388 Signed-off-by: Miquel Simon <msimonma@redhat.com>
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -341,6 +341,9 @@ jobs:
|
||||
- name: Prepare Quarkus distribution with current JDK
|
||||
run: ./mvnw install -e -pl testsuite/integration-arquillian/servers/auth-server/quarkus
|
||||
|
||||
- name: Run new base tests
|
||||
run: ./mvnw test -f tests/pom.xml -Dtest=JDKTestSuite
|
||||
|
||||
- name: Run base tests
|
||||
run: |
|
||||
TESTS=`testsuite/integration-arquillian/tests/base/testsuites/suite.sh jdk`
|
||||
|
||||
@@ -147,22 +147,12 @@ public class KeycloakServerConfigBuilder {
|
||||
option("log-console-format", format);
|
||||
}
|
||||
|
||||
StringBuilder logLevel = new StringBuilder();
|
||||
if (rootLevel != null) {
|
||||
logLevel.append(rootLevel);
|
||||
option("log-level", rootLevel);
|
||||
}
|
||||
|
||||
for (Map.Entry<String, String> e : categoryLevels.entrySet()) {
|
||||
if (!logLevel.isEmpty()) {
|
||||
logLevel.append(",");
|
||||
}
|
||||
logLevel.append(e.getKey());
|
||||
logLevel.append(":");
|
||||
logLevel.append(e.getValue());
|
||||
}
|
||||
|
||||
if (!logLevel.isEmpty()) {
|
||||
option("log-level", logLevel.toString());
|
||||
option("log-level-" + e.getKey(), e.getValue());
|
||||
}
|
||||
|
||||
if (color != null) {
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.keycloak.tests.suites;
|
||||
|
||||
import org.junit.platform.suite.api.SelectClasses;
|
||||
import org.junit.platform.suite.api.Suite;
|
||||
import org.keycloak.tests.admin.AdminHeadersTest;
|
||||
|
||||
@Suite
|
||||
// TODO: Select relevant test classes or packages once they have been migrated
|
||||
@SelectClasses(AdminHeadersTest.class)
|
||||
public class JDKTestSuite {
|
||||
}
|
||||
Reference in New Issue
Block a user