summaryrefslogtreecommitdiffstats
path: root/applications/guard/src/test/resources/test-bad-policies.yaml
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2020-12-17 16:57:10 +0000
committerliamfallon <liam.fallon@est.tech>2020-12-21 16:30:57 +0000
commit30ead499d80c3c6cf6433c6a1e9fb4693d109ab1 (patch)
treeb0d48259a5ca139080be351ca64d69bc00b591c0 /applications/guard/src/test/resources/test-bad-policies.yaml
parent0bd8066788769079f098f6f831919b2c639520a0 (diff)
XACML to accept properties as null
xacml-pdp expects the property map to exist in all policies, even if it is sometimes empty. Now, the propperty map can be null. The code is updated to cope with a null property map. Issue-ID: POLICY-2900 Change-Id: Ie31a2770aff1435a1d1064512d0c2fa2088d3183 Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'applications/guard/src/test/resources/test-bad-policies.yaml')
-rw-r--r--applications/guard/src/test/resources/test-bad-policies.yaml11
1 files changed, 8 insertions, 3 deletions
diff --git a/applications/guard/src/test/resources/test-bad-policies.yaml b/applications/guard/src/test/resources/test-bad-policies.yaml
index 07040c54..eb39aded 100644
--- a/applications/guard/src/test/resources/test-bad-policies.yaml
+++ b/applications/guard/src/test/resources/test-bad-policies.yaml
@@ -5,6 +5,8 @@ topology_template:
type: onap.policies.controlloop.guard.common.FrequencyLimiter
type_version: 1.0.0
version: 1.0.0
+ properties:
+ badProperty: badValue
- frequency-timewindow:
type: onap.policies.controlloop.guard.common.FrequencyLimiter
type_version: 1.0.0
@@ -16,7 +18,8 @@ topology_template:
type: onap.policies.controlloop.guard.common.MinMax
type_version: 1.0.0
version: 1.0.0
- properties: null
+ properties:
+ badProperty: badValue
- minmax-nominmax:
type: onap.policies.controlloop.guard.common.MinMax
type_version: 1.0.0
@@ -27,12 +30,14 @@ topology_template:
type: onap.policies.controlloop.guard.common.Blacklist
type_version: 1.0.0
version: 1.0.0
- properties: null
+ properties:
+ badProperty: badValue
- filter-noalgorithm:
type: onap.policies.controlloop.guard.common.Filter
type_version: 1.0.0
version: 1.0.0
- properties: null
+ properties:
+ badProperty: badValue
- filter-badalgorithm:
type: onap.policies.controlloop.guard.common.Filter
type_version: 1.0.0