You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2020/10/02 13:05:52 UTC

[sling-org-apache-sling-starter] 01/02: SLING-9637 - Re-enable Smoke IT, but only keep the repository available check

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

rombert pushed a commit to branch feature/SLING-9637
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter.git

commit 2c41103daa42a23b71efa59dc21d99bb2da7ab29
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Fri Oct 2 14:59:29 2020 +0200

    SLING-9637 - Re-enable Smoke IT, but only keep the repository available check
    
    Configure the build to run the ITs
---
 pom.xml | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)

diff --git a/pom.xml b/pom.xml
index 0d0ad5e..56bd885 100644
--- a/pom.xml
+++ b/pom.xml
@@ -180,6 +180,76 @@
                     </execution>
                 </executions>
             </plugin>
+            <!-- reserve a network port for the integration tests -->
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>reserve-network-port</id>
+                        <goals>
+                            <goal>reserve-network-port</goal>
+                        </goals>
+                        <phase>pre-integration-test</phase>
+                        <configuration>
+                            <portNames>
+                                <portName>http.port</portName>
+                            </portNames>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <!-- launch the oak_tar aggregate for the integration tests -->
+            <plugin>
+                <groupId>org.apache.sling</groupId>
+                <artifactId>feature-launcher-maven-plugin</artifactId>
+                <version>0.1.0</version>
+                <configuration>
+                    <launches>
+                        <launch>
+                            <id>sling-12-oak-tar</id>
+                            <feature>
+                                <groupId>${project.groupId}</groupId>
+                                <artifactId>${project.artifactId}</artifactId>
+                                <version>${project.version}</version>
+                                <classifier>oak_tar</classifier>
+                                <type>slingosgifeature</type>
+                            </feature>
+                            <launcherArguments>
+                                <frameworkProperties>
+                                    <org.osgi.service.http.port>${http.port}</org.osgi.service.http.port>
+                                </frameworkProperties>
+                            </launcherArguments>
+                        </launch>
+                    </launches>
+                </configuration>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>start</goal>
+                            <goal>stop</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>                
+            <!-- run the ITs -->
+            <plugin>
+               <artifactId>maven-failsafe-plugin</artifactId>
+               <executions>
+                   <execution>
+                       <goals>
+                           <goal>integration-test</goal>
+                           <goal>verify</goal>
+                       </goals>
+                   </execution>
+               </executions>
+               <configuration>
+                   <systemPropertyVariables>
+                       <launchpad.http.port>${http.port}</launchpad.http.port>
+                       <IT.expected.bundles.count>${IT.expected.bundles.count}</IT.expected.bundles.count>
+                   </systemPropertyVariables>
+               </configuration>
+            </plugin>
         </plugins>
 
         <pluginManagement>