summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlukegleeson <luke.gleeson@est.tech>2023-01-30 15:18:54 +0000
committerlukegleeson <luke.gleeson@est.tech>2023-01-30 15:21:02 +0000
commit3d878b0674cd61e64501dfe6564b8921e76056bb (patch)
treeedbc5089294b859f0a33549178b1f9b8f9a36cee
parentf8e980af77800b819671310e0c55592b432285a9 (diff)
Fix for integration test module tests
Added Fragment Native Repository to test config Removed test profile Issue-ID: CPS-1466 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: Id845b713e760801be480aa9aea6cb304decd05b9
-rw-r--r--integration-test/pom.xml25
-rw-r--r--integration-test/src/test/groovy/org/onap/cps/integration/TestConfig.groovy7
2 files changed, 6 insertions, 26 deletions
diff --git a/integration-test/pom.xml b/integration-test/pom.xml
index 487095957a..d5ba649cda 100644
--- a/integration-test/pom.xml
+++ b/integration-test/pom.xml
@@ -78,29 +78,4 @@
</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>%regex[.*Spec.*]</exclude>
- </excludes>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>include-performance</id>
- </profile>
- </profiles>
-
</project>
diff --git a/integration-test/src/test/groovy/org/onap/cps/integration/TestConfig.groovy b/integration-test/src/test/groovy/org/onap/cps/integration/TestConfig.groovy
index 273d7bb55a..33283f1f82 100644
--- a/integration-test/src/test/groovy/org/onap/cps/integration/TestConfig.groovy
+++ b/integration-test/src/test/groovy/org/onap/cps/integration/TestConfig.groovy
@@ -29,6 +29,7 @@ import org.onap.cps.spi.impl.CpsDataPersistenceServiceImpl
import org.onap.cps.spi.impl.CpsModulePersistenceServiceImpl
import org.onap.cps.spi.repository.AnchorRepository
import org.onap.cps.spi.repository.DataspaceRepository
+import org.onap.cps.spi.repository.FragmentNativeRepository
import org.onap.cps.spi.repository.FragmentRepository
import org.onap.cps.spi.repository.ModuleReferenceRepository
import org.onap.cps.spi.repository.SchemaSetRepository
@@ -69,6 +70,10 @@ class TestConfig extends Specification{
@Autowired
@Lazy
+ FragmentNativeRepository fragmentNativeRepository
+
+ @Autowired
+ @Lazy
JsonObjectMapper jsonObjectMapper
@Autowired
@@ -86,7 +91,7 @@ class TestConfig extends Specification{
@Bean
CpsDataPersistenceService cpsDataPersistenceService() {
- return (CpsDataPersistenceService) new CpsDataPersistenceServiceImpl(dataspaceRepository, anchorRepository, fragmentRepository, jsonObjectMapper, stubbedSessionManager)
+ return (CpsDataPersistenceService) new CpsDataPersistenceServiceImpl(dataspaceRepository, anchorRepository, fragmentRepository, jsonObjectMapper, stubbedSessionManager, fragmentNativeRepository)
}
@Bean