1 # Copyright 2018 AT&T Intellectual Property. All rights reserved
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 controlLoopName: ControlLoop-TEST-5dfa8fce-bd7a-4424-b60d-ee2ad2f254a3
18 - serviceName: Foo Service
20 - resourceName: Bar VNF
22 trigger_policy: unique-policy-id-1-restart
26 - id: unique-policy-id-1-restart
27 name: Restart Policy for Trigger Event
36 success: unique-policy-id-2-modifyconfig
37 failure: unique-policy-id-3-rebuild
38 failure_timeout: unique-policy-id-3-rebuild
39 failure_retries: unique-policy-id-3-rebuild
40 failure_exception: unique-policy-id-7-modifyconfig-for-failure
41 failure_guard: unique-policy-id-7-modifyconfig-for-failure
43 - id: unique-policy-id-2-modifyconfig
44 name: ModifyConfig Policy
53 success: FINAL_SUCCESS
54 failure: unique-policy-id-3-rebuild
55 failure_timeout: unique-policy-id-3-rebuild
56 failure_retries: unique-policy-id-3-rebuild
57 failure_exception: FINAL_FAILURE_EXCEPTION
59 - id: unique-policy-id-3-rebuild
69 success: unique-policy-id-4-modifyconfig
70 failure: unique-policy-id-5-migrate
71 failure_timeout: unique-policy-id-5-migrate
72 failure_retries: unique-policy-id-5-migrate
73 failure_exception: FINAL_FAILURE_EXCEPTION
75 - id: unique-policy-id-4-modifyconfig
76 name: HealthCheck the Rebuild Policy
85 success: FINAL_SUCCESS
86 failure: unique-policy-id-5-migrate
87 failure_timeout: unique-policy-id-5-migrate
88 failure_retries: unique-policy-id-5-migrate
89 failure_exception: FINAL_FAILURE_EXCEPTION
91 - id: unique-policy-id-5-migrate
101 success: unique-policy-id-6-modifyconfig
102 failure: FINAL_FAILURE
103 failure_timeout: FINAL_FAILURE_TIMEOUT
104 failure_retries: FINAL_FAILURE_RETRIES
105 failure_exception: FINAL_FAILURE_EXCEPTION
107 - id: unique-policy-id-6-modifyconfig
108 name: ModifyConfig after Migrate Policy
117 success: FINAL_SUCCESS
118 failure: FINAL_FAILURE
119 failure_timeout: FINAL_FAILURE_TIMEOUT
120 failure_retries: FINAL_FAILURE_RETRIES
121 failure_exception: FINAL_FAILURE_EXCEPTION
123 - id: unique-policy-id-7-modifyconfig-for-failure
124 name: ModifyConfig for Failure
133 success: FINAL_SUCCESS
134 failure: FINAL_FAILURE
135 failure_timeout: FINAL_FAILURE_TIMEOUT
136 failure_retries: FINAL_FAILURE_RETRIES
137 failure_exception: FINAL_FAILURE_EXCEPTION
140 name: invalid policy - id is null
149 success: FINAL_SUCCESS
152 name: invalid policy - id is a PolicyResult
161 success: FINAL_SUCCESS
164 name: invalid policy - id is a FinalResult
173 success: FINAL_SUCCESS
175 - id: invalid-policy-null-actor
176 name: invalid policy - actor is null
185 success: FINAL_SUCCESS
187 - id: invalid-policy-unknown-actor
188 name: invalid policy - actor is unknown
197 success: FINAL_SUCCESS
199 - id: invalid-policy-null-receipe
200 name: invalid policy - receipe is null
209 success: FINAL_SUCCESS
211 - id: invalid-policy-unknown-receipe
212 name: invalid policy - unknown receipe
215 recipe: UnknownReceipe
221 success: FINAL_SUCCESS
223 - id: invalid-policy-null-target
224 name: invalid policy - target is null
231 success: FINAL_SUCCESS
233 - id: invalid-policy-null-target-type
234 name: invalid policy - target type is null
243 success: FINAL_SUCCESS
245 - id: invalid-policy-invalid-success-policy
246 name: invalid policy - success policy is invalid
255 success: FINAL_FAILURE
257 - id: invalid-policy-invalid-failure-policy
258 name: invalid policy - failure policy is invalid
267 failure: FINAL_FAILURE_TIMEOUT
269 - id: invalid-policy-invalid-failure-timeout-policy
270 name: invalid policy - failure timeout policy is invalid
279 failure_timeout: FINAL_FAILURE_RETRIES
281 - id: invalid-policy-invalid-failure-retries-policy
282 name: invalid policy - failure retries policy is invalid
291 failure_retries: FINAL_FAILURE_EXCEPTION
293 - id: invalid-policy-invalid-failure-exception-policy
294 name: invalid policy - failure exception policy is invalid
303 failure_exception: FINAL_FAILURE_GUARD
305 - id: invalid-policy-invalid-failure-guard-policy
306 name: invalid policy - failure guard policy is invalid
315 failure_guard: FINAL_SUCCESS