From fc07c32a4c01a2541c8061a37c3c6589c720e2b3 Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Mon, 21 Oct 2019 14:21:54 -0400 Subject: Use yaml policies in models-examples Now that yaml is supported, use those policies that are stored in the models-examples that are preloaded into the api. Fixed a minor checkstyle issue. Not sure why it was missed. Issue-ID: POLICY-2066 Change-Id: I2f4384a310bfa818555de5dacb477daf82fac6de Signed-off-by: Pamela Dragosh --- ...policies.optimization.DistancePolicy-1.0.0.json | 89 ---------------------- 1 file changed, 89 deletions(-) delete mode 100644 applications/optimization/src/test/resources/onap.policies.optimization.DistancePolicy-1.0.0.json (limited to 'applications/optimization/src/test/resources/onap.policies.optimization.DistancePolicy-1.0.0.json') diff --git a/applications/optimization/src/test/resources/onap.policies.optimization.DistancePolicy-1.0.0.json b/applications/optimization/src/test/resources/onap.policies.optimization.DistancePolicy-1.0.0.json deleted file mode 100644 index 1b74c356..00000000 --- a/applications/optimization/src/test/resources/onap.policies.optimization.DistancePolicy-1.0.0.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "tosca_definitions_version": "tosca_simple_yaml_1_0_0", - "policy_types": { - "onap.policies.optimization.DistancePolicy": { - "derived_from": "onap.policies.Optimization", - "version": "1.0.0", - "properties": { - "applicableResources": { - "type": "list", - "required": true, - "entry_schema": { - "type": "string", - "constraints": [ - { - "valid_values": [ - "any", - "all" - ] - } - ] - } - }, - "distanceProperties": { - "type": "policy.data.distanceProperties_properties", - "required": true - } - } - } - }, - "data_types": { - "policy.data.distanceProperties_properties": { - "derived_from": "tosca.nodes.Root", - "properties": { - "locationInfo": { - "type": "string", - "required": true - }, - "distance": { - "type": "policy.data.distance_properties", - "required": true, - "entry_schema": { - "type": "policy.data.distance_properties" - } - } - } - }, - "policy.data.distance_properties": { - "derived_from": "tosca.nodes.Root", - "properties": { - "value": { - "type": "string", - "required": true - }, - "operator": { - "type": "list", - "required": true, - "entry_schema": { - "type": "string", - "constraints": [ - { - "valid_values": [ - "<", - "<=", - "\n", - ">=", - "=" - ] - } - ] - } - }, - "unit": { - "type": "list", - "required": true, - "entry_schema": { - "type": "string", - "constraints": [ - { - "valid_values": [ - "km" - ] - } - ] - } - } - } - } - } -} \ No newline at end of file -- cgit 1.2.3-korg