diff options
author | ms236b <ms236B@att.com> | 2019-03-04 15:51:35 -0500 |
---|---|---|
committer | ms236b <ms236B@att.com> | 2019-03-15 09:15:59 -0400 |
commit | 507a5b3d3e8389dde606f2c9fe74408238e26680 (patch) | |
tree | 6327edbd01cc4002f795a5e8662f95f8bc64be36 /blueprint-generator/TestCases | |
parent | 7fa68e8dec2f2f0628333261a5458299370a07dd (diff) |
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 <ms236B@att.com>
Signed-off-by: ms236b <ms236b@att.com>
Signed-off-by: ms236b <ms236B@att.com>
Diffstat (limited to 'blueprint-generator/TestCases')
-rw-r--r-- | blueprint-generator/TestCases/testComponentSpec.json | 101 | ||||
-rw-r--r-- | blueprint-generator/TestCases/testImports.yaml | 4 |
2 files changed, 105 insertions, 0 deletions
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 diff --git a/blueprint-generator/TestCases/testImports.yaml b/blueprint-generator/TestCases/testImports.yaml new file mode 100644 index 0000000..a2adaba --- /dev/null +++ b/blueprint-generator/TestCases/testImports.yaml @@ -0,0 +1,4 @@ +imports: +- test 1 +- test 2 +- test 3
\ No newline at end of file |