a0a34895294fe723b5423a19d808eecfe9748b19
[dcaegen2/platform/cli.git] / blueprint-generator / TestCases / testComponentSpec.json
1 {
2         "self": {
3                 "component_type": "docker",
4                 "description": "Test component spec",
5                 "name": "test.component.spec",
6                 "version": "1.0.1"
7         },
8
9         "service": {
10                 "calls": [],
11                 "provides": []
12         },
13
14         "streams": {
15                 "publishes": [{
16                                 "config_key": "TEST-PUB-DR",
17                                 "format": "dataformat_Hello_World_PM",
18                                 "type": "data_router",
19                                 "version": "1.0.0"
20                         },
21                         {
22                                 "config_key": "TEST-PUB-MR",
23                                 "format": "dataformat_Hello_World_PM",
24                                 "type": "message_router",
25                                 "version": "1.0.0"
26                         }
27                 ],
28
29                 "subscribes": [{
30                                 "config_key": "TEST-SUB-MR",
31                                 "format": "dataformat_Hello_World_PM",
32                                 "route": "/TEST_HELLO_WORLD_SUB_MR",
33                                 "type": "message_router",
34                                 "version": "1.0.0"
35                         },
36                         {
37                                 "config_key": "TEST-SUB-DR",
38                                 "format": "dataformat_Hello_World_PM",
39                                 "route": "/TEST-HELLO-WORLD-SUB-DR",
40                                 "type": "data_router",
41                                 "version": "1.0.0"
42                         }               
43                 ]
44         },
45
46         "parameters":
47         [
48                 {
49                         "name": "testParam1",
50                         "description": "test parameter 1",
51                         "value": "test-param-1",
52                         "type": "string",
53                         "sourced_at_deployment": true,
54                         "designer_editable": true,
55                         "policy_editable": true,
56                         "policy_group": "Test_Parameters",
57                         "required": true
58                 }
59         ],
60
61         "auxilary": {
62                 "healthcheck": {
63                         "type": "docker",
64                         "interval": "300s",
65                         "timeout": "120s",
66                         "script": "/etc/init.d/nagios status"
67                 },
68
69                 "databases" : {
70           "TestDB1": "PGaaS",
71           "TestDB2": "PGaaS"
72         },
73
74                 "policy": {
75                         "trigger_type": "docker",
76                         "script_path": "/opt/app/manager/bin/reconfigure.sh"
77                 },
78                 "volumes": [
79                         {
80                                 "container": {
81                                         "bind": "/opt/app/manager/config/hostname"
82                                 },
83                                 "host": {
84                                         "path": "/etc/hostname",
85                                         "mode": "ro"
86                                 }
87                         }
88
89                 ],
90                 "ports": [
91                         "80:80",
92                         "99:99"
93                 ]
94         },
95
96             "artifacts": [{
97                 "type": "docker image",
98                 "uri": "test.tester"
99         }]      
100
101 }