Initial commit for Sequence Generator
[appc.git] / appc-sequence-generator / appc-sequence-generator-bundle / src / test / resources / input / wrongaction.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                                         {
50                                                 "vserver-id" : "vnfc2_vserverid1",
51                                                 "vnfc": 
52                                                                 {
53                                                                         "vnfc-type": "VNFC2",
54                                                                         "vnfc-name": "VNFC2 - Name"
55                                                                 }
56                                                                 
57                                         },
58                                         {
59                                                 "vserver-id" : "vnfc3_vserverid1",
60                                                 "vnfc": 
61                                                                 {
62                                                                         "vnfc-type": "VNFC3",
63                                                                         "vnfc-name": "VNFC3 - Name"
64                                                                 }
65                                                                 
66                                         },
67                                         {
68                                                 "vserver-id" : "vnfc3_vserverid2",
69                                                 "vnfc": 
70                                                                 {
71                                                                         "vnfc-type": "VNFC3",
72                                                                         "vnfc-name": "VNFC3 - Name"
73                                                                 }
74                                                                 
75                                         },
76                                         {
77                                                 "vserver-id" : "vnfc2_vserverid2",
78                                                 "vnfc": 
79                                                                 {
80                                                                         "vnfc-type": "VNFC2",
81                                                                         "vnfc-name": "VNFC2 - Name"
82                                                                 }
83                                                                 
84                                         },
85                                         {
86                                                 "vserver-id" : "vnfc2_vserverid3",
87                                                 "vnfc": 
88                                                                 {
89                                                                         "vnfc-type": "VNFC2",
90                                                                         "vnfc-name": "VNFC2 - Name"
91                                                                 }
92                                                                 
93                                         },
94                                         {
95                                                 "vserver-id" : "vnfc1_vserverid1",
96                                                 "vnfc": 
97                                                                 {
98                                                                         "vnfc-type": "VNFC1",
99                                                                         "vnfc-name": "VNFC1 - Name"
100                                                                 }
101                                                                 
102                                         },
103                                         {
104                                                 "vserver-id" : "vnfc1_vserverid2",
105                                                 "vnfc": 
106                                                                 {
107                                                                         "vnfc-type": "VNFC1",
108                                                                         "vnfc-name": "VNFC1 - Name"
109                                                                 }                                                               
110                                         },
111                                         {
112                                                 "vserver-id" : "vnfc2_vserverid4",
113                                                 "vnfc":
114                                                 {
115                                                         "vnfc-type": "VNFC2",
116                                                         "vnfc-name": "VNFC2 - Name"
117                                                 }
118
119                                         },
120                                         {
121                                                 "vserver-id" : "vnfc2_vserverid5",
122                                                 "vnfc":
123                                                 {
124                                                         "vnfc-type": "VNFC2",
125                                                         "vnfc-name": "VNFC2 - Name"
126                                                 }
127
128                                         }
129                         ]
130                 }
131         },
132         "dependency-info":
133         {
134                 "vnfcs" :
135                 [
136                         {
137                                 "vnfc-type" : "VNFC2",
138                                 "mandatory" : "true",
139                                 "resilience": "Active-Active",
140                                 "parents" :
141                                 [
142                                         "VNFC1"
143                                 ]
144                         },
145                         {
146                                 "vnfc-type" : "VNFC3",
147                                 "mandatory" : "true",
148                                 "resilience": "Active-Active",
149                                 "parents" :
150                                 [
151                                         "VNFC2"
152                                 ]
153                         },
154                         {
155                                 "vnfc-type" : "VNFC1",
156                                 "mandatory" : "true",
157                                 "resilience": "Active-Passive",
158                                 "parents" : []
159                         }
160                 ]
161         },
162         "tunable-parameters":
163         {
164                 "strategy" : "FORWARD",
165                 "wait-time": "120",
166                 "retry-count": "5"
167         },
168         "capabilities" :
169         {
170                 "vnf":
171                 [
172                         "Stop",
173                         "Start",
174                         "StartApplication",
175                         "StopApplication"
176                 ],
177                 "vf-module":
178                 [
179                         "Stop",
180                         "Start"
181                 ],
182                 "vm" :
183                 [
184                         "Stop",
185                         "Start"
186                 ],
187                 "vnfc":
188                 [
189                         "StopApplication",
190                         "StartApplication",
191                         "HealthCheck"
192                 ]
193         }
194 }
195
196