Fix default behavior for DatabaseResourceAssignmentProcessor 28/106128/1
authorJozsef Csongvai <jozsef.csongvai@bell.ca>
Thu, 16 Apr 2020 12:33:36 +0000 (08:33 -0400)
committerDan Timoney <dtimoney@att.com>
Mon, 20 Apr 2020 12:33:20 +0000 (12:33 +0000)
commit508c39cfc1473f081bfad0dbe438d50a5eda1e86
tree3a9a1c5cf5e119f940805f2a5b62e4457058e1ee
parent1b8d78599d5919825fca2cb314ec28a7573b3a67
Fix default behavior for DatabaseResourceAssignmentProcessor

If a data-dictionary did not declare an endpoint-selector, it would
default to primary cds-db instead of using data-dictionary source to
look up database configuration. Processor-db configurations were not
used because of this.

Also improved error messages and some refactoring.

Issue-ID: CCSDK-2315
Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
Change-Id: I7122e1334951db4eec5b9ae8b01c1f66596636f6
(cherry picked from commit 87bf1928aa4772c3b953a0a5800bec99f23b6e9c)
ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/processor/DatabaseResourceAssignmentProcessor.kt
ms/blueprintsprocessor/modules/commons/db-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/db/BluePrintDBLibConfiguration.kt
ms/blueprintsprocessor/modules/commons/db-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/db/primary/BluePrintDBLibPropertyService.kt