diff options
-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' |