bp-gen code clone from cli repo
[dcaegen2/platform.git] / mod / bpgenerator / 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                         "policy_schema": [
59                                 {
60                                         "name": "PolicySchemaTest",
61                                         "description": "List of objects for vnf type monitorng",
62                                         "type": "String",
63                                         "entry_schema": [
64                                                 {
65                                                         "name": "TestEntrySchema",
66                                                         "description": "entry",
67                                                         "type": "string",
68                                                         "value": "None"
69                                                 }
70                                         ]
71                                 }
72                         ]
73                 }
74         ],
75
76         "auxilary": {
77                 "healthcheck": {
78                         "type": "docker",
79                         "interval": "300s",
80                         "timeout": "120s",
81                         "script": "/etc/init.d/nagios status"
82                 },
83
84                 "databases" : {
85           "TestDB1": "PGaaS",
86           "TestDB2": "PGaaS"
87         },
88
89                 "policy": {
90                         "trigger_type": "docker",
91                         "script_path": "/opt/app/manager/bin/reconfigure.sh"
92                 },
93                 "volumes": [
94                         {
95                                 "container": {
96                                         "bind": "/opt/app/manager/config/hostname"
97                                 },
98                                 "host": {
99                                         "path": "/etc/hostname",
100                                         "mode": "ro"
101                                 }
102                         }
103
104                 ],
105                 "ports": [
106                         "80:80",
107                         "99:99"
108                 ]
109         },
110
111             "artifacts": [{
112                 "type": "docker image",
113                 "uri": "test.tester"
114         }]      
115
116 }