Fail to get assignment-params when error occur 93/91593/5
authorAlexis de Talhouët <adetalhouet89@gmail.com>
Wed, 17 Jul 2019 12:20:46 +0000 (08:20 -0400)
committerAlexis de Talhouët <adetalhouet89@gmail.com>
Wed, 17 Jul 2019 14:15:53 +0000 (14:15 +0000)
commitd5a3cb572ca9d83820e8d93feefb92de992cc044
treebfb88af0605488e20f7ac0e4fa16119a58134dfd
parentd42b731ce248b58d530901f02ac924e551b8d519
Fail to get assignment-params when error occur

Exception is always thrown due to the contract, enforcing
the get attribute to throw an exception if not found.
For the resource resolution result, we can simply initialize
the property to an empty json, so system won't throw an exception
if user request the output, but process failed.

Change-Id: I39e288590502c75495e2938a44b874dfd0671155
Issue-ID: CCSDK-1495
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/ResourceResolutionComponent.kt
ms/blueprintsprocessor/functions/resource-resolution/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/ResourceResolutionComponentTest.kt