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