Enable tests using test containers on jenkins 41/116441/7
authorRuslan Kashapov <ruslan.kashapov@pantheon.tech>
Thu, 17 Dec 2020 08:38:53 +0000 (10:38 +0200)
committerRuslan Kashapov <ruslan.kashapov@pantheon.tech>
Thu, 17 Dec 2020 11:11:27 +0000 (11:11 +0000)
Issue-ID: CPS-124
Change-Id: I77f6242490c1b149a3f3cdd78aa2b349ace95896
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
cps-dependencies/pom.xml
cps-parent/pom.xml

index 5c94387..a77deff 100755 (executable)
@@ -26,7 +26,7 @@
         <springboot.version>2.3.3.RELEASE</springboot.version>
         <springfox.version>3.0.0</springfox.version>
         <swagger.version>2.1.4</swagger.version>
-        <testcontainers.version>1.15.0</testcontainers.version>
+        <testcontainers.version>1.15.1</testcontainers.version>
         <yangtools.version>5.0.6</yangtools.version>
     </properties>
 
index 9c1760c..55db1a1 100644 (file)
                 </pluginManagement>
             </build>
         </profile>
-        <profile>
-            <id>skip-db-tests</id>
-            <activation>
-                <!-- exclude module tests by default till Jenkins is configured to support test containers -->
-                <activeByDefault>true</activeByDefault>
-            </activation>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-surefire-plugin</artifactId>
-                        <configuration>
-                            <excludes>
-                                <exclude>**/spi/impl/*Test.java</exclude>
-                            </excludes>
-                        </configuration>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
     </profiles>
 
     <dependencyManagement>
                     <excludes>
                         <exclude>**/IT*.java</exclude>
                     </excludes>
+                    <environmentVariables>
+                        <!--
+                            disable privileged container usage to cleanup the test containers;
+                            these will be removed automatically on jvm termination;
+                            see https://www.testcontainers.org/features/configuration/#disabling-ryuk
+                         -->
+                        <TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED>
+                    </environmentVariables>
                 </configuration>
             </plugin>
             <plugin>