You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2015/04/09 16:38:40 UTC

svn commit: r1672368 - in /sling/trunk/launchpad/testing: pom.xml src/main/config/ src/main/provisioning/ src/main/provisioning/model.txt

Author: cziegeler
Date: Thu Apr  9 14:38:40 2015
New Revision: 1672368

URL: http://svn.apache.org/r1672368
Log:
SLING-4598 : Migrate launchpad testing to provisioning model

Added:
    sling/trunk/launchpad/testing/src/main/provisioning/
    sling/trunk/launchpad/testing/src/main/provisioning/model.txt   (with props)
Removed:
    sling/trunk/launchpad/testing/src/main/config/
Modified:
    sling/trunk/launchpad/testing/pom.xml

Modified: sling/trunk/launchpad/testing/pom.xml
URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/testing/pom.xml?rev=1672368&r1=1672367&r2=1672368&view=diff
==============================================================================
--- sling/trunk/launchpad/testing/pom.xml (original)
+++ sling/trunk/launchpad/testing/pom.xml Thu Apr  9 14:38:40 2015
@@ -28,7 +28,7 @@
     </parent>
 
     <artifactId>org.apache.sling.launchpad.testing</artifactId>
-    <packaging>jar</packaging>
+    <packaging>slingstart</packaging>
     <version>7-SNAPSHOT</version>
 
     <name>Apache Sling Launchpad Testing</name>
@@ -120,87 +120,10 @@
                 </executions>
             </plugin>
             <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-jar-plugin</artifactId>
-                <configuration>
-                    <archive>
-    	                <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
-                        <manifest>
-                            <addDefaultImplementationEntries>
-                                true
-                            </addDefaultImplementationEntries>
-                        </manifest>
-                    </archive>
-                </configuration>
-            </plugin>
-            <plugin>
                 <groupId>org.apache.sling</groupId>
-                <artifactId>maven-launchpad-plugin</artifactId>
-                <version>2.3.3-SNAPSHOT</version>
+                <artifactId>slingstart-maven-plugin</artifactId>
+                <version>1.0.5-SNAPSHOT</version>
                 <extensions>true</extensions>
-                <executions>
-                    <execution>
-                        <id>prepare-package</id>
-                        <goals>
-                            <goal>prepare-package</goal>
-                        </goals>
-                    </execution>
-                    <execution>
-                        <id>default-cli</id>
-                        <configuration>
-                            <httpPort>${run.http.port}</httpPort>
-                        </configuration>
-                    </execution>
-                    <execution>
-                        <id>attach-bundle-list</id>
-                        <goals>
-                            <goal>attach-bundle-list</goal>
-                        </goals>
-                        <configuration>
-                            <ignoreBundleListConfig>true</ignoreBundleListConfig>
-                        </configuration>
-                    </execution>
-                </executions>
-                <configuration>
-                    <defaultBundleList>
-                        <version>8-SNAPSHOT</version>
-                    </defaultBundleList>
-                    <jarWebSupport>
-                        <bundles>
-                          <bundle>
-                                <groupId>org.apache.felix</groupId>
-                                <artifactId>org.apache.felix.http.api</artifactId>
-                                <version>2.3.2</version>
-                                <startLevel>5</startLevel>
-                            </bundle>
-                            <bundle>
-                                <groupId>org.apache.felix</groupId>
-                                <artifactId>org.apache.felix.http.servlet-api</artifactId>
-                                <version>1.0.1</version>
-                                <startLevel>5</startLevel>
-                            </bundle>
-                            <bundle>
-                                <groupId>org.apache.felix</groupId>
-                                <artifactId>org.apache.felix.http.jetty</artifactId>
-                                <version>2.3.2</version>
-                                <startLevel>5</startLevel>
-                            </bundle>
-                        </bundles>
-                    </jarWebSupport>
-                </configuration>
-                <dependencies>
-                    <dependency>
-                        <groupId>org.apache.sling</groupId>
-                        <artifactId>org.apache.sling.launchpad.base</artifactId>
-                        <version>4.6.1-2.5.8</version>
-                    </dependency>
-                    <dependency>
-                        <groupId>org.apache.sling</groupId>
-                        <artifactId>org.apache.sling.launchpad.base</artifactId>
-                        <version>4.6.1-2.5.8</version>
-                        <classifier>app</classifier>
-                    </dependency>
-                </dependencies>
             </plugin>
 
             <plugin>
@@ -280,19 +203,12 @@
                     </plugin>
                     <plugin>
                         <groupId>org.apache.sling</groupId>
-                        <artifactId>maven-launchpad-plugin</artifactId>
+                        <artifactId>slingstart-maven-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>start-container</id>
-                                <phase>pre-integration-test</phase>
                                 <goals>
                                     <goal>start</goal>
-                                </goals>
-                            </execution>
-                            <execution>
-                                <id>stop-container</id>
-                                <phase>post-integration-test</phase>
-                                <goals>
                                     <goal>stop</goal>
                                 </goals>
                             </execution>
@@ -459,8 +375,8 @@
             <groupId>org.apache.sling</groupId>
             <artifactId>org.apache.sling.launchpad</artifactId>
             <version>8-SNAPSHOT</version>
-            <type>partialbundlelist</type>
-            <classifier>bundlelist</classifier>
+            <type>slingstart</type>
+            <classifier>slingfeature</classifier>
         </dependency>
 
       <!-- The integration tests -->
@@ -476,15 +392,7 @@
              <groupId>org.apache.sling</groupId>
              <artifactId>org.apache.sling.launchpad.test-bundles</artifactId>
              <version>0.0.1-SNAPSHOT</version>
-             <type>partialbundlelist</type>
-        </dependency>
-
-      <!--  The basic Sling WebApp -->
-        <dependency>
-            <groupId>org.apache.sling</groupId>
-            <artifactId>org.apache.sling.launchpad.base</artifactId>
-            <version>4.6.1-2.5.8</version>
-            <classifier>app</classifier>
+             <type>slingfeature</type>
         </dependency>
 
         <!-- Dependencies for the Test Build and Run -->

Added: sling/trunk/launchpad/testing/src/main/provisioning/model.txt
URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/testing/src/main/provisioning/model.txt?rev=1672368&view=auto
==============================================================================
--- sling/trunk/launchpad/testing/src/main/provisioning/model.txt (added)
+++ sling/trunk/launchpad/testing/src/main/provisioning/model.txt Thu Apr  9 14:38:40 2015
@@ -0,0 +1,10 @@
+[feature name=launchpad-testing]
+  # additional configuration for testing
+
+[configurations]
+  integrationTestsConfig
+    message="This test config should be loaded at startup"
+
+  org.apache.sling.servlets.resolver.SlingServletResolver
+    # Set the servlet resolver's cache size to zero for testing
+    servletresolver.cacheSize=I"0"
\ No newline at end of file

Propchange: sling/trunk/launchpad/testing/src/main/provisioning/model.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: sling/trunk/launchpad/testing/src/main/provisioning/model.txt
------------------------------------------------------------------------------
    svn:keywords = Id