Support group-oriented REST API 37/85237/7
authorJim Hahn <jrh3@att.com>
Fri, 12 Apr 2019 14:00:05 +0000 (10:00 -0400)
committerJim Hahn <jrh3@att.com>
Sun, 14 Apr 2019 00:21:36 +0000 (20:21 -0400)
commitd641bd5f3c4f6333e56ea85d95abb3dc124d4f4b
treeb62566d613d90db4d03a87431c300f741dccfd81
parentfb057952d747a91139bce6e259b775bf57fc158f
Support group-oriented REST API

Added code to support PDP group create/update & delete REST API calls.
The create/update request can also be used to deploy/undeploy policies.
It is assumed that the create/update request specifies a valid
list of supported policy types for each subgroup (i.e., PDP type).
Updated due to elimination of "version" from group in policy/models.
Added/updated junits.

Change-Id: I1916d9b17dfd5f12129c6f6a2fcf54e706662c10
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
22 files changed:
main/src/main/java/org/onap/policy/pap/main/rest/depundep/GroupData.java
main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeleteControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeleteProvider.java
main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeployControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeployProvider.java
main/src/main/java/org/onap/policy/pap/main/rest/depundep/ProviderBase.java
main/src/main/java/org/onap/policy/pap/main/rest/depundep/SessionData.java
main/src/test/java/org/onap/policy/pap/main/rest/depundep/ProviderSuper.java
main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestGroupData.java
main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestPdpGroupDeleteControllerV1.java
main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestPdpGroupDeleteProvider.java
main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestPdpGroupDeployProvider.java
main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestSessionData.java
main/src/test/resources/simpleDeploy/createGroupNewPolicy.json [new file with mode: 0644]
main/src/test/resources/simpleDeploy/createGroups.json [new file with mode: 0644]
main/src/test/resources/simpleDeploy/createGroupsNewSub.json [new file with mode: 0644]
main/src/test/resources/simpleDeploy/deleteGroup.json [new file with mode: 0644]
main/src/test/resources/simpleDeploy/group1.json [new file with mode: 0644]
main/src/test/resources/simpleDeploy/group2.json [new file with mode: 0644]
main/src/test/resources/simpleDeploy/group3.json [new file with mode: 0644]
main/src/test/resources/simpleDeploy/group4.json [new file with mode: 0644]
main/src/test/resources/simpleDeploy/group5.json [new file with mode: 0644]