From 919e9065d4aba17b5bbc16db5b0ee29130fd4b12 Mon Sep 17 00:00:00 2001 From: niamhcore Date: Tue, 2 Nov 2021 14:08:16 +0000 Subject: Update operation passthrough running - openapi Issue-ID: CPS-636 Signed-off-by: niamhcore Change-Id: I16d7d84ae6897e3901f5f5a5a59dbc5deae7d4e8 --- .../rest/controller/NetworkCmProxyControllerSpec.groovy | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'cps-ncmp-rest/src/test/groovy') diff --git a/cps-ncmp-rest/src/test/groovy/org/onap/cps/ncmp/rest/controller/NetworkCmProxyControllerSpec.groovy b/cps-ncmp-rest/src/test/groovy/org/onap/cps/ncmp/rest/controller/NetworkCmProxyControllerSpec.groovy index a609cfacb..4066fd35e 100644 --- a/cps-ncmp-rest/src/test/groovy/org/onap/cps/ncmp/rest/controller/NetworkCmProxyControllerSpec.groovy +++ b/cps-ncmp-rest/src/test/groovy/org/onap/cps/ncmp/rest/controller/NetworkCmProxyControllerSpec.groovy @@ -281,5 +281,19 @@ class NetworkCmProxyControllerSpec extends Specification { then: 'an empty cm handle identifier is returned' response.contentAsString == '{"cmHandles":null}' } + + def 'Update resource data in passthrough-running datastore.' () { + given: 'update resource data url' + def updateUrl = "$ncmpBasePathV1/ch/testCmHandle/data/ds/ncmp-datastore:passthrough-running" + + "?resourceIdentifier=parent/child" + when: 'update data resource request is performed' + def response = mvc.perform( + put(updateUrl) + .contentType(MediaType.APPLICATION_JSON_VALUE) + .accept(MediaType.APPLICATION_JSON_VALUE).content('some-request-body') + ).andReturn().response + then: 'the response status is not implemented' + response.status == HttpStatus.NOT_IMPLEMENTED.value() + } } -- cgit 1.2.3-korg