Set all cross references of policy/xacml-pdp
[policy/xacml-pdp.git] / applications / common / src / test / resources / matchable / onap.policies.Test-1.0.0.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_1_0
2 policy_types:
3     onap.policies.Base:
4         derived_from: tosca.policies.Root
5         version: 1.0.0
6         properties:
7             baseNoMatch:
8                 type: string
9             baseMatch:
10                 type: string
11                 metadata:
12                    matchable: true
13     onap.policies.base.Middle:
14         derived_from: onap.policies.Base
15         type_version: 1.0.0
16         version: 1.0.0
17         properties:
18             middleNoMatch:
19                 type: string
20             middleMatch:
21                 type: string
22                 metadata:
23                    matchable: true
24     onap.policies.base.middle.Test:
25         derived_from: onap.policies.base.Middle
26         type_version: 1.0.0
27         version: 1.0.0
28         properties:
29             nonmatchableString:
30                 type: string
31             matchableString:
32                 type: string
33                 metadata:
34                    matchable: true
35             nonmatchableInteger:
36                 type: integer
37                 metadata:
38                    matchable: false
39             matchableInteger:
40                 type: integer
41                 metadata:
42                    matchable: true
43             nonmatchableFloat:
44                 type: float
45             matchableFloat:
46                 type: float
47                 metadata:
48                    matchable: true
49             nonmatchableBoolean:
50                 type: boolean
51             matchableBoolean:
52                 type: boolean
53                 metadata:
54                    matchable: true
55             nonmatchableTimestamp:
56                 type: timestamp
57             matchableTimestamp:
58                 type: timestamp
59                 metadata:
60                    matchable: true
61             nonmatchableListInteger:
62                 type: list
63                 entry_schema:
64                    type: integer
65             matchableListString:
66                 type: list
67                 description: |
68                     Every entry in the list is matchable, the attribute id will be the same for all value. eg. the
69                     property name.
70                 metadata:
71                    matchable: true
72                 entry_schema:
73                    type: string
74             matchableMapString:
75                type: map
76                description: |
77                    Every entry in the map is matchable, however the attribute id will be set by the key.
78                metadata:
79                   matchable: true
80                entry_schema:
81                   type: string
82             nonmatchableMapString:
83                 type: map
84                 description: |
85                     Nothing gets matched - however you have no control over the LHS key. Someone could
86                     easily set that value to a matchable property name defined elsewhere.
87                 entry_schema:
88                     type: string
89             badDataType:
90                type: i.do.not.exist
91                description: we can only ignore this - should get caught in the API
92             matchableDataType:
93                type: onap.datatype.zero
94                description: |
95                    The matchable field in a datatype must be IGNORED, because this will result in too many assumptions
96                    as we may go down many levels of datatypes, lists of datatypes, maps of datatypes, etc. Does every
97                    field in the datatype become matchable? That does not make sense right now to write a Policy Type
98                    like that.
99                metadata:
100                   matchable: true
101 data_types:
102     onap.datatype.zero:
103         derived_from: tosca.datatypes.Root
104         description: Note that we do not have to declare matchable for each property.
105         properties:
106             zeroStringMatchable:
107                 type: string
108                 metadata:
109                     matchable: true
110             zeroBooleanMatchable:
111                 type: boolean
112                 metadata:
113                     matchable: true
114             zeroFloatMatchable:
115                 type: float
116                 metadata:
117                     matchable: true
118             zeroIntegerMatchable:
119                 type: integer
120                 metadata:
121                     matchable: true
122             zeroTimestampMatchable:
123                 type: timestamp
124                 metadata:
125                     matchable: true
126             zeroDatatypeOne:
127                 type: onap.datatype.one
128             zeroBadDatatype:
129                 type: list
130                 description: we can only ignore this - should get caught in the API
131                 entry_schema:
132                     type: another.missing.datatype
133     onap.datatype.one:
134         derived_from: tosca.datatypes.Root
135         properties:
136             oneString:
137                 type: string
138             oneStringMatchable:
139                 type: string
140                 metadata:
141                     matchable: true
142             propertyTwoListOfDatatype:
143                 type: list
144                 entry_schema:
145                     type: onap.datatype.two
146     onap.datatype.two:
147         derived_from: tosca.datatypes.Root
148         properties:
149             twoString:
150                 type: string
151             twoStringMatchable:
152                 type: string
153                 metadata:
154                     matchable: true
155             twoIntegerMatchable:
156                 type: integer
157                 metadata:
158                     matchable: true
159             propertyThreeDatatype:
160                 type: map
161                 entry_schema:
162                     type: onap.datatype.three
163     onap.datatype.three:
164         derived_from: tosca.datatypes.Root
165         properties:
166             threeStringMatchable:
167                 type: string
168                 metadata:
169                     matchable: true
170             threeIntegerMatchable:
171                 type: integer
172                 metadata:
173                     matchable: true