From aecf1a0e9e03ecf9ecf631d8c8a38539313be31a Mon Sep 17 00:00:00 2001 From: "Singal, Kapil (ks220y)" Date: Mon, 14 Oct 2019 16:37:45 -0400 Subject: Component Script Executor Fix Fixing ExecutionServiceInput object initialization and related test cases Issue-ID: CCSDK-1829 Signed-off-by: Singal, Kapil (ks220y) Change-Id: I43354487abfb10a98b29d749aa77b08cfdff51b8 --- .../capability_cli/Scripts/kotlin/cba/capability/cli/CapabilityCli.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'components/model-catalog/blueprint-model/test-blueprint/capability_cli/Scripts') diff --git a/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Scripts/kotlin/cba/capability/cli/CapabilityCli.kt b/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Scripts/kotlin/cba/capability/cli/CapabilityCli.kt index d29abb0d2..9552b6136 100644 --- a/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Scripts/kotlin/cba/capability/cli/CapabilityCli.kt +++ b/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Scripts/kotlin/cba/capability/cli/CapabilityCli.kt @@ -35,7 +35,8 @@ open class Check : AbstractScriptComponentFunction() { override suspend fun processNB(executionRequest: ExecutionServiceInput) { log.info("Executing process : ${executionRequest.payload}") - val data = executionRequest.payload.at("/check-request/data") + val data = requestPayloadActionProperty("data")?.first() + ?: throw BluePrintProcessorException("Failed to load payload data properties.") log.info("Data : ${data.asJsonString()}") -- cgit 1.2.3-korg