summaryrefslogtreecommitdiffstats
path: root/cba/remote-python/Definitions/remote-python.json
diff options
context:
space:
mode:
Diffstat (limited to 'cba/remote-python/Definitions/remote-python.json')
-rw-r--r--cba/remote-python/Definitions/remote-python.json229
1 files changed, 229 insertions, 0 deletions
diff --git a/cba/remote-python/Definitions/remote-python.json b/cba/remote-python/Definitions/remote-python.json
new file mode 100644
index 0000000..c002e9d
--- /dev/null
+++ b/cba/remote-python/Definitions/remote-python.json
@@ -0,0 +1,229 @@
+{
+ "metadata": {
+ "template_author": "Selffish",
+ "author-email": "test@bell.ca",
+ "template_name": "RT-remote-python",
+ "template_version": "1.0.0",
+ "template_tags": "Bell, CBA, test"
+ },
+ "dsl_definitions": {
+ "args": {
+ "arg0": "remote executor regression"
+ },
+ "remote-executor": {
+ "type": "token-auth",
+ "host": .CMD_EXEC_SVC,
+ "port": "50051",
+ "token": "Basic Y2NzZGthcHBzOmNjc2RrYXBwcw=="
+ },
+ "remote-executor-wrong-port": {
+ "type": "token-auth",
+ "host": "127.0.0.1",
+ "port": "4242",
+ "token": "Basic Y2NzZGthcHBzOmNjc2RrYXBwcw=="
+ }
+ },
+ "topology_template": {
+ "workflows": {
+ "remote-python": {
+ "steps": {
+ "execute-script": {
+ "description": "Execute Remote Python Script",
+ "target": "execute-remote-python"
+ }
+ },
+ "inputs": {
+ "input": {
+ "required": false,
+ "type": "string"
+ }
+ },
+ "outputs": {
+ "execute-command-logs": {
+ "type": "string",
+ "value": {
+ "get_attribute": [
+ "execute-remote-python",
+ "execute-command-logs"
+ ]
+ }
+ },
+ "execute-command-payload": {
+ "type": "json",
+ "value": {
+ "get_attribute": [
+ "execute-remote-python",
+ "response-data"
+ ]
+ }
+ }
+ }
+ },
+ "failing-remote-python": {
+ "steps": {
+ "execute-script": {
+ "description": "Execute Remote Python Script",
+ "target": "execute-failing-remote-python"
+ }
+ },
+ "inputs": {},
+ "outputs": {
+ "execute-command-logs": {
+ "type": "string",
+ "value": {
+ "get_attribute": [
+ "execute-failing-remote-python",
+ "execute-command-logs"
+ ]
+ }
+ },
+ "execute-command-payload": {
+ "type": "json",
+ "value": {
+ "get_attribute": [
+ "execute-failing-remote-python",
+ "response-data"
+ ]
+ }
+ }
+ }
+ },
+ "connection-fail": {
+ "steps": {
+ "execute-script": {
+ "description": "Execute Remote Python Script",
+ "target": "connection-fail"
+ }
+ },
+ "inputs": {},
+ "outputs": {
+ "execute-command-logs": {
+ "type": "string",
+ "value": {
+ "get_attribute": [
+ "connection-fail",
+ "execute-command-logs"
+ ]
+ }
+ },
+ "execute-command-payload": {
+ "type": "json",
+ "value": {
+ "get_attribute": [
+ "connection-fail",
+ "response-data"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "node_templates": {
+ "execute-remote-python": {
+ "type": "component-remote-python-executor",
+ "interfaces": {
+ "ComponentRemotePythonExecutor": {
+ "operations": {
+ "process": {
+ "implementation": {
+ "primary": "component-script",
+ "timeout": 180,
+ "operation_host": "SELF"
+ },
+ "inputs": {
+ "endpoint-selector": "remote-executor",
+ "command": "python EchoRemotePython.py",
+ "argument-properties": "*args",
+ "packages": [
+ {
+ "type": "pip",
+ "package": [
+ "requests"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ "artifacts": {
+ "component-script": {
+ "type": "artifact-script-python",
+ "file": "Scripts/python/EchoRemotePython.py"
+ }
+ }
+ },
+ "execute-failing-remote-python": {
+ "type": "component-remote-python-executor",
+ "interfaces": {
+ "ComponentRemotePythonExecutor": {
+ "operations": {
+ "process": {
+ "implementation": {
+ "primary": "component-script",
+ "timeout": 180,
+ "operation_host": "SELF"
+ },
+ "inputs": {
+ "endpoint-selector": "remote-executor",
+ "command": "python FailingRemotePython.py",
+ "argument-properties": "*args",
+ "packages": [
+ {
+ "type": "pip",
+ "package": [
+ "requests"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ "artifacts": {
+ "component-script": {
+ "type": "artifact-script-python",
+ "file": "Scripts/python/FailingRemotePython.py"
+ }
+ }
+ },
+ "connection-fail": {
+ "type": "component-remote-python-executor",
+ "interfaces": {
+ "ComponentRemotePythonExecutor": {
+ "operations": {
+ "process": {
+ "implementation": {
+ "primary": "component-script",
+ "timeout": 180,
+ "operation_host": "SELF"
+ },
+ "inputs": {
+ "endpoint-selector": "remote-executor-wrong-port",
+ "command": "python EchoRemotePython.py",
+ "argument-properties": "*args",
+ "packages": [
+ {
+ "type": "pip",
+ "package": [
+ "requests"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ "artifacts": {
+ "component-script": {
+ "type": "artifact-script-python",
+ "file": "Scripts/python/EchoRemotePython.py"
+ }
+ }
+ }
+ }
+ }
+}