diff options
author | Brinda Santh <brindasanth@in.ibm.com> | 2019-08-01 21:00:05 -0400 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2019-08-09 20:03:06 +0000 |
commit | 2d879240396861aa253dd65b2476f35a2ffc0493 (patch) | |
tree | 8d21c269942cd4ef708f915c79dc5e3f28a90698 /ms/blueprintsprocessor/functions/python-executor | |
parent | f48dcc232cfd6e7c11c1155a58f6017d3a71c007 (diff) |
Add property definition type DSL.
Change-Id: I83a3d1391c60cd426236b55d0d399e273e7c15dc
Issue-ID: CCSDK-1577
Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
Diffstat (limited to 'ms/blueprintsprocessor/functions/python-executor')
2 files changed, 6 insertions, 6 deletions
diff --git a/ms/blueprintsprocessor/functions/python-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/python/executor/ComponentRemotePythonExecutorDSL.kt b/ms/blueprintsprocessor/functions/python-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/python/executor/ComponentRemotePythonExecutorDSL.kt index fee87498d..6a60c98cd 100644 --- a/ms/blueprintsprocessor/functions/python-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/python/executor/ComponentRemotePythonExecutorDSL.kt +++ b/ms/blueprintsprocessor/functions/python-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/python/executor/ComponentRemotePythonExecutorDSL.kt @@ -25,7 +25,7 @@ import org.onap.ccsdk.cds.controllerblueprints.core.asJsonType import org.onap.ccsdk.cds.controllerblueprints.core.data.DataType import org.onap.ccsdk.cds.controllerblueprints.core.data.NodeTemplate import org.onap.ccsdk.cds.controllerblueprints.core.data.NodeType -import org.onap.ccsdk.cds.controllerblueprints.core.dsl.AbstractNodeTemplateImplBuilder +import org.onap.ccsdk.cds.controllerblueprints.core.dsl.AbstractNodeTemplateOperationImplBuilder import org.onap.ccsdk.cds.controllerblueprints.core.dsl.PropertiesAssignmentBuilder import org.onap.ccsdk.cds.controllerblueprints.core.dsl.dataType import org.onap.ccsdk.cds.controllerblueprints.core.dsl.nodeType @@ -89,13 +89,13 @@ fun BluePrintTypes.dataTypeDtSystemPackages(): DataType { /** Component Builder */ fun BluePrintTypes.nodeTemplateComponentRemotePythonExecutor(id: String, description: String, - block: ComponentRemotePythonExecutorNodeTemplateImplBuilder.() -> Unit) + block: ComponentRemotePythonExecutorNodeTemplateOperationImplBuilder.() -> Unit) : NodeTemplate { - return ComponentRemotePythonExecutorNodeTemplateImplBuilder(id, description).apply(block).build() + return ComponentRemotePythonExecutorNodeTemplateOperationImplBuilder(id, description).apply(block).build() } -class ComponentRemotePythonExecutorNodeTemplateImplBuilder(id: String, description: String) : - AbstractNodeTemplateImplBuilder<ComponentRemotePythonExecutorInputAssignmentBuilder, +class ComponentRemotePythonExecutorNodeTemplateOperationImplBuilder(id: String, description: String) : + AbstractNodeTemplateOperationImplBuilder<PropertiesAssignmentBuilder, ComponentRemotePythonExecutorInputAssignmentBuilder, ComponentRemotePythonExecutorOutputAssignmentBuilder>(id, "component-remote-python-executor", "ComponentRemotePythonExecutor", description) diff --git a/ms/blueprintsprocessor/functions/python-executor/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/python/executor/ComponentRemotePythonExecutorDSLTest.kt b/ms/blueprintsprocessor/functions/python-executor/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/python/executor/ComponentRemotePythonExecutorDSLTest.kt index 5c4b59034..18eb77b80 100644 --- a/ms/blueprintsprocessor/functions/python-executor/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/python/executor/ComponentRemotePythonExecutorDSLTest.kt +++ b/ms/blueprintsprocessor/functions/python-executor/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/python/executor/ComponentRemotePythonExecutorDSLTest.kt @@ -33,7 +33,7 @@ class ComponentRemotePythonExecutorDSLTest { fun testNodeTemplateComponentRemotePythonExecutor() { val nodeTemplate = BluePrintTypes.nodeTemplateComponentRemotePythonExecutor("test-nodetemplate", "test nodetemplate") { - operation("test operation") { + definedOperation("test operation") { inputs { endpointSelector("remote-container") command("python sample.py") |