diff options
author | seanbeirne <sean.beirne@est.tech> | 2022-10-27 16:33:04 +0100 |
---|---|---|
committer | Toine Siebelink <toine.siebelink@est.tech> | 2022-11-04 09:48:52 +0000 |
commit | 375281167c3792a70eee0bafa21364f184aebd86 (patch) | |
tree | 35736346f4896391b25e650d6bad4f3abd7e1cc1 | |
parent | 14e5bf958bb2b114e3e7d8876bd6f031900c79ec (diff) |
CPS-RI performance profiles implementaion
Reviewers: Joe, Levente, Luke
Issie-ID: CPS-1351
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: Ia7b9a4bbf103d6b54f6fde9dd2d80a3c825c3046
-rw-r--r-- | cps-ri/pom.xml | 24 | ||||
-rw-r--r-- | cps-ri/src/test/groovy/org/onap/cps/spi/performance/CpsToDataNodePerfTest.groovy (renamed from cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsToDataNodePerfSpec.groovy) | 7 |
2 files changed, 27 insertions, 4 deletions
diff --git a/cps-ri/pom.xml b/cps-ri/pom.xml index 824a8d9710..a1cc20ca43 100644 --- a/cps-ri/pom.xml +++ b/cps-ri/pom.xml @@ -132,6 +132,30 @@ </dependency>
</dependencies>
+ <profiles>
+ <profile>
+ <id>default</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>org.onap.cps.spi.performance.CpsToDataNodePerfTest</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>include-performance</id>
+ </profile>
+ </profiles>
<build>
<plugins>
diff --git a/cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsToDataNodePerfSpec.groovy b/cps-ri/src/test/groovy/org/onap/cps/spi/performance/CpsToDataNodePerfTest.groovy index 283be6b9b8..f7ba5dec83 100644 --- a/cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsToDataNodePerfSpec.groovy +++ b/cps-ri/src/test/groovy/org/onap/cps/spi/performance/CpsToDataNodePerfTest.groovy @@ -18,20 +18,19 @@ * ============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' |