Add migration in integration tests
[policy/docker.git] / csit / resources / tests / data / ac-definition-migration-to.yaml
1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2024 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
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
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.
15 #
16 # SPDX-License-Identifier: Apache-2.0
17 # ============LICENSE_END=========================================================
18 tosca_definitions_version: tosca_simple_yaml_1_3
19 name: Migration-To
20 data_types:
21   onap.datatypes.ToscaConceptIdentifier:
22     derived_from: tosca.datatypes.Root
23     properties:
24       name:
25         type: string
26         required: true
27       version:
28         type: string
29         required: true
30
31 node_types:
32   org.onap.policy.clamp.acm.Participant:
33     version: 1.0.1
34     derived_from: tosca.nodetypes.Root
35     properties:
36       provider:
37         type: string
38         required: false
39   org.onap.policy.clamp.acm.AutomationCompositionElement:
40     version: 1.0.1
41     derived_from: tosca.nodetypes.Root
42     properties:
43       provider:
44         type: string
45         required: false
46         metadata:
47           common: true
48         description: Specifies the organization that provides the automation composition element
49       startPhase:
50         type: integer
51         required: false
52         constraints:
53           - greater_or_equal: 0
54         metadata:
55           common: true
56         description: A value indicating the start phase in which this automation composition element will be started, the
57           first start phase is zero. Automation Composition Elements are started in their start_phase order and stopped
58           in reverse start phase order. Automation Composition Elements with the same start phase are started and
59           stopped simultaneously
60
61   org.onap.policy.clamp.acm.AutomationComposition:
62     version: 1.0.1
63     derived_from: tosca.nodetypes.Root
64     properties:
65       provider:
66         type: string
67         required: false
68         metadata:
69           common: true
70         description: Specifies the organization that provides the automation composition element
71       elements:
72         type: list
73         required: true
74         metadata:
75           common: true
76         entry_schema:
77           type: onap.datatypes.ToscaConceptIdentifier
78         description: Specifies a list of automation composition element definitions that make up this automation composition definition
79
80   org.onap.policy.clamp.acm.SimAutomationCompositionElement:
81     version: 1.0.0
82     derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement
83     properties:
84       baseUrl:
85         type: string
86         required: true
87         description: The base URL to be prepended to each path, identifies the host for the REST endpoints.
88       httpHeaders:
89         type: map
90         required: false
91         entry_schema:
92           type: string
93         description: HTTP headers to send on REST requests
94       configurationEntities:
95         type: map
96         required: true
97         entry_schema:
98           type: map
99         description: The connfiguration entities the Automation Composition Element is managing and their associated REST requests
100
101 topology_template:
102
103   node_templates:
104
105     org.onap.policy.clamp.acm.SimParticipant:
106       version: 2.3.4
107       type: org.onap.policy.clamp.acm.Participant
108       type_version: 1.0.1
109       description: Participant Simulator
110       properties:
111         provider: ONAP
112
113     onap.policy.clamp.ac.element.Sim_StarterAutomationCompositionElement:
114       version: 1.2.4
115       type: org.onap.policy.clamp.acm.SimAutomationCompositionElement
116       type_version: 1.0.0
117       description: Automation composition element for the http requests of AC Element Starter microservice
118       properties:
119         provider: ONAP
120         startPhase: 0
121
122     onap.policy.clamp.ac.element.Sim_BridgeAutomationCompositionElement:
123       version: 1.2.4
124       type: org.onap.policy.clamp.acm.SimAutomationCompositionElement
125       type_version: 1.0.0
126       description: Automation composition element for the http requests of AC Element Bridge microservice
127       properties:
128         provider: ONAP
129         startPhase: 0
130
131     onap.policy.clamp.ac.element.Sim_SinkAutomationCompositionElement:
132       version: 1.2.4
133       type: org.onap.policy.clamp.acm.SimAutomationCompositionElement
134       type_version: 1.0.0
135       description: Automation composition element for the http requests of AC Element Sink microservice
136       properties:
137         provider: ONAP
138         startPhase: 0
139
140     onap.policy.clamp.ac.element.AutomationCompositionDefinition:
141       version: 1.2.4
142       type: org.onap.policy.clamp.acm.AutomationComposition
143       type_version: 1.0.1
144       description: Automation composition for Demo
145       properties:
146         provider: ONAP
147         elements:
148           - name: onap.policy.clamp.ac.element.Sim_StarterAutomationCompositionElement
149             version: 1.2.4
150           - name: onap.policy.clamp.ac.element.Sim_BridgeAutomationCompositionElement
151             version: 1.2.4
152           - name: onap.policy.clamp.ac.element.Sim_SinkAutomationCompositionElement
153             version: 1.2.4