Merge "Improve test coverage in UserJsonDecoder"
[clamp.git] / src / test / resources / example / sdc / blueprint-dcae / tca_3.yaml
1 tosca_definitions_version: cloudify_dsl_1_3
2
3 description: >
4   This blueprint deploys/manages the TCA module as a Docker container
5
6 imports:
7   - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
8   - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/k8splugin/1.4.12/k8splugin_types.yaml
9   - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/dcaepolicyplugin/2.3.0/dcaepolicyplugin_types.yaml
10 inputs:
11   aaiEnrichmentHost:
12     type: string
13     default: "aai.onap.svc.cluster.local"
14   aaiEnrichmentPort:
15     type: string
16     default: "8443"
17   enableAAIEnrichment:
18     type: string
19     default: true
20   dmaap_host:
21     type: string
22     default: message-router.onap.svc.cluster.local
23   dmaap_port:
24     type: string
25     default: "3904"
26   enableRedisCaching:
27     type: string
28     default: false
29   redisHosts:
30     type: string
31     default: dcae-redis.onap.svc.cluster.local:6379
32   tag_version:
33     type: string
34     default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tca-cdap-container:1.1.0-STAGING-latest"
35   consul_host:
36     type: string
37     default: consul-server.onap.svc.cluster.local
38   consul_port:
39     type: string
40     default: "8500"
41   cbs_host:
42     type: string
43     default: "config-binding-service.dcae.svc.cluster.local"
44   cbs_port:
45     type: string
46     default: "10000"
47   policy_id:
48     type: string
49     default: "none"
50   external_port:
51     type: string
52     description: Kubernetes node port on which CDAPgui is exposed
53     default: "32012"
54
55 node_templates:
56   tca_k8s:
57     type: dcae.nodes.ContainerizedServiceComponent
58     relationships:
59       - target: tca_policy
60         type: cloudify.relationships.depends_on
61     properties:
62         service_component_type: 'dcaegen2-analytics-tca'
63         application_config: {}
64         docker_config: {}
65         image:
66           get_input: tag_version
67         log_info:
68           log_directory: "/opt/app/TCAnalytics/logs"
69         application_config:
70             app_config:
71                 appDescription: DCAE Analytics Threshold Crossing Alert Application
72                 appName: dcae-tca
73                 tcaAlertsAbatementTableName: TCAAlertsAbatementTable
74                 tcaAlertsAbatementTableTTLSeconds: '1728000'
75                 tcaSubscriberOutputStreamName: TCASubscriberOutputStream
76                 tcaVESAlertsTableName: TCAVESAlertsTable
77                 tcaVESAlertsTableTTLSeconds: '1728000'
78                 tcaVESMessageStatusTableName: TCAVESMessageStatusTable
79                 tcaVESMessageStatusTableTTLSeconds: '86400'
80                 thresholdCalculatorFlowletInstances: '2'
81             app_preferences:
82                 aaiEnrichmentHost:
83                     get_input: aaiEnrichmentHost
84                 aaiEnrichmentIgnoreSSLCertificateErrors: 'true'
85                 aaiEnrichmentPortNumber: '8443'
86                 aaiEnrichmentProtocol: https
87                 aaiEnrichmentUserName: dcae@dcae.onap.org
88                 aaiEnrichmentUserPassword: demo123456!
89                 aaiVMEnrichmentAPIPath: /aai/v11/search/nodes-query
90                 aaiVNFEnrichmentAPIPath: /aai/v11/network/generic-vnfs/generic-vnf
91                 enableAAIEnrichment:
92                     get_input: enableAAIEnrichment
93                 enableRedisCaching:
94                     get_input: enableRedisCaching
95                 redisHosts:
96                     get_input: redisHosts
97                 enableAlertCEFFormat: 'false'
98                 publisherContentType: application/json
99                 publisherHostName:
100                     get_input: dmaap_host
101                 publisherHostPort:
102                     get_input: dmaap_port
103                 publisherMaxBatchSize: '1'
104                 publisherMaxRecoveryQueueSize: '100000'
105                 publisherPollingInterval: '20000'
106                 publisherProtocol: http
107                 publisherTopicName: unauthenticated.DCAE_CL_OUTPUT
108                 subscriberConsumerGroup: OpenDCAE-c12
109                 subscriberConsumerId: c12
110                 subscriberContentType: application/json
111                 subscriberHostName:
112                     get_input: dmaap_host
113                 subscriberHostPort:
114                     get_input: dmaap_port
115                 subscriberMessageLimit: '-1'
116                 subscriberPollingInterval: '30000'
117                 subscriberProtocol: http
118                 subscriberTimeoutMS: '-1'
119                 subscriberTopicName: unauthenticated.VES_MEASUREMENT_OUTPUT
120                 tca_policy: ''
121         service_component_type: dcaegen2-analytics_tca
122     interfaces:
123       cloudify.interfaces.lifecycle:
124         start:
125           inputs:
126             envs:
127                 DMAAPHOST:
128                     { get_input: dmaap_host }
129                 DMAAPPORT:
130                     { get_input: dmaap_port }
131                 DMAAPPUBTOPIC: "unauthenticated.DCAE_CL_OUTPUT"
132                 DMAAPSUBTOPIC: "unauthenticated.VES_MEASUREMENT_OUTPUT"
133                 AAIHOST:
134                     { get_input: aaiEnrichmentHost }
135                 AAIPORT:
136                     { get_input: aaiEnrichmentPort }
137                 CONSUL_HOST:
138                     { get_input: consul_host }
139                 CONSUL_PORT:
140                     { get_input: consul_port }
141                 CBS_HOST:
142                     { get_input: cbs_host }
143                 CBS_PORT:
144                     { get_input: cbs_port }
145                 CONFIG_BINDING_SERVICE: "config_binding_service"
146             ports:
147               - concat: ["11011:", { get_input: external_port }]
148   tca_policy:
149     type: dcae.nodes.policy
150     properties:
151       policy_id:
152            get_input: policy_id
153            policy_type_id: onap.policies.monitoring.cdap.tca.hi.lo.app