summaryrefslogtreecommitdiffstats
path: root/cds-regression-test/cba/cba/cli/elalto/Definitions/cli.json
diff options
context:
space:
mode:
Diffstat (limited to 'cds-regression-test/cba/cba/cli/elalto/Definitions/cli.json')
-rw-r--r--cds-regression-test/cba/cba/cli/elalto/Definitions/cli.json106
1 files changed, 106 insertions, 0 deletions
diff --git a/cds-regression-test/cba/cba/cli/elalto/Definitions/cli.json b/cds-regression-test/cba/cba/cli/elalto/Definitions/cli.json
new file mode 100644
index 0000000..722663e
--- /dev/null
+++ b/cds-regression-test/cba/cba/cli/elalto/Definitions/cli.json
@@ -0,0 +1,106 @@
+{
+ "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"
+ },
+ "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"
+ },
+ "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": {}
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}