Fix OOF serviceResourceId bug 33/49733/1
authorMarcus G K Williams <marcus.williams@intel.com>
Thu, 31 May 2018 10:52:10 +0000 (03:52 -0700)
committerMarcus G K Williams <marcus.williams@intel.com>
Thu, 31 May 2018 10:52:23 +0000 (03:52 -0700)
commitef58615371f366eb8415f69b73ad5e0d52910a11
tree3433d2685e87c252e3ab4c4bf30d160dcbcb6cdd
parentd0e24a65c4f84bcd5322b02abd0e19eb1a4d7c78
Fix OOF serviceResourceId bug

- Works around a bug in OOF
where OOF does not return a serviceResourceId
with homing solutions. SO uses serviceResourceId
to match a homing deman to a homing request.
This patch addes resourceModuleName as another
way to match a demand to a request, as currently
OOF needs this to be unique.

- Changes SO homing processing of key cloudRegionId to
key locationId as this is now the key used for cloudRegionId
in solutions sent back from OOF

Issue-ID: OPTFRA-249
Change-Id: I8e5d9244a227ea4d3d061a758f202144bac270ce
Signed-off-by: Marcus G K Williams <marcus.williams@intel.com>
bpmn/MSOCommonBPMN/src/main/groovy/org/openecomp/mso/bpmn/common/scripts/OofHoming.groovy
bpmn/MSOCommonBPMN/src/test/resources/__files/BuildingBlocks/oofCallback2AR1Vnf
bpmn/MSOCommonBPMN/src/test/resources/__files/BuildingBlocks/oofCallback2AR1Vnf2Net
bpmn/MSOCommonBPMN/src/test/resources/__files/BuildingBlocks/oofCallbackInfraVnf
bpmn/MSOCommonBPMN/src/test/resources/__files/BuildingBlocks/oofCatalogResp.json