Re-factor matchable to reduce complexity
[policy/xacml-pdp.git] / applications / common / src / test / resources / matchable / test.policies.input.tosca.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_1_0
2 topology_template:
3     policies:
4     -   Test.policy:
5             type: onap.policies.base.middle.Test
6             type_version: 1.0.0
7             version: 1.0.0
8             metadata:
9                 policy-id: Test.policy
10                 policy-version: 1
11             properties:
12                 baseNoMatch: Do not match the base
13                 baseMatch: base Match
14                 middleNoMatch: Do not match the middle
15                 middleMatch: middle Match
16                 nonmatchableString: I am NON matchable
17                 matchableString: I should be matched
18                 nonmatchableInteger: 0
19                 matchableInteger: 1000
20                 nonmatchableFloat: 0.0
21                 matchableFloat: 1.1
22                 nonmatchableBoolean: false
23                 matchableBoolean: true
24                 nonmatchableTimestamp: 2019-01-01T00:00:00Z
25                 matchableTimestamp: 2020-01-01T00:00:00Z
26                 nonmatchableListInteger: {0, 1, 2}
27                 matchableListString:
28                 - match A
29                 - match B
30                 matchableMapString:
31                     test1: matchableMap1
32                     test2: matchableMap2
33                 nonmatchableMapString:
34                     risk: potential risk of matching
35                 matchableDataType:
36                     zeroStringMatchable: zero Match
37                     zeroBooleanMatchable: true
38                     zeroFloatMatchable: 9.9
39                     zeroIntegerMatchable: 1000
40                     zeroTimestampMatchable: 2020-01-01T23:59:59Z
41                     oneString: One is NOT matchable
42                     oneStringMatchable: One should be matched
43                     propertyTwoListOfDatatype:
44                     -   twoString: Two is NOT matchable
45                         twoStringMatchable: Two should be matched
46                         twoIntegerMatchable: 55
47                         propertyThreeDatatype:
48                             myThree:
49                                 threeStringMatchable: Three should match
50                                 threeIntegerMatchable: 66