Add missing license headers
[policy/drools-applications.git] / controlloop / common / eventmanager / src / test / resources / testSOactor.yaml
1 # Copyright 2018 AT&T Intellectual Property. All rights reserved
2 #
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
6 #
7 #         http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14 controlLoop:
15   version: 1.0.0
16   controlLoopName: ControlLoop-vService-cbed919f-2212-4ef7-8051-fe6308da1bda
17   services: 
18     - serviceName: service1
19   resources: 
20     - resourceName: resource1
21       resourceType: VF
22     - resourceName: resource2
23       resourceType: VF
24     - resourceName: resource3
25       resourceType: VF
26     - resourceName: resource4
27       resourceType: VF
28     - resourceName: resource5
29       resourceType: VF
30   trigger_policy: unique-policy-id-1-restart
31   timeout: 60
32
33 policies:
34   - id: unique-policy-id-1-restart
35     name: Restart Policy
36     description:
37     actor: SO
38     recipe: Restart
39     target:
40       type: VNF
41     retry: 1
42     timeout: 20
43     success: final_success
44     failure: unique-policy-id-2-rebuild
45     failure_timeout: unique-policy-id-2-rebuild
46     failure_retries: unique-policy-id-2-rebuild
47     failure_exception: final_failure_exception
48   
49   - id: unique-policy-id-2-rebuild
50     name: Rebuild Policy
51     description:
52     actor: SO
53     recipe: Rebuild
54     target: VM
55     retry: 0
56     timeout: 10
57     success: final_success
58     failure: unique-policy-id-3-migrate
59     failure_timeout: unique-policy-id-3-migrate
60     failure_retries: unique-policy-id-3-migrate
61     failure_exception: final_failure_exception
62   
63   - id: unique-policy-id-3-migrate
64     name: Migrate Policy
65     description:
66     actor: SO
67     recipe: Migrate
68     target: VM
69     retry: 0
70     timeout: 30
71     success: final_success
72     failure: final_failure
73     failure_timeout: final_failure_timeout
74     failure_retries: final_failure_retries
75     failure_exception: final_failure_exception