From 507a5b3d3e8389dde606f2c9fe74408238e26680 Mon Sep 17 00:00:00 2001 From: ms236b Date: Mon, 4 Mar 2019 15:51:35 -0500 Subject: Commit for the blueprint generator java tool Fixed the issues listed in the review and added everything. Current coverage: 56.9% Issue-ID: DCAEGEN2-1125 Change-Id: Iab5ec548aeafc5c0dfdcd60ef5d03fc35190ce5b Signed-off-by: ms236b Signed-off-by: ms236b Signed-off-by: ms236b --- .../TestCases/testComponentSpec.json | 101 +++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 blueprint-generator/TestCases/testComponentSpec.json (limited to 'blueprint-generator/TestCases/testComponentSpec.json') diff --git a/blueprint-generator/TestCases/testComponentSpec.json b/blueprint-generator/TestCases/testComponentSpec.json new file mode 100644 index 0000000..a0a3489 --- /dev/null +++ b/blueprint-generator/TestCases/testComponentSpec.json @@ -0,0 +1,101 @@ +{ + "self": { + "component_type": "docker", + "description": "Test component spec", + "name": "test.component.spec", + "version": "1.0.1" + }, + + "service": { + "calls": [], + "provides": [] + }, + + "streams": { + "publishes": [{ + "config_key": "TEST-PUB-DR", + "format": "dataformat_Hello_World_PM", + "type": "data_router", + "version": "1.0.0" + }, + { + "config_key": "TEST-PUB-MR", + "format": "dataformat_Hello_World_PM", + "type": "message_router", + "version": "1.0.0" + } + ], + + "subscribes": [{ + "config_key": "TEST-SUB-MR", + "format": "dataformat_Hello_World_PM", + "route": "/TEST_HELLO_WORLD_SUB_MR", + "type": "message_router", + "version": "1.0.0" + }, + { + "config_key": "TEST-SUB-DR", + "format": "dataformat_Hello_World_PM", + "route": "/TEST-HELLO-WORLD-SUB-DR", + "type": "data_router", + "version": "1.0.0" + } + ] + }, + + "parameters": + [ + { + "name": "testParam1", + "description": "test parameter 1", + "value": "test-param-1", + "type": "string", + "sourced_at_deployment": true, + "designer_editable": true, + "policy_editable": true, + "policy_group": "Test_Parameters", + "required": true + } + ], + + "auxilary": { + "healthcheck": { + "type": "docker", + "interval": "300s", + "timeout": "120s", + "script": "/etc/init.d/nagios status" + }, + + "databases" : { + "TestDB1": "PGaaS", + "TestDB2": "PGaaS" + }, + + "policy": { + "trigger_type": "docker", + "script_path": "/opt/app/manager/bin/reconfigure.sh" + }, + "volumes": [ + { + "container": { + "bind": "/opt/app/manager/config/hostname" + }, + "host": { + "path": "/etc/hostname", + "mode": "ro" + } + } + + ], + "ports": [ + "80:80", + "99:99" + ] + }, + + "artifacts": [{ + "type": "docker image", + "uri": "test.tester" + }] + +} \ No newline at end of file -- cgit 1.2.3-korg