Added support for VF Module Delete recipe 33/63433/7
authorPiyush Garg <piyush.garg1@amdocs.com>
Wed, 29 Aug 2018 10:10:53 +0000 (15:40 +0530)
committerPiyush Garg <piyush.garg1@amdocs.com>
Fri, 31 Aug 2018 20:48:21 +0000 (20:48 +0000)
commit0b6288e180c1d33bba88b3df5e03442c57058db9
tree072c9c553f9ac7a4874ce97101be5c6e211d547e
parent8279af376b435e1d7dd118a1955c5681edf3b847
Added support for VF Module Delete recipe

Enhanced SOActorServiceProvider to support VF Module Delete Recipe.
Added SOOperationType enum to map the policy recipe with the SO API that
we want to call for a recipe. vf module id from non-base vf module is
used to construct the delete request url and same will be deleted.

Updated SOManager so that it sends request to SO based on the
SOOperationType enum value.

Enhanced RESTManager to add support for the http delete using new class
HttpDeleteWithBody (to allow pass the payload to the SO delete VF module API).

Change-Id: I15b678ed9ebc85dfa7cb62bbf23e41c0fe6e4c69
Issue-ID: POLICY-1079
Signed-off-by: Piyush Garg <piyush.garg1@amdocs.com>
18 files changed:
controlloop/common/actors/actor.so/src/main/java/org/onap/policy/controlloop/actor/so/SOActorServiceProvider.java
controlloop/common/actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/SoActorServiceProviderTest.java
controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AaiManager.java
controlloop/common/model-impl/rest/src/main/java/org/onap/policy/rest/HttpDeleteWithBody.java [new file with mode: 0644]
controlloop/common/model-impl/rest/src/main/java/org/onap/policy/rest/RESTManager.java
controlloop/common/model-impl/rest/src/test/java/org/onap/policy/rest/HttpDeleteWithBodyTest.java [new file with mode: 0644]
controlloop/common/model-impl/rest/src/test/java/org/onap/policy/rest/TestGet.java
controlloop/common/model-impl/rest/src/test/java/org/onap/policy/rest/TestPair.java
controlloop/common/model-impl/so/src/main/java/org/onap/policy/so/SOManager.java
controlloop/common/model-impl/so/src/main/java/org/onap/policy/so/SORequest.java
controlloop/common/model-impl/so/src/main/java/org/onap/policy/so/SoOperationType.java [new file with mode: 0644]
controlloop/common/model-impl/so/src/test/java/org/onap/policy/so/TestSoDummyServer.java
controlloop/common/model-impl/so/src/test/java/org/onap/policy/so/TestSoManager.java
controlloop/common/model-impl/so/src/test/java/org/onap/policy/so/TestSoRequest.java
controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCManager.java
controlloop/common/simulators/src/test/java/org/onap/policy/simulators/GuardSimulatorTest.java
controlloop/common/simulators/src/test/java/org/onap/policy/simulators/SoSimulatorTest.java
controlloop/common/simulators/src/test/java/org/onap/policy/simulators/VfcSimulatorTest.java