From 03248c4de4197dac33c156e6a7a6538c9943305c Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Tue, 3 Mar 2020 21:02:13 -0500 Subject: Add SO VF Module Delete Operation Redesigned the SO Operation classes; moved some code from the subclass to the superclass so it could be reused by the VF Module Delete Operation. JerseyClient does not support DELETE with a request body, so had to implement a delete() method using java11 HttpClient. Fix some issues found while testing with drools-apps. Added "delete" operation to SO simulator. Issue-ID: POLICY-2371 Signed-off-by: Jim Hahn Change-Id: I269fe13cf90c295ec2bbac92bc5a59b3820ea265 --- .../actor.so/src/test/resources/VfModuleDelete.json | 18 ++++++++++++++++++ .../actor.so/src/test/resources/service.yaml | 4 +++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 models-interactions/model-actors/actor.so/src/test/resources/VfModuleDelete.json (limited to 'models-interactions/model-actors/actor.so/src/test/resources') diff --git a/models-interactions/model-actors/actor.so/src/test/resources/VfModuleDelete.json b/models-interactions/model-actors/actor.so/src/test/resources/VfModuleDelete.json new file mode 100644 index 000000000..5b7cce5f3 --- /dev/null +++ b/models-interactions/model-actors/actor.so/src/test/resources/VfModuleDelete.json @@ -0,0 +1,18 @@ +{ + "requestDetails": { + "modelInfo": { + "modelType": "vfModule", + "modelInvariantId": "my-model-invariant-id", + "modelVersionId": "my-model-version-id", + "modelName": "my-model-name", + "modelVersion": "my-model-version", + "modelCustomizationId": "my-model-customization-id" + }, + "cloudConfiguration": {}, + "requestInfo": { + "source": "POLICY", + "suppressRollback": false, + "requestorId": "policy" + } + } +} \ No newline at end of file diff --git a/models-interactions/model-actors/actor.so/src/test/resources/service.yaml b/models-interactions/model-actors/actor.so/src/test/resources/service.yaml index 4bf074fc5..e1cb0d9f3 100644 --- a/models-interactions/model-actors/actor.so/src/test/resources/service.yaml +++ b/models-interactions/model-actors/actor.so/src/test/resources/service.yaml @@ -28,4 +28,6 @@ actors: clientName: my-client operations: VF Module Create: - path: serviceInstantiation/v7 \ No newline at end of file + path: serviceInstantiation/v7/serviceInstances + VF Module Delete: + path: serviceInstances/v7 \ No newline at end of file -- cgit 1.2.3-korg