From 88cadd3f3aaa22cccb0d2159cf57fb2b84d440a2 Mon Sep 17 00:00:00 2001 From: tragait Date: Thu, 2 Sep 2021 11:11:50 +0100 Subject: fix dmi base path in ncmp Issue-ID: CPS-617 Signed-off-by: tragait Change-Id: I3a0018c6054febfea5d9c4aa1c0e62f8aa1c160b --- .../org/onap/cps/ncmp/api/impl/operation/DmiOperationsSpec.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cps-ncmp-service/src/test/groovy') diff --git a/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/operation/DmiOperationsSpec.groovy b/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/operation/DmiOperationsSpec.groovy index 3c9b16440..987ab2bca 100644 --- a/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/operation/DmiOperationsSpec.groovy +++ b/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/operation/DmiOperationsSpec.groovy @@ -41,7 +41,7 @@ class DmiOperationsSpec extends Specification { def 'call get resource data for pass-through:operational datastore from DMI.'() { given: 'expected url' - def expectedUrl = 'testDmiBasePath/dmi/api/v1/ch/testCmhandle/data/ds' + + def expectedUrl = 'testDmiBasePath/dmi/v1/ch/testCmhandle/data/ds' + '/ncmp-datastore:passthrough-operational/testResourceId?fields=testFieldsQuery&depth=10' when: 'get resource data is called to DMI' objectUnderTest.getResourceDataOperationalFromDmi('testDmiBasePath', @@ -56,7 +56,7 @@ class DmiOperationsSpec extends Specification { } def 'call get resource data for pass-through:running datastore from DMI.'() { given: 'expected url' - def expectedUrl = 'testDmiBasePath/dmi/api/v1/ch/testCmhandle/data/ds' + + def expectedUrl = 'testDmiBasePath/dmi/v1/ch/testCmhandle/data/ds' + '/ncmp-datastore:passthrough-running/testResourceId?fields=testFieldsQuery&depth=10' when: 'get resource data is called to DMI' objectUnderTest.getResourceDataPassThroughRunningFromDmi('testDmiBasePath', @@ -71,7 +71,7 @@ class DmiOperationsSpec extends Specification { } def 'call create resource data for pass-through:running datastore from DMI.'() { given: 'expected url' - def expectedUrl = 'testDmiBasePath/dmi/api/v1/ch/testCmhandle/data/ds' + + def expectedUrl = 'testDmiBasePath/dmi/v1/ch/testCmhandle/data/ds' + '/ncmp-datastore:passthrough-running/testResourceId' when: 'get resource data is called to DMI' objectUnderTest.createResourceDataPassThroughRunningFromDmi('testDmiBasePath', @@ -84,7 +84,7 @@ class DmiOperationsSpec extends Specification { def 'Call get resource from dmi.'() { given: 'expected url' - def expectedUrl = 'testDmiBasePath/dmi/api/v1/ch/testCmhandle/modules' + def expectedUrl = 'testDmiBasePath/dmi/v1/ch/testCmhandle/modules' when: 'get resource data is called to dmi' objectUnderTest.getResourceFromDmi('testDmiBasePath', 'testCmhandle', -- cgit 1.2.3-korg