diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2023-04-20 08:48:32 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-04-20 08:48:32 +0000 |
commit | 5f68d54d9f3af043d7f87d9a0b3a5f2de6f06dc5 (patch) | |
tree | f750347b467c3097ed6a062833850eff3aad17c0 /src/test/groovy/org | |
parent | 3c6ab2322d81d98a26e697cecdb5c4d6da548e81 (diff) | |
parent | fff80c048f90ad6b58a00329e514f0c2e5c41dd5 (diff) |
Merge "Define an interface to accept collection of cm handles for Get operation."
Diffstat (limited to 'src/test/groovy/org')
-rw-r--r-- | src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/DmiRestControllerSpec.groovy | 15 |
1 files changed, 15 insertions, 0 deletions
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 2be0b59c..acc8b63b 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 @@ -311,4 +311,19 @@ class DmiRestControllerSpec extends Specification { '? needs to be encoded as %3F' | 'idWith%3F' } + + def 'Get resource data for a collection of cm handles (unimplemented).'() { + given: 'an endpoint for adding a batch of cm handle Ids' + def url = "$basePathV1/ch/batch/data/ds/test-datastore?topic=test" + and: 'a request body' + def body = '{"CmHandles": []}' + when: 'the endpoint is invoked' + def response = mvc.perform( + post(url) + .contentType(MediaType.APPLICATION_JSON) + .content(body) + ).andReturn().response + then: 'the response status code is 501' + assert response.status == 501 + } } |