diff options
author | Dan Timoney <dtimoney@att.com> | 2019-07-31 18:08:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-31 18:08:21 +0000 |
commit | 5147200df01f2dda6592554d6759c9f38f94fb3b (patch) | |
tree | 0428fdd95a2a8110134cfddeed186b8123e19995 /components | |
parent | 79ba5452adad404504c4992442f4f6df9ff2e586 (diff) | |
parent | 307341793d257fd1a673699d97855c9b10f69fcc (diff) |
Merge "Add missing implementation and Operation Type."
Diffstat (limited to 'components')
-rw-r--r-- | components/model-catalog/blueprint-model/test-blueprint/capability_cli/Scripts/kotlin/CapabilityCliDefinitions.kt | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Scripts/kotlin/CapabilityCliDefinitions.kt b/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Scripts/kotlin/CapabilityCliDefinitions.kt index 3bf07e79d..27f9cddcf 100644 --- a/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Scripts/kotlin/CapabilityCliDefinitions.kt +++ b/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Scripts/kotlin/CapabilityCliDefinitions.kt @@ -16,10 +16,12 @@ package cba.scripts.capability.cli -import org.onap.ccsdk.cds.blueprintsprocessor.services.execution.componentScriptExecutor +import org.onap.ccsdk.cds.blueprintsprocessor.services.execution.nodeTemplateComponentScriptExecutor +import org.onap.ccsdk.cds.blueprintsprocessor.services.execution.nodeTypeComponentScriptExecutor import org.onap.ccsdk.cds.controllerblueprints.core.BluePrintTypes import org.onap.ccsdk.cds.controllerblueprints.core.data.ServiceTemplate import org.onap.ccsdk.cds.controllerblueprints.core.dsl.artifactTypeTemplateVelocity +import org.onap.ccsdk.cds.controllerblueprints.core.dsl.getAttribute import org.onap.ccsdk.cds.controllerblueprints.core.dsl.nodeTypeComponent import org.onap.ccsdk.cds.controllerblueprints.core.dsl.serviceTemplate import org.onap.ccsdk.cds.controllerblueprints.core.interfaces.AbstractBluePrintDefinitions @@ -61,14 +63,16 @@ fun CapabilityCliDefinitions.defaultServiceTemplate() = step(id = "check", target = "check", description = "Calling check script node") } - val checkComponent = componentScriptExecutor(id = "check", description = "") { - inputs { - type("kotlin") - scriptClassReference("cba.scripts.capability.cli.Check") - } - outputs { - status("success") - responseData("""{ "data" : "Here I am "}""") + val checkComponent = BluePrintTypes.nodeTemplateComponentScriptExecutor(id = "check", description = "") { + operation(description = "") { + inputs { + type("kotlin") + scriptClassReference("cba.scripts.capability.cli.Check") + } + outputs { + status(getAttribute("status")) + responseData("""{ "data" : "Here I am "}""") + } } artifact(id = "command-template", type = "artifact-template-velocity", file = "Templates/check-command-template.vtl") @@ -78,6 +82,6 @@ fun CapabilityCliDefinitions.defaultServiceTemplate() = artifactType(BluePrintTypes.artifactTypeTemplateVelocity()) nodeType(BluePrintTypes.nodeTypeComponent()) - nodeType(BluePrintTypes.componentScriptExecutor()) + nodeType(BluePrintTypes.nodeTypeComponentScriptExecutor()) }
\ No newline at end of file |