Resource endpoint should support occurrences 29/129329/1
authorKuldip Rai <kuldip.rai@bell.ca>
Wed, 16 Mar 2022 14:26:30 +0000 (14:26 +0000)
committerkuldipr <kuldip.rai@amdocs.com>
Thu, 19 May 2022 15:52:25 +0000 (11:52 -0400)
commita1142669cd10f47d8178230500012e6421722c30
treeb54242da6f068e2e1a940c96cb77b768df3166ab
parentc3943fbc70105c4ce38d66c7cbe227ddec35d535
Resource endpoint should support occurrences

The getOneFromResolutionKey endpoint would fail if there are multiple
occurrences for a resource. Instead it should return the last occurrence.

Issue-ID: CCSDK-3664
Signed-off-by: kuldipr <kuldip.rai@amdocs.com>
Change-Id: I1468c41c164f64931ce719f9908b935baae6e1a4
ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/db/ResourceResolutionDBService.kt
ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/db/ResourceResolutionRepository.kt
ms/blueprintsprocessor/functions/resource-resolution/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/db/ResourceResolutionDBServiceTest.kt
ms/blueprintsprocessor/modules/inbounds/resource-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/resource/api/ResourceController.kt