Skip to content

Commit

Permalink
Merge pull request #123 from jamezp/test-profiles
Browse files Browse the repository at this point in the history
Add a profile to run against an already provisioned server.
  • Loading branch information
jamezp authored Oct 28, 2022
2 parents 96d3a35 + 881b37d commit 5470335
Showing 1 changed file with 76 additions and 54 deletions.
130 changes: 76 additions & 54 deletions testsuite/integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@
<artifactId>integration-tests</artifactId>
<name>RESTEasy MicroProfile: Integration Tests</name>

<properties>
<!-- Galleon -->
<jboss.home>${project.build.directory}${file.separator}wildfly</jboss.home>
<feature.pack.groupId>org.jboss.resteasy.microprofile</feature.pack.groupId>
<feature.pack.artifactId>galleon-feature-pack</feature.pack.artifactId>
<feature.pack.version>${project.version}</feature.pack.version>
</properties>

<dependencies>
<dependency>
<groupId>com.io7m.xom</groupId>
Expand Down Expand Up @@ -167,52 +159,6 @@
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.jboss.galleon</groupId>
<artifactId>galleon-maven-plugin</artifactId>
<configuration>
<install-dir>${jboss.home}</install-dir>
<record-state>false</record-state>
<log-time>${galleon.log.time}</log-time>
<offline>${galleon.offline}</offline>
<plugin-options>
<!-- <jboss-maven-dist/> -->
<jboss-fork-embedded>${galleon.fork.embedded}</jboss-fork-embedded>
<optional-packages>passive+</optional-packages>
<jboss-jakarta-transform-artifacts>true</jboss-jakarta-transform-artifacts>
</plugin-options>
<feature-packs>
<feature-pack>
<groupId>${feature.pack.groupId}</groupId>
<artifactId>${feature.pack.artifactId}</artifactId>
<version>${feature.pack.version}</version>
<excluded-packages>
<name>product.conf</name>
<name>docs.schema</name>
</excluded-packages>
</feature-pack>
</feature-packs>
<configurations>
<config>
<model>standalone</model>
<name>standalone.xml</name>
<layers>
<layer>cdi</layer>
<layer>jaxrs-server</layer>
<layer>microprofile-config</layer>
</layers>
</config>
</configurations>
</configuration>
<executions>
<execution>
<id>server-provisioning</id>
<goals>
<goal>provision</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand All @@ -230,6 +176,82 @@
</plugins>
</build>
</profile>
<profile>
<id>provided.server</id>
<activation>
<property>
<name>server.home</name>
</property>
</activation>
<properties>
<jboss.home>${server.home}</jboss.home>
</properties>
</profile>
<profile>
<id>provision.server</id>
<activation>
<property>
<name>!server.home</name>
</property>
</activation>
<properties>
<!-- Galleon -->
<jboss.home>${project.build.directory}${file.separator}wildfly</jboss.home>
<feature.pack.groupId>org.jboss.resteasy.microprofile</feature.pack.groupId>
<feature.pack.artifactId>galleon-feature-pack</feature.pack.artifactId>
<feature.pack.version>${project.version}</feature.pack.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.jboss.galleon</groupId>
<artifactId>galleon-maven-plugin</artifactId>
<configuration>
<install-dir>${jboss.home}</install-dir>
<record-state>false</record-state>
<log-time>${galleon.log.time}</log-time>
<offline>${galleon.offline}</offline>
<plugin-options>
<!-- <jboss-maven-dist/> -->
<jboss-fork-embedded>${galleon.fork.embedded}</jboss-fork-embedded>
<optional-packages>passive+</optional-packages>
<jboss-jakarta-transform-artifacts>true</jboss-jakarta-transform-artifacts>
</plugin-options>
<feature-packs>
<feature-pack>
<groupId>${feature.pack.groupId}</groupId>
<artifactId>${feature.pack.artifactId}</artifactId>
<version>${feature.pack.version}</version>
<excluded-packages>
<name>product.conf</name>
<name>docs.schema</name>
</excluded-packages>
</feature-pack>
</feature-packs>
<configurations>
<config>
<model>standalone</model>
<name>standalone.xml</name>
<layers>
<layer>cdi</layer>
<layer>jaxrs-server</layer>
<layer>microprofile-config</layer>
</layers>
</config>
</configurations>
</configuration>
<executions>
<execution>
<id>server-provisioning</id>
<goals>
<goal>provision</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>

0 comments on commit 5470335

Please sign in to comment.