diff options
author | 2019-11-20 12:32:48 -0500 | |
---|---|---|
committer | 2019-12-11 14:28:38 -0500 | |
commit | cc9d389bf197c1a365e669b407ea781f2bc87fd4 (patch) | |
tree | 9c4c8fdc265a4119d42dc8851aeead16a7767ce3 /mod/runtimeapi/runtime-web/src/test/data/compspecs | |
parent | 849da15d5b7ddc68e4c2b90b603fc8948d4b5e6d (diff) |
Add mod/runtimeapi
Change-Id: I6c0a45ddf460a63a1e4b9284e19bf4ab111bd463
Issue-ID: DCAEGEN2-1860
Signed-off-by: Michael Hwang <mhwang@research.att.com>
Diffstat (limited to 'mod/runtimeapi/runtime-web/src/test/data/compspecs')
-rw-r--r-- | mod/runtimeapi/runtime-web/src/test/data/compspecs/componentSpec_New_Toolbox.json | 37 | ||||
-rw-r--r-- | mod/runtimeapi/runtime-web/src/test/data/compspecs/componentSpec_hello_world.json | 138 |
2 files changed, 175 insertions, 0 deletions
diff --git a/mod/runtimeapi/runtime-web/src/test/data/compspecs/componentSpec_New_Toolbox.json b/mod/runtimeapi/runtime-web/src/test/data/compspecs/componentSpec_New_Toolbox.json new file mode 100644 index 0000000..dd4be46 --- /dev/null +++ b/mod/runtimeapi/runtime-web/src/test/data/compspecs/componentSpec_New_Toolbox.json @@ -0,0 +1,37 @@ +{ + "self": { + "component_type": "docker", + "description": "This is the blueprint to deploy the DCAE Toolbox GUI.", + "name": "dcae-controller-toolbox-gui", + "version": "2.0.0" + }, + + "services": { + "calls": [], + "provides": [] + }, + + "streams": { + "publishes": [], + "subscribes": [] + }, + + "parameters": [], + + "auxilary": { + "healthcheck": { + "interval": "360s", + "timeout": "120s", + "endpoint": "/actuator/health", + "type": "http" + }, + + "volumes": [], + "ports" : ["8080:30998"] + }, + + "artifacts": [{ + "type": "docker image", + "uri": "dcae-controller-tosca-gui:2.0.3" + }] +}
\ No newline at end of file diff --git a/mod/runtimeapi/runtime-web/src/test/data/compspecs/componentSpec_hello_world.json b/mod/runtimeapi/runtime-web/src/test/data/compspecs/componentSpec_hello_world.json new file mode 100644 index 0000000..cd394f8 --- /dev/null +++ b/mod/runtimeapi/runtime-web/src/test/data/compspecs/componentSpec_hello_world.json @@ -0,0 +1,138 @@ +{ + "self": { + "component_type": "docker", + "description": "Hello World mS for subscribing the data from local DMaaP, DR or MR, processing them and publishing them as PM files to local DMaaP DR", + "name": "dcae-collectors-vcc-helloworld-pm", + "version": "1.0.1" + }, + + "services": { + "calls": [], + "provides": [] + }, + + "streams": { + "publishes": [{ + "config_key": "DCAE-HELLO-WORLD-PUB-DR", + "format": "dataformat_Hello_World_PM", + "type": "data_router", + "version": "1.0.0" + }, + { + "config_key": "DCAE-HELLO-WORLD-PUB-MR", + "format": "dataformat_Hello_World_PM", + "type": "message_router", + "version": "1.0.0" + } + ], + + "subscribes": [{ + "config_key": "DCAE-HELLO-WORLD-SUB-MR", + "format": "dataformat_Hello_World_PM", + "route": "/DCAE_HELLO_WORLD_SUB_MR", + "type": "message_router", + "version": "1.0.0" + }, + { + "config_key": "DCAE-HELLO-WORLD-SUB-DR", + "format": "dataformat_Hello_World_PM", + "route": "/DCAE-HELLO-WORLD-SUB-DR", + "type": "data_router", + "version": "1.0.0" + } + ] + }, + + "parameters": + [ + { + "name": "vcc_hello_name", + "value": "", + "type": "string", + "description": "the name entered for specific person", + "sourced_at_deployment": true, + "designer_editable": false, + "policy_editable": false + }, + + { + "name": "useDtiConfig", + "value": false, + "type": "boolean", + "description": "component depends on configuration from dti.", + "sourced_at_deployment": false, + "designer_editable": true, + "policy_editable": false, + "required" : true + }, + + { + "name": "isSelfServeComponent", + "value": false, + "type": "boolean", + "description": "Is this used as self serve component.", + "sourced_at_deployment": false, + "designer_editable": true, + "policy_editable": false, + "required" : true + } + ], + + "auxilary": { + "healthcheck": { + "interval": "60s", + "timeout": "20s", + "script": "/opt/app/vcc/bin/common/HealthCheck_HelloWorld.sh", + "type": "docker" + }, + + "volumes": [ + { + "container": { + "bind": "/opt/app/dcae-certificate" + }, + "host": { + "path": "/opt/app/dcae-certificate" + } + }, + { + "container": { + "bind": "/opt/logs/DCAE/dmd/AGENT" + }, + "host": { + "path": "/opt/logs/DCAE/helloworldpm/dmd/AGENT" + } + }, + { + "container": { + "bind": "/opt/logs/DCAE/dmd/WATCHER" + }, + "host": { + "path": "/opt/logs/DCAE/helloworldpm/dmd/WATCHER" + } + }, + { + "container": { + "bind": "/opt/app/vcc/logs/DCAE" + }, + "host": { + "path": "/opt/logs/DCAE/helloworldpm/vcc-logs" + } + }, + { + "container": { + "bind": "/opt/app/vcc/archive/data" + }, + "host": { + "path": "/opt/data/DCAE/helloworldpm/vcc-archive" + } + } + + ] + }, + + "artifacts": [{ + "type": "docker image", + "uri": "dcae-controller-vcc-helloworld-pm:18.02-001" + }] +}
\ No newline at end of file |