diff options
author | ToineSiebelink <toine.siebelink@est.tech> | 2021-12-23 12:36:40 +0000 |
---|---|---|
committer | Toine Siebelink <toine.siebelink@est.tech> | 2022-01-04 11:36:25 +0000 |
commit | 18a79ebafa6c2b8737eb0702e1c17acbf57159ba (patch) | |
tree | a913e1c0a8a22a9bcfba86b475fe0ff40ec04d60 /cps-ncmp-rest/src/main/java | |
parent | 23bd18865486d334647a4928104acce625795e18 (diff) |
Remove compulsory body from delete passthrough request
- yaml spec (please note how order of parameter changed!)
- Updated CSIT test
- Slight improvement of cist setup script to prevent double download
Issue-ID: CPS-836
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: Ic3510c9dfe28a3be09f5239ab5c8c4797d4f4792
Diffstat (limited to 'cps-ncmp-rest/src/main/java')
-rwxr-xr-x | cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java | 10 |
1 files changed, 4 insertions, 6 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 0ad30f19c1..e3c457eaf4 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 @@ -62,6 +62,7 @@ import org.springframework.web.bind.annotation.RestController; public class NetworkCmProxyController implements NetworkCmProxyApi { private static final Gson GSON = new GsonBuilder().create(); + private static final String NO_BODY = null; private final ModelMapper modelMapper = new ModelMapper(); private final NetworkCmProxyDataService networkCmProxyDataService; @@ -250,18 +251,15 @@ public class NetworkCmProxyController implements NetworkCmProxyApi { * * @param resourceIdentifier resource identifier * @param cmHandle cm handle identifier - * @param requestBody the request body * @param contentType content type of the body * @return response entity no content if request is successful */ @Override - public ResponseEntity<Void> deleteResourceDataRunningForCmHandle(final String resourceIdentifier, - final String cmHandle, - final Object requestBody, + public ResponseEntity<Void> deleteResourceDataRunningForCmHandle(final String cmHandle, + final String resourceIdentifier, final String contentType) { - networkCmProxyDataService.writeResourceDataPassThroughRunningForCmHandle(cmHandle, - resourceIdentifier, DELETE, GSON.toJson(requestBody), contentType); + resourceIdentifier, DELETE, NO_BODY, contentType); return new ResponseEntity<>(HttpStatus.NO_CONTENT); } |