CPS-RI performance profiles implementaion 32/131932/5
authorseanbeirne <sean.beirne@est.tech>
Thu, 27 Oct 2022 15:33:04 +0000 (16:33 +0100)
committerToine Siebelink <toine.siebelink@est.tech>
Fri, 4 Nov 2022 09:48:52 +0000 (09:48 +0000)
Reviewers: Joe, Levente, Luke

Issie-ID: CPS-1351
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: Ia7b9a4bbf103d6b54f6fde9dd2d80a3c825c3046

cps-ri/pom.xml
cps-ri/src/test/groovy/org/onap/cps/spi/performance/CpsToDataNodePerfTest.groovy [moved from cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsToDataNodePerfSpec.groovy with 94% similarity]

index 824a8d9..a1cc20c 100644 (file)
         </dependency>\r
     </dependencies>\r
 \r
+    <profiles>\r
+        <profile>\r
+            <id>default</id>\r
+            <activation>\r
+                <activeByDefault>true</activeByDefault>\r
+            </activation>\r
+            <build>\r
+                <plugins>\r
+                    <plugin>\r
+                        <groupId>org.apache.maven.plugins</groupId>\r
+                        <artifactId>maven-surefire-plugin</artifactId>\r
+                        <configuration>\r
+                            <excludes>\r
+                                <exclude>org.onap.cps.spi.performance.CpsToDataNodePerfTest</exclude>\r
+                            </excludes>\r
+                        </configuration>\r
+                    </plugin>\r
+                </plugins>\r
+            </build>\r
+        </profile>\r
+        <profile>\r
+            <id>include-performance</id>\r
+        </profile>\r
+    </profiles>\r
 \r
     <build>\r
         <plugins>\r
  *  ============LICENSE_END=========================================================
  */
 
-package org.onap.cps.ri.performance
+package org.onap.cps.spi.performance
 
 import org.apache.commons.lang3.time.StopWatch
 import org.onap.cps.spi.CpsDataPersistenceService
-import org.onap.cps.spi.impl.CpsDataPersistenceServiceImpl
 import org.onap.cps.spi.impl.CpsPersistenceSpecBase
 import org.onap.cps.spi.model.DataNode
 import org.onap.cps.spi.model.DataNodeBuilder
-import org.onap.cps.spi.repository.FragmentRepository
 import org.springframework.beans.factory.annotation.Autowired
 import org.springframework.test.context.jdbc.Sql
 import static org.onap.cps.spi.FetchDescendantsOption.INCLUDE_ALL_DESCENDANTS
+import static org.onap.cps.spi.impl.CpsPersistenceSpecBase.CLEAR_DATA
 
-class CpsToDataNodePerfSpec extends CpsPersistenceSpecBase {
+class CpsToDataNodePerfTest extends CpsPersistenceSpecBase {
 
     static final String SET_DATA = '/data/fragment.sql'