KEYCLOAK-1679 added cluster profile for eap7
This commit is contained in:
parent
c0de43d51f
commit
73b6751219
3 changed files with 191 additions and 0 deletions
|
@ -54,6 +54,13 @@
|
||||||
<module>eap7</module>
|
<module>eap7</module>
|
||||||
</modules>
|
</modules>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>auth-server-eap7-cluster</id>
|
||||||
|
<modules>
|
||||||
|
<module>eap7</module>
|
||||||
|
<module>wildfly-balancer</module>
|
||||||
|
</modules>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -137,6 +137,66 @@
|
||||||
</configuration>
|
</configuration>
|
||||||
</container>
|
</container>
|
||||||
|
|
||||||
|
<group qualifier="auth-server-eap7-cluster">
|
||||||
|
<container qualifier="auth-server-eap7-balancer" mode="suite" >
|
||||||
|
<configuration>
|
||||||
|
<property name="enabled">${auth.server.eap7.cluster}</property>
|
||||||
|
<property name="adapterImplClass">org.jboss.as.arquillian.container.managed.ManagedDeployableContainer</property>
|
||||||
|
<property name="jbossHome">${keycloak.balancer.home}</property>
|
||||||
|
<property name="jbossArguments">
|
||||||
|
-Djboss.socket.binding.port-offset=${auth.server.port.offset}
|
||||||
|
</property>
|
||||||
|
<property name="javaVmArguments">
|
||||||
|
-Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m
|
||||||
|
-Djava.net.preferIPv4Stack=true
|
||||||
|
</property>
|
||||||
|
<property name="outputToConsole">${frontend.console.output}</property>
|
||||||
|
<property name="managementPort">${auth.server.management.port}</property>
|
||||||
|
<property name="startupTimeoutInSeconds">${startup.timeout.sec}</property>
|
||||||
|
</configuration>
|
||||||
|
</container>
|
||||||
|
<container qualifier="auth-server-eap7-backend1" mode="manual" >
|
||||||
|
<configuration>
|
||||||
|
<property name="enabled">${auth.server.eap7.cluster}</property>
|
||||||
|
<property name="adapterImplClass">org.jboss.as.arquillian.container.managed.ManagedDeployableContainer</property>
|
||||||
|
<property name="jbossHome">${keycloak.backend1.home}</property>
|
||||||
|
<property name="serverConfig">standalone-ha.xml</property>
|
||||||
|
<property name="jbossArguments">
|
||||||
|
-Djboss.socket.binding.port-offset=${auth.server.backend1.port.offset}
|
||||||
|
-Djboss.node.name=node1
|
||||||
|
${adapter.test.props}
|
||||||
|
</property>
|
||||||
|
<property name="javaVmArguments">
|
||||||
|
-Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m
|
||||||
|
-Djava.net.preferIPv4Stack=true
|
||||||
|
</property>
|
||||||
|
<property name="outputToConsole">${backends.console.output}</property>
|
||||||
|
<property name="managementPort">${auth.server.backend1.management.port}</property>
|
||||||
|
<property name="startupTimeoutInSeconds">${startup.timeout.sec}</property>
|
||||||
|
</configuration>
|
||||||
|
</container>
|
||||||
|
<container qualifier="auth-server-eap7-backend2" mode="manual" >
|
||||||
|
<configuration>
|
||||||
|
<property name="enabled">${auth.server.eap7.cluster}</property>
|
||||||
|
<property name="adapterImplClass">org.jboss.as.arquillian.container.managed.ManagedDeployableContainer</property>
|
||||||
|
<property name="jbossHome">${keycloak.backend2.home}</property>
|
||||||
|
<property name="serverConfig">standalone-ha.xml</property>
|
||||||
|
<property name="jbossArguments">
|
||||||
|
-Djboss.socket.binding.port-offset=${auth.server.backend2.port.offset}
|
||||||
|
-Djboss.node.name=node2
|
||||||
|
${adapter.test.props}
|
||||||
|
</property>
|
||||||
|
<property name="javaVmArguments">
|
||||||
|
-Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m
|
||||||
|
-Djava.net.preferIPv4Stack=true
|
||||||
|
</property>
|
||||||
|
<property name="outputToConsole">${backends.console.output}</property>
|
||||||
|
<property name="managementPort">${auth.server.backend2.management.port}</property>
|
||||||
|
<property name="startupTimeoutInSeconds">${startup.timeout.sec}</property>
|
||||||
|
</configuration>
|
||||||
|
</container>
|
||||||
|
</group>
|
||||||
|
|
||||||
<!-- PREVIOUS VERSIONS OF KEYCLOAK FOR MIGRATION TESTS -->
|
<!-- PREVIOUS VERSIONS OF KEYCLOAK FOR MIGRATION TESTS -->
|
||||||
|
|
||||||
<container qualifier="auth-server-wildfly-kc16" mode="manual" >
|
<container qualifier="auth-server-wildfly-kc16" mode="manual" >
|
||||||
|
|
|
@ -661,6 +661,7 @@
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
|
||||||
<profile>
|
<profile>
|
||||||
<id>auth-server-eap7</id>
|
<id>auth-server-eap7</id>
|
||||||
<properties>
|
<properties>
|
||||||
|
@ -740,6 +741,129 @@
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
<profile>
|
||||||
|
<id>auth-server-eap7-cluster</id>
|
||||||
|
<properties>
|
||||||
|
<!--disable exclusion pattern for cluster test which is enabled by default in base/pom.xml-->
|
||||||
|
<exclude.cluster>-</exclude.cluster>
|
||||||
|
|
||||||
|
<auth.server.container>auth-server-eap7-cluster</auth.server.container>
|
||||||
|
<startup.timeout.sec>300</startup.timeout.sec>
|
||||||
|
<adapter.test.props/>
|
||||||
|
<h2.version>1.3.173</h2.version>
|
||||||
|
|
||||||
|
<keycloak.balancer.home>${containers.home}/balancer/wildfly-balancer-${project.version}</keycloak.balancer.home>
|
||||||
|
<keycloak.backend1.home>${containers.home}/node1/keycloak-${version.server.dist}</keycloak.backend1.home>
|
||||||
|
<keycloak.backend2.home>${containers.home}/node2/keycloak-${version.server.dist}</keycloak.backend2.home>
|
||||||
|
|
||||||
|
<keycloak.home>${keycloak.backend1.home}</keycloak.home>
|
||||||
|
<jboss.server.config.dir>${keycloak.home}/standalone/configuration</jboss.server.config.dir>
|
||||||
|
</properties>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.wildfly</groupId>
|
||||||
|
<artifactId>wildfly-arquillian-container-managed</artifactId>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<build>
|
||||||
|
<pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-enforcer-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>enforce-properties</id>
|
||||||
|
<goals>
|
||||||
|
<goal>enforce</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<rules>
|
||||||
|
<requireProperty>
|
||||||
|
<property>version.server.dist</property>
|
||||||
|
</requireProperty>
|
||||||
|
</rules>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<systemPropertyVariables>
|
||||||
|
<run.h2>true</run.h2>
|
||||||
|
|
||||||
|
<auth.server.eap7.cluster>true</auth.server.eap7.cluster>
|
||||||
|
<auth.server.undertow>false</auth.server.undertow>
|
||||||
|
<adapter.test.props>${adapter.test.props}</adapter.test.props>
|
||||||
|
|
||||||
|
<keycloak.balancer.home>${keycloak.balancer.home}</keycloak.balancer.home>
|
||||||
|
<keycloak.backend1.home>${keycloak.backend1.home}</keycloak.backend1.home>
|
||||||
|
<keycloak.backend2.home>${keycloak.backend2.home}</keycloak.backend2.home>
|
||||||
|
|
||||||
|
<!--100-->
|
||||||
|
<auth.server.backend1.port.offset>101</auth.server.backend1.port.offset>
|
||||||
|
<auth.server.backend2.port.offset>102</auth.server.backend2.port.offset>
|
||||||
|
<!--8180-->
|
||||||
|
<auth.server.backend1.http.port>8181</auth.server.backend1.http.port>
|
||||||
|
<auth.server.backend2.http.port>8182</auth.server.backend2.http.port>
|
||||||
|
<!--8543-->
|
||||||
|
<auth.server.backend1.https.port>8544</auth.server.backend1.https.port>
|
||||||
|
<auth.server.backend2.https.port>8545</auth.server.backend2.https.port>
|
||||||
|
<!--10090-->
|
||||||
|
<auth.server.backend1.management.port>10091</auth.server.backend1.management.port>
|
||||||
|
<auth.server.backend2.management.port>10092</auth.server.backend2.management.port>
|
||||||
|
<!--10099-->
|
||||||
|
<auth.server.backend1.management.port.jmx>10100</auth.server.backend1.management.port.jmx>
|
||||||
|
<auth.server.backend2.management.port.jmx>10101</auth.server.backend2.management.port.jmx>
|
||||||
|
</systemPropertyVariables>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>unpack-auth-server-wildfly</id>
|
||||||
|
<phase>generate-test-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>unpack</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<artifactItems>
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>org.keycloak.testsuite</groupId>
|
||||||
|
<artifactId>integration-arquillian-server-wildfly-balancer</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
<type>zip</type>
|
||||||
|
<outputDirectory>${containers.home}/balancer</outputDirectory>
|
||||||
|
</artifactItem>
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>org.keycloak.testsuite</groupId>
|
||||||
|
<artifactId>integration-arquillian-server-eap7</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
<type>zip</type>
|
||||||
|
<outputDirectory>${containers.home}/node1</outputDirectory>
|
||||||
|
</artifactItem>
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>org.keycloak.testsuite</groupId>
|
||||||
|
<artifactId>integration-arquillian-server-eap7</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
<type>zip</type>
|
||||||
|
<outputDirectory>${containers.home}/node2</outputDirectory>
|
||||||
|
</artifactItem>
|
||||||
|
</artifactItems>
|
||||||
|
<overWriteIfNewer>true</overWriteIfNewer>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</pluginManagement>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
|
||||||
<!-- Profiles for migration tests-->
|
<!-- Profiles for migration tests-->
|
||||||
|
|
||||||
<profile>
|
<profile>
|
||||||
|
|
Loading…
Reference in a new issue