diff options
Diffstat (limited to 'cds-regression-test/cba/py-executor/Definitions/py-executor.json')
-rw-r--r-- | cds-regression-test/cba/py-executor/Definitions/py-executor.json | 174 |
1 files changed, 174 insertions, 0 deletions
diff --git a/cds-regression-test/cba/py-executor/Definitions/py-executor.json b/cds-regression-test/cba/py-executor/Definitions/py-executor.json new file mode 100644 index 0000000..b28162c --- /dev/null +++ b/cds-regression-test/cba/py-executor/Definitions/py-executor.json @@ -0,0 +1,174 @@ +{ + "metadata": { + "template_author": "Selffish", + "author-email": "test@bell.ca", + "template_name": "RT-py-executor", + "template_version": "1.0.0", + "template_tags": "Bell, CBA, test" + }, + "dsl_definitions": { + "py-executor": { + "type": "tls-auth", + "host": "cds-py-executor-py-exec", + "port": "50052", + "trustCertCollection": "/opt/app/onap/config/certs/py-executor/py-executor-chain.pem" + }, + "invalid-py-executor": { + "type": "tls-auth", + "host": "127.0.0.1", + "port": "12345", + "trustCertCollection": "/opt/app/onap/config/certs/py-executor/py-executor-chain.pem" + }, + "parameters": { + "hello": "world" + } + }, + "topology_template": { + "workflows": { + "remote-python": { + "steps": { + "execute-script": { + "description": "Execute Remote Python Script", + "target": "execute-remote-python" + } + }, + "inputs": {}, + "outputs": { + "status": { + "type": "string", + "value": { + "get_attribute": [ + "execute-remote-python", + "status" + ] + } + }, + "response-data": { + "type": "json", + "value": { + "get_attribute": [ + "execute-remote-python", + "response-data" + ] + } + } + } + }, + "connection-fail": { + "steps": { + "execute-script": { + "description": "Execute Remote Python Script to an invalid endpoint", + "target": "execute-connection-fail" + } + }, + "inputs": {}, + "outputs": { + "status": { + "type": "string", + "value": { + "get_attribute": [ + "execute-connection-fail", + "status" + ] + } + }, + "response-data": { + "type": "json", + "value": { + "get_attribute": [ + "execute-connection-fail", + "response-data" + ] + } + } + } + }, + "failing-remote-python": { + "steps": { + "execute-script": { + "description": "Execute Remote Python Script", + "target": "execute-failing-remote-python" + } + }, + "inputs": {}, + "outputs": { + "status": { + "type": "string", + "value": { + "get_attribute": [ + "execute-failing-remote-python", + "status" + ] + } + }, + "response-data": { + "type": "json", + "value": { + "get_attribute": [ + "execute-failing-remote-python", + "response-data" + ] + } + } + } + } + }, + "node_templates": { + "execute-remote-python": { + "type": "component-remote-script-executor", + "interfaces": { + "ComponentRemoteScriptExecutor": { + "operations": { + "process": { + "inputs": { + "selector": "*py-executor", + "blueprint-name": "RT-py-executor", + "blueprint-version": "1.0.0", + "blueprint-action": "HelloWorld", + "timeout": 1000, + "request-data": "*parameters" + } + } + } + } + } + }, + "execute-connection-fail": { + "type": "component-remote-script-executor", + "interfaces": { + "ComponentRemoteScriptExecutor": { + "operations": { + "process": { + "inputs": { + "selector": "*invalid-py-executor", + "blueprint-name": "RT-py-executor", + "blueprint-version": "1.0.0", + "blueprint-action": "HelloWorld", + "timeout": 1000 + } + } + } + } + } + }, + "execute-failing-remote-python": { + "type": "component-remote-script-executor", + "interfaces": { + "ComponentRemoteScriptExecutor": { + "operations": { + "process": { + "inputs": { + "selector": "*py-executor", + "blueprint-name": "RT-py-executor", + "blueprint-version": "1.0.0", + "blueprint-action": "FailingScript", + "timeout": 1000 + } + } + } + } + } + } + } + } +} |