1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2022 Nordix Foundation.
3 # ================================================================================
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 # SPDX-License-Identifier: Apache-2.0
17 # ============LICENSE_END=========================================================
18 tosca_definitions_version: tosca_simple_yaml_1_3
20 onap.datatypes.ToscaConceptIdentifier:
21 derived_from: tosca.datatypes.Root
30 org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.RestRequest:
32 derived_from: tosca.datatypes.Root
35 type: onap.datatypes.ToscaConceptIdentifier
37 description: The name and version of a REST request to be sent to a REST endpoint
47 description: The REST method to use
51 description: The path of the REST request relative to the base URL
55 description: The body of the REST request for PUT and POST requests
60 description: THe expected HTTP status code for the REST request
61 org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.ConfigurationEntity:
63 derived_from: tosca.datatypes.Root
65 configurationEntityId:
66 type: onap.datatypes.ToscaConceptIdentifier
68 description: The name and version of a Configuration Entity to be handled
69 by the HTTP Automation Composition Element
73 type: org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.RestRequest
75 description: A sequence of REST commands to send to the REST endpoint
78 org.onap.policy.clamp.acm.Participant:
80 derived_from: tosca.nodetypes.Root
85 org.onap.policy.clamp.acm.AutomationCompositionElement:
87 derived_from: tosca.nodetypes.Root
94 description: Specifies the organization that provides the automation composition element
96 type: onap.datatypes.ToscaConceptIdentifier
101 type: onap.datatypes.ToscaConceptIdentifier
105 description: The identity of the participant type that hosts this type of Automation Composition Element
110 - greater_or_equal: 0
113 description: A value indicating the start phase in which this automation composition element will be started, the
114 first start phase is zero. Automation Composition Elements are started in their start_phase order and stopped
115 in reverse start phase order. Automation Composition Elements with the same start phase are started and
116 stopped simultaneously
117 uninitializedToPassiveTimeout:
121 - greater_or_equal: 0
125 description: The maximum time in seconds to wait for a state chage from uninitialized to passive
126 passiveToRunningTimeout:
130 - greater_or_equal: 0
134 description: The maximum time in seconds to wait for a state chage from passive to running
135 runningToPassiveTimeout:
139 - greater_or_equal: 0
143 description: The maximum time in seconds to wait for a state chage from running to passive
144 passiveToUninitializedTimeout:
148 - greater_or_equal: 0
152 description: The maximum time in seconds to wait for a state chage from passive to uninitialized
153 org.onap.policy.clamp.acm.AutomationComposition:
155 derived_from: tosca.nodetypes.Root
162 description: Specifies the organization that provides the automation composition element
169 type: onap.datatypes.ToscaConceptIdentifier
170 description: Specifies a list of automation composition element definitions that make up this automation composition definition
171 org.onap.policy.clamp.acm.HttpAutomationCompositionElement:
173 derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement
178 description: The base URL to be prepended to each path, identifies the host for the REST endpoints.
184 description: HTTP headers to send on REST requests
185 configurationEntities:
189 type: org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.ConfigurationEntity
191 description: The connfiguration entities the Automation Composition Element is managing and their associated REST requests
195 org.onap.policy.clamp.acm.HttpParticipant:
197 type: org.onap.policy.clamp.acm.Participant
199 description: Participant for Http requests
202 onap.policy.clamp.ac.element.Http_StarterAutomationCompositionElement:
203 # Http config for AC Element Starter.
205 type: org.onap.policy.clamp.acm.HttpAutomationCompositionElement
207 description: Automation composition element for the http requests of AC Element Starter microservice
211 name: HttpParticipant0
214 name: org.onap.policy.clamp.acm.HttpParticipant
216 uninitializedToPassiveTimeout: 180
218 baseUrl: http://acelement-starter:8084
220 Content-Type: application/json
221 Authorization: 'Basic cnVudGltZVVzZXI6emIhWHp0RzM0'
222 configurationEntities:
223 - configurationEntityId:
224 name: onap.policy.clamp.ac.starter
232 body: '{ "receiverId": { "name": "onap.policy.clamp.ac.bridge", "version": "1.0.0" }, "timerMs": 4000, "elementType": "STARTER", "topicParameterGroup": { "server": "message-router", "listenerTopic": "POLICY_UPDATE_MSG", "publisherTopic": "POLICY_UPDATE_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": "dmaap" } }'
233 expectedResponse: 201
234 onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement:
235 # Http config for AC Element Bridge.
237 type: org.onap.policy.clamp.acm.HttpAutomationCompositionElement
239 description: Automation composition element for the http requests of AC Element Bridge microservice
243 name: HttpParticipant0
246 name: org.onap.policy.clamp.acm.HttpParticipant
248 uninitializedToPassiveTimeout: 180
250 baseUrl: http://acelement-bridge:8084
252 Content-Type: application/json
253 Authorization: 'Basic cnVudGltZVVzZXI6emIhWHp0RzM0'
254 configurationEntities:
255 - configurationEntityId:
256 name: onap.policy.clamp.ac.bridge
264 body: '{ "receiverId": { "name": "onap.policy.clamp.ac.sink", "version": "1.0.0" }, "timerMs": 4000, "elementType": "BRIDGE", "topicParameterGroup": { "server": "message-router", "listenerTopic": "POLICY_UPDATE_MSG", "publisherTopic": "POLICY_UPDATE_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": "dmaap" } }'
265 expectedResponse: 201
266 onap.policy.clamp.ac.element.Http_SinkAutomationCompositionElement:
267 # Http config for AC Element Sink.
269 type: org.onap.policy.clamp.acm.HttpAutomationCompositionElement
271 description: Automation composition element for the http requests of AC Element Sink microservice
275 name: HttpParticipant0
278 name: org.onap.policy.clamp.acm.HttpParticipant
280 uninitializedToPassiveTimeout: 180
282 baseUrl: http://acelement-sink:8084
284 Content-Type: application/json
285 Authorization: 'Basic cnVudGltZVVzZXI6emIhWHp0RzM0'
286 configurationEntities:
287 - configurationEntityId:
288 name: onap.policy.clamp.ac.sink
296 body: '{ "receiverId": { "name": "onap.policy.clamp.ac.sink", "version": "1.0.0" }, "timerMs": 4000, "elementType": "SINK", "topicParameterGroup": { "server": "message-router", "listenerTopic": "POLICY_UPDATE_MSG", "publisherTopic": "POLICY_UPDATE_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": "dmaap" } }'
297 expectedResponse: 201
299 onap.policy.clamp.ac.element.AutomationCompositionDefinition:
301 type: org.onap.policy.clamp.acm.AutomationComposition
303 description: Automation composition for Demp
307 - name: onap.policy.clamp.ac.element.Http_StarterAutomationCompositionElement
309 - name: onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement
311 - name: onap.policy.clamp.ac.element.Http_SinkAutomationCompositionElement