diff options
author | jhh <jorge.hernandez-herrero@att.com> | 2020-04-15 14:28:45 -0500 |
---|---|---|
committer | jhh <jorge.hernandez-herrero@att.com> | 2020-04-15 18:28:47 -0500 |
commit | 522215024b5e8a9c027597b7fa8b24bf14f0d086 (patch) | |
tree | 2dd9476ee52d54820088c9641a30058c942c7ffa /models-examples/src/main/resources/policies | |
parent | 85841e358763f6d71a3b2ac27d3fd39dc60667c0 (diff) |
Add example drools native artifact policies
Issue-ID: POLICY-2378
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Iab36c4b3214bef90dfe4a6f00ff68df04e3de203
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Diffstat (limited to 'models-examples/src/main/resources/policies')
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: |