From d3cdace51db473c93540229da3a0fd061120957c Mon Sep 17 00:00:00 2001 From: SantoshB Date: Thu, 15 Oct 2020 14:57:57 +0530 Subject: cds-bash script package Issue-ID: CCSDK-2913 Change-Id: I2f97b0c78314019d5002e8563c4e433ae5e816b9 Signed-off-by: SantoshB Signed-off-by: mrichomme --- .../cba/cli/frankfurt/Definitions/cli.json | 113 +++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 cds-regression-test/cba/cli/frankfurt/Definitions/cli.json (limited to 'cds-regression-test/cba/cli/frankfurt/Definitions/cli.json') diff --git a/cds-regression-test/cba/cli/frankfurt/Definitions/cli.json b/cds-regression-test/cba/cli/frankfurt/Definitions/cli.json new file mode 100644 index 0000000..c0070da --- /dev/null +++ b/cds-regression-test/cba/cli/frankfurt/Definitions/cli.json @@ -0,0 +1,113 @@ +{ + "metadata": { + "template_author": "Selffish", + "author-email": "test@bell.ca", + "template_name": "RT-cli", + "template_version": "1.0.0", + "template_tags": "test, regression" + }, + "dsl_definitions": { + "device-properties": { + "type": "basic-auth", + "host": { + "get_input": "host" + }, + "username": { + "get_input": "username" + }, + "password": { + "get_input": "password" + }, + "port": { + "get_input": "port" + }, + "logging": { + "get_input": "logging" + }, + "connectionTimeOut": { + "get_input": "connectionTimeOut" + } + } + }, + "topology_template": { + "workflows": { + "cli": { + "steps": { + "cli": { + "description": "CLI Workflow", + "target": "cli" + } + }, + "inputs": { + "resolution-key": { + "required": false, + "type": "string" + }, + "password": { + "required": true, + "type": "string" + }, + "username": { + "required": true, + "type": "string" + }, + "host": { + "required": true, + "type": "string" + }, + "port": { + "required": false, + "type": "string" + }, + "connectionTimeOut": { + "required": true, + "type": "string" + }, + "logging": { + "required": true, + "type": "boolean" + }, + "commands": { + "required": true, + "type": "list", + "entry_schema": { + "type": "string" + } + } + }, + "outputs": { + "response-data": { + "type": "string", + "value": { + "get_attribute": [ + "cli", + "response-data" + ] + } + } + } + } + }, + "node_templates": { + "cli": { + "type": "component-script-executor", + "interfaces": { + "ComponentScriptExecutor": { + "operations": { + "process": { + "implementation": { + "primary": "component-script" + }, + "inputs": { + "script-type": "kotlin", + "script-class-reference": "cli.CliRegressionTest" + }, + "outputs": {} + } + } + } + } + } + } + } +} -- cgit 1.2.3-korg