From 3d878b0674cd61e64501dfe6564b8921e76056bb Mon Sep 17 00:00:00 2001 From: lukegleeson Date: Mon, 30 Jan 2023 15:18:54 +0000 Subject: [PATCH] Fix for integration test module tests Added Fragment Native Repository to test config Removed test profile Issue-ID: CPS-1466 Signed-off-by: lukegleeson Change-Id: Id845b713e760801be480aa9aea6cb304decd05b9 --- integration-test/pom.xml | 25 ---------------------- .../org/onap/cps/integration/TestConfig.groovy | 7 +++++- 2 files changed, 6 insertions(+), 26 deletions(-) diff --git a/integration-test/pom.xml b/integration-test/pom.xml index 487095957..d5ba649cd 100644 --- a/integration-test/pom.xml +++ b/integration-test/pom.xml @@ -78,29 +78,4 @@ - - - default - - true - - - - - org.apache.maven.plugins - maven-surefire-plugin - - - %regex[.*Spec.*] - - - - - - - - include-performance - - - 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 273d7bb55..33283f1f8 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 @@ -67,6 +68,10 @@ class TestConfig extends Specification{ @Lazy ModuleReferenceRepository moduleReferenceRepository + @Autowired + @Lazy + FragmentNativeRepository fragmentNativeRepository + @Autowired @Lazy JsonObjectMapper jsonObjectMapper @@ -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 -- 2.16.6