X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=cps-ncmp-service%2Fsrc%2Ftest%2Fgroovy%2Forg%2Fonap%2Fcps%2Fncmp%2Fapi%2Fimpl%2Foperation%2FDmiOperationsSpec.groovy;h=987ab2bca1763e3627d3807d32aaa44d86941d2e;hb=88cadd3f3aaa22cccb0d2159cf57fb2b84d440a2;hp=3c9b16440817835b9bc9a6ddb9145fde27e3d034;hpb=c0708c6435480a3a1f5c4c8a95f21cfd1d76c6df;p=cps.git 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',