diff options
4 files changed, 47 insertions, 2 deletions
diff --git a/models-examples/src/main/resources/policies/usecases.native.artifact.policy.input.tosca.json b/models-examples/src/main/resources/policies/usecases.native.artifact.policy.input.tosca.json new file mode 100644 index 000000000..f7acf1eef --- /dev/null +++ b/models-examples/src/main/resources/policies/usecases.native.artifact.policy.input.tosca.json @@ -0,0 +1,28 @@ +{ + "tosca_definitions_version": "tosca_simple_yaml_1_1_0", + "topology_template": { + "policies": [ + { + "usecases": { + "type": "onap.policies.native.drools.Artifact", + "type_version": "1.0.0", + "name": "usecases.artifacts", + "version": "1.0.0", + "metadata": { + "policy-id": "usecases.artifacts" + }, + "properties": { + "rulesArtifact": { + "groupId": "org.onap.policy.drools-applications.controlloop.common", + "artifactId": "controller-usecases", + "version": "1.6.1" + }, + "controller": { + "name": "usecases" + } + } + } + } + ] + } +} diff --git a/models-examples/src/main/resources/policies/usecases.native.artifact.policy.input.tosca.yaml b/models-examples/src/main/resources/policies/usecases.native.artifact.policy.input.tosca.yaml new file mode 100644 index 000000000..f45ba2708 --- /dev/null +++ b/models-examples/src/main/resources/policies/usecases.native.artifact.policy.input.tosca.yaml @@ -0,0 +1,17 @@ +tosca_definitions_version: tosca_simple_yaml_1_1_0 +topology_template: + policies: + - usecases: + type: onap.policies.native.drools.Artifact + type_version: 1.0.0 + name: usecases.artifacts + version: 1.0.0 + metadata: + policy-id: usecases.artifacts + properties: + rulesArtifact: + groupId: org.onap.policy.drools-applications.controlloop.common + artifactId: controller-usecases + version: 1.6.1 + controller: + name: usecases diff --git a/models-examples/src/main/resources/policies/usecases.native.controller.policy.input.tosca.json b/models-examples/src/main/resources/policies/usecases.native.controller.policy.input.tosca.json index 870c22ba2..7bea9c53a 100644 --- a/models-examples/src/main/resources/policies/usecases.native.controller.policy.input.tosca.json +++ b/models-examples/src/main/resources/policies/usecases.native.controller.policy.input.tosca.json @@ -1,5 +1,5 @@ { - "tosca_definitions_version": "tosca_simple_yaml_1_0_0", + "tosca_definitions_version": "tosca_simple_yaml_1_1_0", "topology_template": { "policies": [ { diff --git a/models-examples/src/main/resources/policies/usecases.native.controller.policy.input.tosca.yaml b/models-examples/src/main/resources/policies/usecases.native.controller.policy.input.tosca.yaml index f40992a47..df9fe5b4e 100644 --- a/models-examples/src/main/resources/policies/usecases.native.controller.policy.input.tosca.yaml +++ b/models-examples/src/main/resources/policies/usecases.native.controller.policy.input.tosca.yaml @@ -1,4 +1,4 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 +tosca_definitions_version: tosca_simple_yaml_1_1_0 topology_template: policies: - usecases: |