Initial commit for Sequence Generator
[appc.git] / appc-sequence-generator / appc-sequence-generator-bundle / src / test / resources / input / no-strategy.json
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Copyright (C) 2017 Amdocs
8  * =============================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * 
21  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  * ============LICENSE_END=========================================================
23  */
24
25
26
27
28 {
29         "request-info":
30         {
31                 "action": "Start",
32                 "action-level": "vnf",
33                 "action-identifier":
34                 {
35                         "vnf-id": "dbgx0001v"
36                 },
37                 "payload": "ABC"
38         },
39         "inventory-info":
40         {
41                 "vnf-info":
42                 {
43                         "vnf-id" : "abc",
44                         "vnf-name": "vVNF",
45                         "vnf-type": "vVNF",
46                         "vnf-version" : "1.0",
47                         "vm": [
48                                         {
49                                                 "vserver-id" : "vnfc2_vserverid1",
50                                                 "vnfc":
51                                                                 {
52                                                                         "vnfc-type": "VNFC2",
53                                                                         "vnfc-name": "VNFC2 - Name"
54                                                                 }
55
56                                         },
57                                         {
58                                                 "vserver-id" : "vnfc3_vserverid1",
59                                                 "vnfc":
60                                                                 {
61                                                                         "vnfc-type": "VNFC3",
62                                                                         "vnfc-name": "VNFC3 - Name"
63                                                                 }
64
65                                         },
66                                         {
67                                                 "vserver-id" : "vnfc3_vserverid2",
68                                                 "vnfc":
69                                                                 {
70                                                                         "vnfc-type": "VNFC3",
71                                                                         "vnfc-name": "VNFC3 - Name"
72                                                                 }
73
74                                         },
75                                         {
76                                                 "vserver-id" : "vnfc2_vserverid2",
77                                                 "vnfc":
78                                                                 {
79                                                                         "vnfc-type": "VNFC2",
80                                                                         "vnfc-name": "VNFC2 - Name"
81                                                                 }
82
83                                         },
84                                         {
85                                                 "vserver-id" : "vnfc2_vserverid3",
86                                                 "vnfc":
87                                                                 {
88                                                                         "vnfc-type": "VNFC2",
89                                                                         "vnfc-name": "VNFC2 - Name"
90                                                                 }
91
92                                         },
93                                         {
94                                                 "vserver-id" : "vnfc1_vserverid1",
95                                                 "vnfc":
96                                                                 {
97                                                                         "vnfc-type": "VNFC1",
98                                                                         "vnfc-name": "VNFC1 - Name"
99                                                                 }
100
101                                         },
102                                         {
103                                                 "vserver-id" : "vnfc1_vserverid2",
104                                                 "vnfc":
105                                                                 {
106                                                                         "vnfc-type": "VNFC1",
107                                                                         "vnfc-name": "VNFC1 - Name"
108                                                                 }
109                                         },
110                                         {
111                                                 "vserver-id" : "vnfc2_vserverid4",
112                                                 "vnfc":
113                                                 {
114                                                         "vnfc-type": "VNFC2",
115                                                         "vnfc-name": "VNFC2 - Name"
116                                                 }
117
118                                         },
119                                         {
120                                                 "vserver-id" : "vnfc2_vserverid5",
121                                                 "vnfc":
122                                                 {
123                                                         "vnfc-type": "VNFC2",
124                                                         "vnfc-name": "VNFC2 - Name"
125                                                 }
126
127                                         }
128                         ]
129                 }
130         },
131         "dependency-info":
132         {
133                 "vnfcs" :
134                 [
135                         {
136                                 "vnfc-type" : "VNFC2",
137                                 "mandatory" : "true",
138                                 "resilience": "Active-Active",
139                                 "parents" :
140                                 [
141                                         "VNFC1"
142                                 ]
143                         },
144                         {
145                                 "vnfc-type" : "VNFC3",
146                                 "mandatory" : "true",
147                                 "resilience": "Active-Active",
148                                 "parents" :
149                                 [
150                                         "VNFC2"
151                                 ]
152                         },
153                         {
154                                 "vnfc-type" : "VNFC1",
155                                 "mandatory" : "true",
156                                 "resilience": "Active-Passive",
157                                 "parents" : []
158                         }
159                 ]
160         },
161         "tunable-parameters":
162         {
163                 "strategy" : "",
164                 "wait-time": "120",
165                 "retry-count": "5"
166         },
167         "capabilities" :
168         {
169                 "vnf":
170                 [
171                         "Stop",
172                         "Start",
173                         "StartApplication",
174                         "StopApplication"
175                 ],
176                 "vf-module":
177                 [
178                         "Stop",
179                         "Start"
180                 ],
181                 "vm" :
182                 [
183                         "Stop",
184                         "Start"
185                 ],
186                 "vnfc":
187                 [
188                         "StopApplication",
189                         "StartApplication",
190                         "HealthCheck"
191                 ]
192         }
193 }
194
195