From 9784384be364246ae07efbf0383661d6d32adec4 Mon Sep 17 00:00:00 2001 From: "raviteja.karumuri" Date: Mon, 19 Jun 2023 16:43:32 +0100 Subject: DMI-Plugin : Replacing the word 'Batch' as 'DataOperation'. Issue-ID: CPS-1754 Signed-off-by: raviteja.karumuri Change-Id: I8a1d6e329bb79d3762da17e9740854048b2aeace --- .../ncmp/dmi/rest/controller/DmiRestControllerSpec.groovy | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/test/groovy/org/onap') diff --git a/src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/DmiRestControllerSpec.groovy b/src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/DmiRestControllerSpec.groovy index 8499ae25..5caef07f 100644 --- a/src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/DmiRestControllerSpec.groovy +++ b/src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/DmiRestControllerSpec.groovy @@ -312,17 +312,17 @@ class DmiRestControllerSpec extends Specification { } - def 'Get resource data for a list of operations.'() { - given: 'an endpoint for a batch data request with list of cmhandles in request body' + def 'Execute a data operation for a list of operations.'() { + given: 'an endpoint for a data operation request with list of cmhandles in request body' def resourceDataUrl = "$basePathV1/data?topic=client-topic-name&requestId=some-requestId" and: 'list of operation details are received into request body' - def batchDataRequestBody = '[{"operation": "read", "operationId": "14", "datastore": "ncmp-datastore:passthrough-operational", "options": "some options", "resourceIdentifier": "some resourceIdentifier",' + + def dataOperationRequestBody = '[{"operation": "read", "operationId": "14", "datastore": "ncmp-datastore:passthrough-operational", "options": "some options", "resourceIdentifier": "some resourceIdentifier",' + ' "cmhandles": [ {"id": "cmHanlde123", "cmHandleProperties": { "myProp`": "some value", "otherProp": "other value"}}]}]' - when: 'the dmi resource data for batch operation api is called.' + when: 'the dmi resource data for dataOperation api is called.' def response = mvc.perform( - post(resourceDataUrl).contentType(MediaType.APPLICATION_JSON).content(batchDataRequestBody) + post(resourceDataUrl).contentType(MediaType.APPLICATION_JSON).content(dataOperationRequestBody) ).andReturn().response - then: 'the batch data endpoint returns the not implemented response' + then: 'the resource data operation endpoint returns the not implemented response' assert response.status == 501 } } \ No newline at end of file -- cgit 1.2.3-korg