Fix for integration test module tests 65/133065/1
authorlukegleeson <luke.gleeson@est.tech>
Mon, 30 Jan 2023 15:18:54 +0000 (15:18 +0000)
committerlukegleeson <luke.gleeson@est.tech>
Mon, 30 Jan 2023 15:21:02 +0000 (15:21 +0000)
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

integration-test/pom.xml
integration-test/src/test/groovy/org/onap/cps/integration/TestConfig.groovy

index 4870959..d5ba649 100644 (file)
         </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>
index 273d7bb..33283f1 100644 (file)
@@ -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