Adjust DCAE-DS CSIT for Jenkins and to master
[integration/csit.git] / tests / sdc-dcae-d / dcaed / assets / translate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: tca-docker_translate
4 imports:
5 - schema: schema.yaml
6 topology_template:
7   inputs:
8     cpu_period:
9       type: integer
10       default: 10000
11     cpu_quota:
12       type: integer
13       default: 30000
14     cpu_shares:
15       type: integer
16       default: 256
17     image:
18       type: string
19     location_id:
20       type: string
21     mem_limit:
22       type: string
23       default: 500m
24     restart_policy.Name:
25       type: string
26       default: on-failure
27     restart_policy.max_retry_counts:
28       type: integer
29       default: 3
30     service_component_type:
31       type: string
32   substitution_mappings:
33     node_type: tosca.dcae.nodes.dockerApp.tca-docker
34     capabilities: {}
35     requirements:
36       host:
37       - tca-docker
38       - host
39       stream_publish_0:
40       - tca-docker
41       - stream_publish_0
42       stream_subscribe_0:
43       - tca-docker
44       - stream_subscribe_0
45   node_templates:
46     tca-docker:
47       type: dcae.nodes.DockerContainerForComponentsUsingDmaap
48       properties:
49         application_config:
50           services_calls: {}
51           streams_publishes:
52             tca_handle_out:
53               aaf_password:
54                 get_property:
55                 - SELF
56                 - stream_publish_0
57                 - aaf_password
58               aaf_username:
59                 get_property:
60                 - SELF
61                 - stream_publish_0
62                 - aaf_username
63               dmaap_info:
64                 concat:
65                 - '<<'
66                 - get_property:
67                   - SELF
68                   - stream_publish_0
69                   - node_name
70                 - '>>'
71               type: message_router
72           streams_subscribes:
73             tca_handle_in:
74               aaf_password:
75                 get_property:
76                 - SELF
77                 - stream_subscribe_0
78                 - aaf_password
79               aaf_username:
80                 get_property:
81                 - SELF
82                 - stream_subscribe_0
83                 - aaf_username
84               dmaap_info:
85                 concat:
86                 - '<<'
87                 - get_property:
88                   - SELF
89                   - stream_subscribe_0
90                   - node_name
91                 - '>>'
92               type: message_router
93         docker_config:
94           healthcheck:
95             endpoint: /
96             interval: 15s
97             timeout: 1s
98             type: https
99           ports:
100           - 11011:11011
101         image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tca-cdap-container:1.1.0
102         location_id:
103           get_input: location_id
104         service_component_type: tca-docker
105         streams_publishes:
106         - client_role:
107             get_property:
108             - SELF
109             - stream_publish_0
110             - client_role
111           location:
112             get_property:
113             - SELF
114             - stream_publish_0
115             - location
116           name:
117             get_property:
118             - SELF
119             - stream_publish_0
120             - node_name
121           type: message_router
122         streams_subscribes:
123         - client_role:
124             get_property:
125             - SELF
126             - stream_subscribe_0
127             - client_role
128           location:
129             get_property:
130             - SELF
131             - stream_subscribe_0
132             - location
133           name:
134             get_property:
135             - SELF
136             - stream_subscribe_0
137             - node_name
138           type: message_router
139       interfaces:
140         cloudify.interfaces.lifecycle:
141           type: tosca.interfaces.Root
142           start:
143             inputs:
144               host_config: null
145           stop:
146             inputs:
147               cleanup_image: null