summaryrefslogtreecommitdiffstats
path: root/cps-ncmp-rest/src
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2021-11-08 15:04:21 +0000
committerGerrit Code Review <gerrit@onap.org>2021-11-08 15:04:21 +0000
commitb6fe4eb602206e5495423ff8614eb5238829d115 (patch)
tree8525112c388aada07bed153d180ba5ab773720c7 /cps-ncmp-rest/src
parent94a4b4575f4b5bfe53817db831cc7270dc2abae9 (diff)
parent919e9065d4aba17b5bbc16db5b0ee29130fd4b12 (diff)
Merge "Update operation passthrough running - openapi"
Diffstat (limited to 'cps-ncmp-rest/src')
-rwxr-xr-xcps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java6
-rw-r--r--cps-ncmp-rest/src/test/groovy/org/onap/cps/ncmp/rest/controller/NetworkCmProxyControllerSpec.groovy14
2 files changed, 20 insertions, 0 deletions
diff --git a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java
index ca661b817e..19b9a09daa 100755
--- a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java
+++ b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java
@@ -132,6 +132,12 @@ public class NetworkCmProxyController implements NetworkCmProxyApi {
return new ResponseEntity<>(HttpStatus.OK);
}
+ @Override
+ public ResponseEntity<Object> updateResourceDataRunningForCmHandle(final String cmHandle,
+ final String resourceIdentifier, final String requestBody, final String contentType) {
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
/**
* Update Node Leaves.
* @deprecated This Method is no longer used as part of NCMP.
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 a609cfacb8..4066fd35eb 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()
+ }
}