[KEYCLOAK-11330] - Clustering tests for GA
This commit is contained in:
parent
08da208fcd
commit
337a751aaa
5 changed files with 36 additions and 5 deletions
23
.github/workflows/ci-x.yml
vendored
23
.github/workflows/ci-x.yml
vendored
|
@ -51,3 +51,26 @@ jobs:
|
|||
run: mvn clean install -B -Pquarkus,auth-server-quarkus -DskipTests -f testsuite/pom.xml
|
||||
- name: Run base tests
|
||||
run: mvn clean install -B -Pquarkus,auth-server-quarkus -f testsuite/integration-arquillian/tests/base/pom.xml | misc/log/trimmer.sh; exit ${PIPESTATUS[0]}
|
||||
test-cluster:
|
||||
name: Test Clustering
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
MAVEN_OPTS: -Xmx2048m
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 11
|
||||
- name: Download Maven Repo
|
||||
uses: actions/download-artifact@v1
|
||||
with:
|
||||
name: maven-repo
|
||||
path: .
|
||||
- name: Extract Maven Repo
|
||||
shell: bash
|
||||
run: tar -xzvf maven-repo.tgz -C ~
|
||||
- name: Build testsuite
|
||||
run: mvn clean install -B -Pquarkus,auth-server-quarkus -DskipTests -f testsuite/pom.xml
|
||||
- name: Run cluster tests
|
||||
run: mvn clean install -B -Pauth-server-cluster-quarkus -Dsession.cache.owners=2 -Dtest=**.cluster.** -f testsuite/integration-arquillian/pom.xml | misc/log/trimmer.sh; exit ${PIPESTATUS[0]}
|
||||
|
|
0
lsp/conf/properties.json
Normal file
0
lsp/conf/properties.json
Normal file
|
@ -47,6 +47,12 @@
|
|||
<module>quarkus</module>
|
||||
</modules>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>auth-server-cluster-quarkus</id>
|
||||
<modules>
|
||||
<module>quarkus</module>
|
||||
</modules>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
</project>
|
||||
|
|
|
@ -107,13 +107,12 @@ public class KeycloakQuarkusServerDeployableContainer implements DeployableConta
|
|||
File wrkDir = configuration.getProvidersPath().resolve("bin").toFile();
|
||||
ProcessBuilder builder = pb.directory(wrkDir).inheritIO();
|
||||
|
||||
String javaOpts;
|
||||
String javaOpts = configuration.getJavaOpts();
|
||||
|
||||
if ((javaOpts = configuration.getJavaOpts()) == null) {
|
||||
javaOpts = "-Xms256m -Xmx256m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=512m -Djava.net.preferIPv4Stack=true";
|
||||
if (javaOpts != null) {
|
||||
builder.environment().put("JAVA_OPTS", javaOpts);
|
||||
}
|
||||
|
||||
builder.environment().put("JAVA_OPTS", javaOpts);
|
||||
|
||||
builder.environment().put("KEYCLOAK_ADMIN", "admin");
|
||||
builder.environment().put("KEYCLOAK_ADMIN_PASSWORD", "admin");
|
||||
|
||||
|
|
|
@ -622,6 +622,7 @@
|
|||
<property name="enabled">${auth.server.quarkus}</property>
|
||||
<property name="adapterImplClass">org.keycloak.testsuite.arquillian.containers.KeycloakQuarkusServerDeployableContainer</property>
|
||||
<property name="bindHttpPortOffset">${auth.server.port.offset}</property>
|
||||
<property name="javaOpts">-Xms512m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=512m -Djava.net.preferIPv4Stack=true</property>
|
||||
</configuration>
|
||||
</container>
|
||||
|
||||
|
@ -645,6 +646,7 @@
|
|||
"keycloak.connectionsInfinispan.clustered": "${keycloak.connectionsInfinispan.clustered:true}"
|
||||
}
|
||||
</property>
|
||||
<property name="javaOpts">-Xms512m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=512m -Djava.net.preferIPv4Stack=true</property>
|
||||
</configuration>
|
||||
</container>
|
||||
<container qualifier="auth-server-quarkus-backend2" mode="manual" >
|
||||
|
@ -665,6 +667,7 @@
|
|||
"keycloak.connectionsInfinispan.clustered": "${keycloak.connectionsInfinispan.clustered:true}"
|
||||
}
|
||||
</property>
|
||||
<property name="javaOpts">-Xms512m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=512m -Djava.net.preferIPv4Stack=true</property>
|
||||
</configuration>
|
||||
</container>
|
||||
</group>
|
||||
|
|
Loading…
Reference in a new issue