You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/12/19 16:27:28 UTC

[camel-quarkus] branch master updated: Randomize http test port #553

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/master by this push:
     new d2c7fea  Randomize http test port #553
     new 7231941  Merge pull request #555 from lburgazzoli/github-553
d2c7fea is described below

commit d2c7fea10853c75dc99e59d41633a64977798414
Author: lburgazzoli <lb...@gmail.com>
AuthorDate: Thu Dec 19 13:53:23 2019 +0100

    Randomize http test port #553
---
 integration-tests/pom.xml | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml
index 4cbf371..0232da2 100644
--- a/integration-tests/pom.xml
+++ b/integration-tests/pom.xml
@@ -212,10 +212,52 @@
                         <noDeps>true</noDeps>
                     </configuration>
                 </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-surefire-plugin</artifactId>
+                    <configuration>
+                        <systemProperties>
+                            <quarkus.http.test-port>${test.http.port.jvm}</quarkus.http.test-port>
+                        </systemProperties>
+                    </configuration>
+                </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-failsafe-plugin</artifactId>
+                    <executions>
+                        <execution>
+                            <configuration>
+                                <systemProperties>
+                                    <quarkus.http.test-port>${test.http.port.native}</quarkus.http.test-port>
+                                </systemProperties>
+                            </configuration>
+                        </execution>
+                    </executions>
+                </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <version>${build-helper-maven-plugin.version}</version>
+                <executions>
+                    <execution>
+                        <id>reserve-network-port</id>
+                        <goals>
+                            <goal>reserve-network-port</goal>
+                        </goals>
+                        <phase>process-resources</phase>
+                        <configuration>
+                            <portNames>
+                                <portName>test.http.port.jvm</portName>
+                                <portName>test.http.port.native</portName>
+                            </portNames>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-jar-plugin</artifactId>
                 <executions>