Rework tosca converter
[clamp.git] / src / test / resources / tosca / new-converter / constraints.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0\r
2 policy_types:\r
3     onap.policies.controlloop.operational.common.Drools:\r
4         derived_from: onap.policies.controlloop.operational.Common\r
5         type_version: 1.0.0\r
6         version: 1.0.0\r
7         description: Operational policies for Drools PDP\r
8         properties:\r
9             controllerName:\r
10                 type: String\r
11                 description: Drools controller properties\r
12                 required: true\r
13 data_types:\r
14     onap.datatype.controlloop.Operation:\r
15         derived_from: tosca.datatypes.Root\r
16         description: An operation supported by an actor\r
17         properties:\r
18             id:\r
19                 type: String\r
20                 description: Unique identifier for the operation\r
21                 required: true\r
22                 constraints:\r
23                 - length: 8\r
24             description:\r
25                 type: Array\r
26                 description: A user-friendly description of the intent for the operation\r
27                 required: false\r
28                 constraints:\r
29                 - min_length: 5\r
30                 - max_length: 7\r
31             test:\r
32                 type: Integer\r
33                 description: |\r
34                     Overall timeout for executing all the operations. This timeout should equal or exceed the total\r
35                     timeout for each operation listed.\r
36                 required: true\r
37                 constraints:\r
38                     - greater_than: 7\r
39                     - greater_or_equal: 1\r
40                     - less_than: 7\r
41                     - less_or_equal: 1\r
42             timeout:\r
43                 type: Integer\r
44                 description: The amount of time for the actor to perform the operation.\r
45                 required: true\r
46                 constraints:\r
47                 - valid_values: [3,4,5.5,6,10]\r
48             retries:\r
49                 type: Integer\r
50                 description: The number of retries the actor should attempt to perform the operation.\r
51                 required: true\r
52                 default: 0\r
53                 constraints:\r
54                 - equal: 5\r
55             success:\r
56                 type: String\r
57                 description: Points to the operation to invoke on success. A value of "final_success" indicates and end to the operation.\r
58                 required: false\r
59                 constraints:\r
60                 - valid_values: [VALID,TERMINATED]\r