summaryrefslogtreecommitdiffstats
path: root/models-tosca/src/test/resources
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2019-10-21 13:59:02 -0400
committerPamela Dragosh <pdragosh@research.att.com>2019-10-21 13:59:23 -0400
commit5f69582dfaf325a8552ebeaa7cd69f81bc7d478f (patch)
treec1af7cf77060e2b9e7cd78ac74d5ba3004a0a717 /models-tosca/src/test/resources
parentd0cca771fa39943a46470240cd0106941056e974 (diff)
Update optimization policies to have version
These should be version 1.0.0. Add in a no version test. Issue-ID: POLICY-2066 Change-Id: Ie113c02c37e95b86dbb31247bf7a9fda09f724b1 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'models-tosca/src/test/resources')
-rw-r--r--models-tosca/src/test/resources/onap.policies.NoVersion.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/models-tosca/src/test/resources/onap.policies.NoVersion.yaml b/models-tosca/src/test/resources/onap.policies.NoVersion.yaml
new file mode 100644
index 000000000..7d1262b7d
--- /dev/null
+++ b/models-tosca/src/test/resources/onap.policies.NoVersion.yaml
@@ -0,0 +1,30 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0
+policy_types:
+ onap.policies.NoVersion:
+ derived_from: onap.policies.Optimization
+ 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
+ properties:
+ qualifier:
+ type: string
+ constraints:
+ - valid_values:
+ - same
+ - different
+ category:
+ type: string
+ required: true \ No newline at end of file