Enhancing BluePrintJinjaTemplateService 80/133880/1
authorSingal, Kapil (ks220y) <ks220y@att.com>
Mon, 8 May 2023 13:10:58 +0000 (09:10 -0400)
committerKAPIL SINGAL <ks220y@att.com>
Mon, 8 May 2023 13:46:41 +0000 (13:46 +0000)
commit26628bf766b14d66f683a4608b97b7538ca582d6
tree980a42b431ce7a193b757a9f0d744b15b2f470c2
parent2c31f21221231028fad943a231ee2d4c4fe256e1
Enhancing BluePrintJinjaTemplateService

* Using CustomJinjavaInterpreter to override getAsString API, and returning context.currentNode.master.image instead of empty string
* Earlier rendered result was not keeping unresolved variable rather replacing with empty string, and above helps keeping those.
* Upgrading jinja.version to 2.7.0 from 2.5.1 and adding related Junit Test

Issue-ID: CCSDK-3895
Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com>
Change-Id: I00da64811883957f44f819a44405e073ed7a7755
components/model-catalog/blueprint-model/archetype-blueprint/src/main/resources/archetype-resources/Tests/kotlin/default-variable-value-data.txt
ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/service/BluePrintJinjaTemplateService.kt
ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/test/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/service/BluePrintTemplateServiceTest.kt
ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/test/resources/templates/default-variable-jinja-template-resolved.jinja [new file with mode: 0644]
ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/test/resources/templates/default-variable-jinja-template.jinja [new file with mode: 0644]
ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/test/resources/templates/default-variable-value-data.json
ms/blueprintsprocessor/parent/pom.xml