KEYCLOAK-16625 : Testsuite -> auth.server.remote: adding keystore file to a build directory.
This commit is contained in:
parent
f6c3ec5d9e
commit
223d0ea456
2 changed files with 92 additions and 2 deletions
|
@ -43,6 +43,7 @@
|
|||
<exclude.crossdc>**/crossdc/**/*Test.java</exclude.crossdc>
|
||||
<mvel.version>2.4.0.Final</mvel.version>
|
||||
<systemrules.version>1.19.0</systemrules.version>
|
||||
<common.resources>${basedir}/../../servers/auth-server/jboss/common</common.resources>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
@ -393,6 +394,53 @@
|
|||
</build>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>auth-server-remote</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-keystore</id>
|
||||
<phase>process-resources</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/containers/auth-server-remote</outputDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>${common.resources}/keystore</directory>
|
||||
<includes>
|
||||
<include>keycloak.jks</include>
|
||||
<include>keycloak.truststore</include>
|
||||
<include>client.jks</include>
|
||||
<include>client-ca.jks</include>
|
||||
<include>ca.crt</include>
|
||||
<include>client.crt</include>
|
||||
<include>client.key</include>
|
||||
<include>*.crl</include>
|
||||
<!-- KEYCLOAK-6771 Certificate Bound Token -->
|
||||
<include>other_client.jks</include>
|
||||
</includes>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>${common.resources}/pki/root/ca</directory>
|
||||
<includes>
|
||||
<include>certs/clients/test-user-san@localhost.cert.pem</include>
|
||||
<include>certs/clients/test-user@localhost.key.pem</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
|
||||
<profile>
|
||||
<id>jpa</id>
|
||||
<build>
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
<app.server.type>remote</app.server.type>
|
||||
<app.server.skip.unpack>true</app.server.skip.unpack>
|
||||
<app.server.arquillian.xsl>src/test/resources/xslt/arquillian.xsl</app.server.arquillian.xsl>
|
||||
|
||||
<common.resources>${basedir}/../../../../../servers/auth-server/jboss/common</common.resources>
|
||||
<exclude.htmlunit>**/performance/htmlunit/**/*Test.java</exclude.htmlunit>
|
||||
<exclude.httpclient>**/performance/httpclient/**/*Test.java</exclude.httpclient>
|
||||
|
||||
|
@ -129,7 +129,49 @@
|
|||
<profiles>
|
||||
<profile>
|
||||
<id>auth-server-remote</id>
|
||||
<!--dummy profile for enforcer-->
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-keystore</id>
|
||||
<phase>process-resources</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/containers/auth-server-remote</outputDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>${common.resources}/keystore</directory>
|
||||
<includes>
|
||||
<include>keycloak.jks</include>
|
||||
<include>keycloak.truststore</include>
|
||||
<include>client.jks</include>
|
||||
<include>client-ca.jks</include>
|
||||
<include>ca.crt</include>
|
||||
<include>client.crt</include>
|
||||
<include>client.key</include>
|
||||
<include>*.crl</include>
|
||||
<!-- KEYCLOAK-6771 Certificate Bound Token -->
|
||||
<include>other_client.jks</include>
|
||||
</includes>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>${common.resources}/pki/root/ca</directory>
|
||||
<includes>
|
||||
<include>certs/clients/test-user-san@localhost.cert.pem</include>
|
||||
<include>certs/clients/test-user@localhost.key.pem</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>app-server-remote-as7-eap6</id>
|
||||
|
|
Loading…
Reference in a new issue