Do not throw exception when no data exist. 72/94972/3
authorAlexis de Talhouët <adetalhouet89@gmail.com>
Wed, 4 Sep 2019 18:57:51 +0000 (14:57 -0400)
committerAlexis de Talhouët <adetalhouet89@gmail.com>
Thu, 5 Sep 2019 13:38:09 +0000 (09:38 -0400)
commit1e85e4ee328b0d6aae39c6b7275a5fd949296b00
tree99cdd845ba336f4121dc9fd9ccbaf3a64895b499
parent23edb472bde9cf4fc119bc538dc51f5e16c9865f
Do not throw exception when no data exist.

The first time we're doing a diff, if a store operation has
never been done before, we shouldn't throw exception, we should
silently succeed and set the diff as empty value.

Change-Id: Ie2371737758a1525da6b76ac85bceb7fe1aa4673
Issue-ID: CCSDK-1690
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
ms/blueprintsprocessor/functions/config-snapshots/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/config/snapshots/ComponentConfigSnapshotsExecutor.kt
ms/blueprintsprocessor/functions/config-snapshots/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/config/snapshots/db/ResourceConfigSnapshotService.kt
ms/blueprintsprocessor/functions/config-snapshots/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/config/snapshots/ComponentConfigSnapshotsExecutorTest.kt
ms/blueprintsprocessor/functions/config-snapshots/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/config/snapshots/db/ResourceConfigSnapshotServiceTest.kt
ms/blueprintsprocessor/modules/inbounds/configs-api/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/configs/api/ResourceConfigSnapshotControllerTest.kt