Resource resolution should return a string 49/93249/4
authorAlexis de Talhouët <adetalhouet89@gmail.com>
Fri, 9 Aug 2019 20:24:39 +0000 (16:24 -0400)
committerAlexis de Talhouët <adetalhouet89@gmail.com>
Mon, 12 Aug 2019 12:16:09 +0000 (12:16 +0000)
commitbe528653236bb3adf3711070ddfcc3206951aa76
tree81d6861b59460c3cebfc4d9757a1c626ccc168c9
parent56f989b82d6065a8aad01b28469aed16f7663e5c
Resource resolution should return a string

When being called by SDNC, expected response format is a String, not
a Json, then within SDNC we call jsonToTCtx by passing the String as
input.
When we receive the Json instead of a string, that function throw an
exception because it expects a String.
Also, SDNC marshall directly within the SLI context the Json object,
but the path isn't the one being looked for.
Finally, resource resolution, by its definition, as per as its model,
should set the returned value as a string, not a json.

Change-Id: Iffae3128507069c2546e179c17e50fb16e43f310
Issue-ID: CCSDK-1606
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/ResourceResolutionService.kt