diff options
author | Muthuramalingam, Brinda Santh(bs2796) <bs2796@att.com> | 2018-11-10 11:54:05 -0500 |
---|---|---|
committer | Muthuramalingam, Brinda Santh(bs2796) <bs2796@att.com> | 2018-11-10 15:55:03 -0500 |
commit | a9bf0541c65d8bb81b814bd85253cf4518fcb52b (patch) | |
tree | 9b629b6f70cedf70fa4595d55c4a337fbc80add4 /components/resource-dict | |
parent | 115a90365564d9cb5a6415f4fa525b999a36b5ea (diff) |
Controller Design Studio
Upgrade Spring Boot and Kotlin versions.
Change-Id: If0d7d0f476d8cfd23916013ff1ab554b26bc6b7a
Issue-ID: CCSDK-658
Signed-off-by: Muthuramalingam, Brinda Santh(bs2796) <bs2796@att.com>
Diffstat (limited to 'components/resource-dict')
3 files changed, 6 insertions, 4 deletions
diff --git a/components/resource-dict/pom.xml b/components/resource-dict/pom.xml index 508ae96f..517895cb 100644 --- a/components/resource-dict/pom.xml +++ b/components/resource-dict/pom.xml @@ -39,7 +39,7 @@ </dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
- <artifactId>kotlin-test</artifactId>
+ <artifactId>kotlin-test-junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
diff --git a/components/resource-dict/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/resource/dict/service/ResourceDefinitionRepoService.kt b/components/resource-dict/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/resource/dict/service/ResourceDefinitionRepoService.kt index 6c83e5f9..6d186b59 100644 --- a/components/resource-dict/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/resource/dict/service/ResourceDefinitionRepoService.kt +++ b/components/resource-dict/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/resource/dict/service/ResourceDefinitionRepoService.kt @@ -49,10 +49,12 @@ open class ResourceDefinitionFileRepoService : BluePrintRepoFileService, constructor(basePath: String) : this(basePath,
basePath.plus(BluePrintConstants.PATH_DIVIDER)
- .plus(BluePrintConstants.MODEL_DIR_MODEL_TYPE))
+ .plus(BluePrintConstants.MODEL_DIR_MODEL_TYPE)
+ .plus(BluePrintConstants.PATH_DIVIDER)
+ .plus("starter-type"))
constructor(basePath: String, modelTypePath: String) : super(modelTypePath) {
- resourceDefinitionPath = basePath.plus("/resource_dictionary")
+ resourceDefinitionPath = basePath.plus("/resource-dictionary/starter-dictionary")
}
override fun getResourceDefinition(resourceDefinitionName: String): Mono<ResourceDefinition> {
diff --git a/components/resource-dict/src/test/java/org/onap/ccsdk/apps/controllerblueprints/resource/dict/service/ResourceDefinitionRepoServiceTest.java b/components/resource-dict/src/test/java/org/onap/ccsdk/apps/controllerblueprints/resource/dict/service/ResourceDefinitionRepoServiceTest.java index 1772277d..6789c0e0 100644 --- a/components/resource-dict/src/test/java/org/onap/ccsdk/apps/controllerblueprints/resource/dict/service/ResourceDefinitionRepoServiceTest.java +++ b/components/resource-dict/src/test/java/org/onap/ccsdk/apps/controllerblueprints/resource/dict/service/ResourceDefinitionRepoServiceTest.java @@ -25,7 +25,7 @@ public class ResourceDefinitionRepoServiceTest { @Test
public void testGetResourceDefinition() throws Exception{
- ResourceDefinitionRepoService resourceDefinitionRepoService = new ResourceDefinitionFileRepoService("load");
+ ResourceDefinitionRepoService resourceDefinitionRepoService = new ResourceDefinitionFileRepoService("./../model-catalog");
ResourceDefinition resourceDefinition = resourceDefinitionRepoService
.getResourceDefinition("db-source").block();
Assert.assertNotNull("Failed to get Resource Definition db-source", resourceDefinition);
|