Merge "Added policyNodes, db, tls support"
[dcaegen2/platform.git] / mod / bpgenerator / TestCases / helloworld / compspec / hello-changed.json
1 {
2         "self": {
3                 "component_type": "docker",
4                 "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",
5                 "name": "dcae.collectors.vcc.helloworld.pm",
6                 "version": "1.0.1"
7         },
8         "services": {
9                 "calls": [],
10                 "provides": []
11         },
12         "streams": {
13                 "publishes": [{
14                                 "config_key": "DCAE-HELLO-WORLD-PUB-DR",
15                                 "format": "dataformat_Hello_World_PM",
16                                 "type": "data_router",
17                                 "version": "1.0.0"
18                         },
19                         {
20                                 "config_key": "DCAE-HELLO-WORLD-PUB-MR",
21                                 "format": "dataformat_Hello_World_PM",
22                                 "type": "message_router",
23                                 "version": "1.0.0"
24                         }
25                 ],
26                 "subscribes": [{
27                                 "config_key": "DCAE-HELLO-WORLD-SUB-MR",
28                                 "format": "dataformat_Hello_World_PM",
29                                 "route": "/DCAE_HELLO_WORLD_SUB_MR",
30                                 "type": "message_router",
31                                 "version": "1.0.0"
32                         },
33                         {
34                                 "config_key": "DCAE-HELLO-WORLD-SUB-DR",
35                                 "format": "dataformat_Hello_World_PM",
36                                 "route": "/DCAE-HELLO-WORLD-SUB-DR",
37                                 "type": "data_router",
38                                 "version": "1.0.0"
39                         }               
40                 ]
41         },
42     "parameters": 
43     [
44         {
45             "name": "vcc_hello_name",
46             "value": "fsdfa",
47             "description": "the name entered for specific person",
48                         "sourced_at_deployment": true,
49                         "designer_editable": true,
50                         "policy_editable": false,
51                         "type": "string"         
52         },
53         
54         {
55                         "name": "useDtiConfig",
56                         "value": false,
57                         "description": "component depends on configuration from dti.",
58                         "sourced_at_deployment": false,
59                         "designer_editable": false,
60                         "policy_editable": false,
61                          "required" : true
62                 },
63
64                 {
65                         "name": "isSelfServeComponent",
66                         "value": false,
67                         "description": "Is this used as self serve component.",
68                         "sourced_at_deployment": false,
69                         "designer_editable": false,
70                         "policy_editable": false,
71                         "required" : true,
72                         "type": "string"
73                 }
74     ],
75         "auxilary": {
76                 "healthcheck": {
77                         "interval": "60s",
78                         "timeout": "20s",
79                         "script": "/opt/app/vcc/bin/common/HealthCheck_HelloWorld.sh",
80                         "type": "docker"
81                 },
82                 "log_info": {
83                         "log_directory": "/opt/app/VESCollector/logs/ecomp"
84                 },
85                 "tls_info":{
86                         "cert_directory":"/opt/app/dh/etc/cert",
87                         "use_tls":true
88                 },
89                 "databases": {
90                         "dcaes": "PgaaS",
91                         "repo": "PgaaS",
92                         "dti": "pgaas"
93                 },
94                 "volumes": [
95                 {
96                         "container": {
97                         "bind": "/opt/app/dcae-certificate"
98                         },
99                         "host": {
100                                 "path": "/opt/app/dcae-certificate"
101                         }
102                 },
103                 {
104                         "container": {
105                         "bind": "/opt/logs/DCAE/dmd/AGENT"
106                         },
107                         "host": {
108                                 "path": "/opt/logs/DCAE/helloworldpm/dmd/AGENT"
109                         }
110                 },
111                 {
112                         "container": {
113                         "bind": "/opt/logs/DCAE/dmd/WATCHER"
114                         },
115                         "host": {
116                                 "path": "/opt/logs/DCAE/helloworldpm/dmd/WATCHER"
117                         }
118                 },
119                 {
120                         "container": {
121                         "bind": "/opt/app/vcc/logs/DCAE"
122                         },
123                         "host": {
124                                 "path": "/opt/logs/DCAE/helloworldpm/vcc-logs"
125                         }
126                 },
127                 {
128                         "container": {
129                         "bind": "/opt/app/vcc/archive/data"
130                         },
131                         "host": {
132                                 "path": "/opt/data/DCAE/helloworldpm/vcc-archive"
133                         }
134                 }
135         ]        
136     },
137         "policy_info":{
138                 "policy":[
139                         {
140                         "node_label":"tca_policy_00",
141                         "policy_model_id":"onap.policies.monitoring.cdap.tca.hi.lo.app"
142                         },
143                         {
144                                 "node_label":"tca_policy_11",
145                                 "policy_id":"tca_policy_id_11",
146                                 "policy_model_id":"onap.policies.monitoring.cdap.tca.hi.lo.app"
147                         }
148                 ]
149         },
150         "artifacts": [{
151                 "type": "docker image",
152                 "uri": "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:latest"
153         }]      
154 }