diff options
author | 2023-05-08 17:54:46 +0100 | |
---|---|---|
committer | 2023-05-11 16:47:29 +0100 | |
commit | 26a51754dd8aa9b467bcb442e6042f22af2ba001 (patch) | |
tree | dd701435071c0ac94931940b6f73a2139fee87fa /cps-service/src/main/java/org | |
parent | f8aaf8b5f26573d0dd66fef2365e547b7ca6ee7a (diff) |
Move integration test for moduleService
- all modules service interation test moved
- added some aditional scenarios to increase coverage
- removed unused method(s)
- remove javdoc on private methods
- some minor refactoring like replace 'var' with correct type
Issue-ID: CPS-1687
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I03ff1f3562cfe38318e8b9af81be47a1fe667da2
Diffstat (limited to 'cps-service/src/main/java/org')
-rw-r--r-- | cps-service/src/main/java/org/onap/cps/api/impl/CpsModuleServiceImpl.java | 2 | ||||
-rwxr-xr-x | cps-service/src/main/java/org/onap/cps/spi/CpsModulePersistenceService.java | 9 |
2 files changed, 1 insertions, 10 deletions
diff --git a/cps-service/src/main/java/org/onap/cps/api/impl/CpsModuleServiceImpl.java b/cps-service/src/main/java/org/onap/cps/api/impl/CpsModuleServiceImpl.java index d6c01f7a9..7d9c472e6 100644 --- a/cps-service/src/main/java/org/onap/cps/api/impl/CpsModuleServiceImpl.java +++ b/cps-service/src/main/java/org/onap/cps/api/impl/CpsModuleServiceImpl.java @@ -59,9 +59,9 @@ public class CpsModuleServiceImpl implements CpsModuleService { public void createSchemaSet(final String dataspaceName, final String schemaSetName, final Map<String, String> yangResourcesNameToContentMap) { cpsValidator.validateNameCharacters(dataspaceName, schemaSetName); + cpsModulePersistenceService.storeSchemaSet(dataspaceName, schemaSetName, yangResourcesNameToContentMap); final YangTextSchemaSourceSet yangTextSchemaSourceSet = timedYangTextSchemaSourceSetBuilder.getYangTextSchemaSourceSet(yangResourcesNameToContentMap); - cpsModulePersistenceService.storeSchemaSet(dataspaceName, schemaSetName, yangResourcesNameToContentMap); yangTextSchemaSourceSetCache.updateCache(dataspaceName, schemaSetName, yangTextSchemaSourceSet); } diff --git a/cps-service/src/main/java/org/onap/cps/spi/CpsModulePersistenceService.java b/cps-service/src/main/java/org/onap/cps/spi/CpsModulePersistenceService.java index 40d4002b9..beb3d4fa8 100755 --- a/cps-service/src/main/java/org/onap/cps/spi/CpsModulePersistenceService.java +++ b/cps-service/src/main/java/org/onap/cps/spi/CpsModulePersistenceService.java @@ -87,15 +87,6 @@ public interface CpsModulePersistenceService { Map<String, String> getYangSchemaResources(String dataspaceName, String schemaSetName); /** - * Returns YANG resources per specific dataspace / anchorName. - * - * @param dataspaceName dataspace name - * @param anchorName anchor name - * @return YANG resources (files) map where key is a name and value is content - */ - Map<String, String> getYangSchemaSetResources(String dataspaceName, String anchorName); - - /** * Returns YANG resources module references for the given dataspace name. * * @param dataspaceName dataspace name |