Fix default behavior for DatabaseResourceAssignmentProcessor 99/106099/1
authorJozsef Csongvai <jozsef.csongvai@bell.ca>
Thu, 16 Apr 2020 12:33:36 +0000 (08:33 -0400)
committerJozsef Csongvai <jozsef.csongvai@bell.ca>
Thu, 16 Apr 2020 12:33:36 +0000 (08:33 -0400)
commit87bf1928aa4772c3b953a0a5800bec99f23b6e9c
tree5aabbe00a74577f7eb119b1a94c8de4e903ce263
parent3a27f2fee05ef874181ea818f28329c2567e52c5
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
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