Modify instance resource list creation 80/86580/3
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Tue, 30 Apr 2019 01:34:39 +0000 (07:04 +0530)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Thu, 2 May 2019 11:04:39 +0000 (16:34 +0530)
commit5ed1062dcc39cfa7a99b8a5b6882a75f4acffea6
tree3087a18d758354ff3fddd544abefb197ebbbf256
parentacb8997a69725a39270a6527b33995f51c1e4586
Modify instance resource list creation

Modify instance resource list creation to avoid hard locking of
model name in UUI request.

e.g.
VF resource and gruop resource has resource input
vf { resource_input : { key1:value2, key2:[vf_prop_list,INDEX,key]|default}

Derive the key ("vf_prop_list") from resource input and use this
info to map UUI request.

UUI req:
{
...
  resourceInput: {
          vf_prop_list :   /// mapped with resource input of resource
                  {
....

Change-Id: Ic40079a094b2628bcf6f5758121b7492ee3c1353
Issue-ID: SO-1393
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
bpmn/MSOCommonBPMN/src/main/java/org/onap/so/bpmn/common/resource/InstanceResourceList.java
bpmn/MSOCommonBPMN/src/test/java/org/onap/so/bpmn/common/resource/InstnaceResourceListTest.java [new file with mode: 0644]
bpmn/MSOCommonBPMN/src/test/resources/__files/InstanceResourceList/InstanceResourceList.json [new file with mode: 0644]
bpmn/MSOCoreBPMN/src/main/java/org/onap/so/bpmn/core/domain/GroupResource.java
bpmn/MSOCoreBPMN/src/main/java/org/onap/so/bpmn/core/domain/VnfcResource.java