aboutsummaryrefslogtreecommitdiffstats
path: root/applications/optimization/src/test/resources/onap.policies.optimization.AffinityPolicy-1.0.0.json
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2019-10-21 14:21:54 -0400
committerPamela Dragosh <pdragosh@research.att.com>2019-10-21 14:22:03 -0400
commitfc07c32a4c01a2541c8061a37c3c6589c720e2b3 (patch)
tree98c2f46d6cc1d413586df462abd091e828f1de3e /applications/optimization/src/test/resources/onap.policies.optimization.AffinityPolicy-1.0.0.json
parent3107498c86304ef114e6799ee430013fc26e1750 (diff)
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 <pdragosh@research.att.com>
Diffstat (limited to 'applications/optimization/src/test/resources/onap.policies.optimization.AffinityPolicy-1.0.0.json')
-rw-r--r--applications/optimization/src/test/resources/onap.policies.optimization.AffinityPolicy-1.0.0.json54
1 files changed, 0 insertions, 54 deletions
diff --git a/applications/optimization/src/test/resources/onap.policies.optimization.AffinityPolicy-1.0.0.json b/applications/optimization/src/test/resources/onap.policies.optimization.AffinityPolicy-1.0.0.json
deleted file mode 100644
index d2b1b4b7..00000000
--- a/applications/optimization/src/test/resources/onap.policies.optimization.AffinityPolicy-1.0.0.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
- "policy_types": {
- "onap.policies.optimization.AffinityPolicy": {
- "derived_from": "onap.policies.Optimization",
- "version": "1.0.0",
- "type_version": "1.0.0",
- "properties": {
- "applicableResources": {
- "type": "list",
- "required": true,
- "entry_schema": {
- "type": "string",
- "constraints": [
- {
- "valid_values": [
- "any",
- "all"
- ]
- }
- ]
- }
- },
- "affinityProperties": {
- "type": "policy.data.affinityProperties_properties",
- "required": true
- }
- }
- }
- },
- "data_types": {
- "policy.data.affinityProperties_properties": {
- "derived_from": "tosca.nodes.Root",
- "version": "1.0.0",
- "properties": {
- "qualifier": {
- "type": "string",
- "constraints": [
- {
- "valid_values": [
- "same",
- "different"
- ]
- }
- ]
- },
- "category": {
- "type": "string",
- "required": true
- }
- }
- }
- }
-} \ No newline at end of file