Fix exception handling in AbstractComponentFunction 24/109424/1
authorJozsef Csongvai <jozsef.csongvai@bell.ca>
Mon, 22 Jun 2020 18:05:45 +0000 (14:05 -0400)
committerJozsef Csongvai <jozsef.csongvai@bell.ca>
Mon, 22 Jun 2020 18:18:57 +0000 (14:18 -0400)
commitc0ae9f7eff91b8cd8e0567adaadbc766c10c3c3c
tree43146654593475508f243a4937bf6085a6196630
parentee2c950e05901c92fd45a24898b7e8bb2418bc77
Fix exception handling in AbstractComponentFunction

Moved try-catch to applyNB so that it also catches exceptions
in prepareRequestNB. This restores exception handling to the
way it was before introduction of locking feature.

Issue-ID: CCSDK-2460
Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
Change-Id: I20326d9a79ac5fbae630eda8530e8428cdb4f84c
ms/blueprintsprocessor/modules/services/execution-service/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/AbstractComponentFunction.kt
ms/blueprintsprocessor/modules/services/execution-service/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/scripts/AbstractComponentFunctionTest.kt