Add migration in integration tests
[policy/docker.git] / csit / resources / tests / data / ac-instance-migration-from.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 name: Instance-Migration-From
19 version: 1.0.1
20 compositionId: COMPOSITIONIDPLACEHOLDER
21 description: Demo automation composition instance 0
22 elements:
23
24   709c62b3-8918-41b9-a747-d21eb79c6c34:
25     id: 709c62b3-8918-41b9-a747-d21eb79c6c34
26     definition:
27       name: onap.policy.clamp.ac.element.Sim_StarterAutomationCompositionElement
28       version: 1.2.3
29     description: Starter Automation Composition Element for the Demo
30     properties:
31       baseUrl: http://address:30800
32       httpHeaders:
33         Content-Type: application/json
34         Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ=
35       configurationEntities:
36         - configurationEntityId:
37             name: onap.policy.clamp.ac.starter
38             version: 1.0.0
39           restSequence:
40             - restRequestId:
41                 name: request1
42                 version: 1.0.1
43               httpMethod: POST
44               path: /onap/policy/clamp/acelement/v2/activate
45               body: '{ "receiverId": { "name": "onap.policy.clamp.ac.startertobridge", "version": "1.0.0" }, "timerMs": 20000, "elementType": "STARTER", "topicParameterGroup": { "server": "message-router:3904", "listenerTopic": "POLICY_UPDATE_MSG", "publisherTopic": "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": "dmaap" } }'
46               expectedResponse: 201
47           myParameterToUpdate: text
48
49   709c62b3-8918-41b9-a747-d21eb79c6c35:
50     id: 709c62b3-8918-41b9-a747-d21eb79c6c35
51     definition:
52       name: onap.policy.clamp.ac.element.Sim_BridgeAutomationCompositionElement
53       version: 1.2.3
54     description: Bridge Automation Composition Element for the Demo
55     properties:
56       baseUrl: http://address:30801
57       httpHeaders:
58         Content-Type: application/json
59         Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ=
60       configurationEntities:
61         - configurationEntityId:
62             name: onap.policy.clamp.ac.bridge
63             version: 1.0.0
64           restSequence:
65             - restRequestId:
66                 name: request2
67                 version: 1.0.1
68               httpMethod: POST
69               path: /onap/policy/clamp/acelement/v2/activate
70               body: '{ "receiverId": { "name": "onap.policy.clamp.ac.bridgetosink", "version": "1.0.0" }, "timerMs": 20000, "elementType": "BRIDGE", "topicParameterGroup": { "server": "message-router:3904", "listenerTopic": "POLICY_UPDATE_MSG", "publisherTopic": "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": "dmaap" } }'
71               expectedResponse: 201
72           myParameterToUpdate: text
73
74   709c62b3-8918-41b9-a747-d21eb79c6c36:
75     id: 709c62b3-8918-41b9-a747-d21eb79c6c36
76     definition:
77       name: onap.policy.clamp.ac.element.Sim_SinkAutomationCompositionElement
78       version: 1.2.3
79     description: Sink Automation Composition Element for the Demo
80     properties:
81       baseUrl: http://address:30802
82       httpHeaders:
83         Content-Type: application/json
84         Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ=
85       configurationEntities:
86         - configurationEntityId:
87             name: onap.policy.clamp.ac.sink
88             version: 1.0.0
89           restSequence:
90             - restRequestId:
91                 name: request3
92                 version: 1.0.1
93               httpMethod: POST
94               path: /onap/policy/clamp/acelement/v2/activate
95               body: '{ "receiverId": { "name": "onap.policy.clamp.ac.sink", "version": "1.0.0" }, "timerMs": 20000, "elementType": "SINK", "topicParameterGroup": { "server": "message-router", "listenerTopic": "POLICY_UPDATE_MSG", "publisherTopic": "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": "dmaap" } }'
96               expectedResponse: 201
97           myParameterToUpdate: text