Merge "Refactor, fix code formatting and add unittests"
[dcaegen2/platform.git] / mod2 / catalog-service / src / test / resources / http / requests / CreateSpecificationRequest.json
1 {
2   "specContent": {
3     "self": {
4       "component_type": "docker",
5       "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",
6       "name": "dcae-collectors-vcc-helloworld-pm",
7       "version": "1.0.1"
8     },
9     "services": {
10       "calls": [],
11       "provides": []
12     },
13     "streams": {
14       "publishes": [
15         {
16           "config_key": "DCAE-HELLO-WORLD-PUB-DR",
17           "format": "dataformat_Hello_World_PM",
18           "type": "data_router",
19           "version": "1.0.0"
20         },
21         {
22           "config_key": "DCAE-HELLO-WORLD-PUB-MR",
23           "format": "dataformat_Hello_World_PM",
24           "type": "message_router",
25           "version": "1.0.0"
26         }
27       ],
28       "subscribes": [
29         {
30           "config_key": "DCAE-HELLO-WORLD-SUB-MR",
31           "format": "dataformat_Hello_World_PM",
32           "route": "/DCAE_HELLO_WORLD_SUB_MR",
33           "type": "message_router",
34           "version": "1.0.0"
35         },
36         {
37           "config_key": "DCAE-HELLO-WORLD-SUB-DR",
38           "format": "dataformat_Hello_World_PM",
39           "route": "/DCAE-HELLO-WORLD-SUB-DR",
40           "type": "data_router",
41           "version": "1.0.0"
42         }
43       ]
44     },
45     "parameters": [
46       {
47         "name": "vcc_hello_name",
48         "value": "120",
49         "type": "integer",
50         "description": "the name entered for specific person",
51         "sourced_at_deployment": false,
52         "designer_editable": false,
53         "policy_editable": false
54       },
55       {
56         "name": "useDtiConfig",
57         "value": false,
58         "type": "boolean",
59         "description": "component depends on configuration from dti.",
60         "sourced_at_deployment": false,
61         "designer_editable": true,
62         "policy_editable": false,
63         "required": true
64       },
65       {
66         "name": "isSelfServeComponent",
67         "value": false,
68         "type": "boolean",
69         "description": "Is this used as self serve component.",
70         "sourced_at_deployment": false,
71         "designer_editable": true,
72         "policy_editable": false,
73         "required": true
74       }
75     ],
76     "auxilary": {
77       "healthcheck": {
78         "interval": "60s",
79         "initialDelaySeconds": "120s",
80         "timeout": "20s",
81         "script": "/opt/app/vcc/bin/common/HealthCheck_HelloWorld.sh",
82         "type": "docker"
83       },
84       "livehealthcheck": {
85         "interval": "60s",
86         "initialDelaySeconds": "120s",
87         "timeout": "20s",
88         "script": "/opt/app/vcc/bin/common/HealthCheck_HelloWorld.sh",
89         "type": "docker"
90       },
91       "reconfigs": {
92         "app_reconfig": "abc"
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     "artifacts": [
138       {
139         "type": "docker image",
140         "uri": "dockercentral.it.att.com:5100/com.att.sample/dcae-controller-vcc-helloworld-pm:18.02-001"
141       }
142     ]
143   },
144   "policyJson": {
145     "policies": [
146       {
147         "configAttributes": "",
148         "configName": "",
149         "onapName": "DCAE",
150         "policyName": "DCAE.Config_",
151         "unique": false
152       },
153       {
154         "onapName": "DCAE",
155         "policyName": "DCAE.Config_",
156         "unique": true
157       },
158       {
159         "configAttributes": "",
160         "configName": "",
161         "onapName": "DCAE",
162         "policyName": "DCAE.Config_*",
163         "unique": false
164       }
165     ],
166     "policy": [
167       {
168         "policy_id": "id_0"
169       }
170     ]
171   },
172   "type": "K8S",
173   "user": "abc123",
174   "metadata": {
175     "notes": "Sample 812-1",
176     "labels": [
177       "LATEST"
178     ]
179   }
180 }