summaryrefslogtreecommitdiffstats
path: root/feature-lifecycle/src/test/resources
diff options
context:
space:
mode:
authorjhh <jorge.hernandez-herrero@att.com>2020-01-30 18:57:13 -0600
committerjhh <jorge.hernandez-herrero@att.com>2020-02-04 00:26:57 -0600
commitbaa4e928207f5930fcd620bddddcd493aa7a4122 (patch)
treeb4832c661bc05bcb457e65a73c06f0a960ac7632 /feature-lifecycle/src/test/resources
parenta54a2373f1b48cdb64d4920ec57ffeab4f228814 (diff)
domain native and operational policies support
- moved DomainMaker to policy-utils/ project. - support for native drools and controller drools policy types. Issue-ID: POLICY-2345 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I46b9816eadceb7ef280e0e6789f07b4d4ca51519 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Diffstat (limited to 'feature-lifecycle/src/test/resources')
-rw-r--r--feature-lifecycle/src/test/resources/example.policy.drools.controller.tosca.json54
-rw-r--r--feature-lifecycle/src/test/resources/example.policy.native.drools.tosca.json29
2 files changed, 83 insertions, 0 deletions
diff --git a/feature-lifecycle/src/test/resources/example.policy.drools.controller.tosca.json b/feature-lifecycle/src/test/resources/example.policy.drools.controller.tosca.json
new file mode 100644
index 00000000..b4dd50da
--- /dev/null
+++ b/feature-lifecycle/src/test/resources/example.policy.drools.controller.tosca.json
@@ -0,0 +1,54 @@
+{
+ "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
+ "topology_template": {
+ "policies": [
+ {
+ "example": {
+ "type": "onap.policies.drools.Controller",
+ "type_version": "1.0.0",
+ "version": "1.0.0",
+ "name": "example",
+ "metadata": {
+ "policy-id": "example"
+ },
+ "properties": {
+ "controllerName": "example",
+ "sourceTopics": [
+ {
+ "topicName": "DCAE_TOPIC",
+ "serialization": [
+ {
+ "eventClass": "org.onap.policy.controlloop.CanonicalOnset",
+ "eventFilter": "[?($.closedLoopEventStatus == 'ONSET')]",
+ "customSerializer": {
+ "customSerializerClass": "org.onap.policy.controlloop.util.Serialization",
+ "jsonParser": "gson"
+ }
+ }
+ ]
+ }
+ ],
+ "sinkTopics": [
+ {
+ "topicName": "APPC-CL",
+ "serialization": [
+ {
+ "eventClass": "org.onap.policy.appc.Response",
+ "eventFilter": "[?($.CommonHeader && $.Status)]",
+ "customSerializer": {
+ "customSerializerClass": "org.onap.policy.appc.util.Serialization",
+ "jsonParser": "gsonPretty"
+ }
+ }
+ ]
+ }
+ ],
+ "customConfig": {
+ "field1" : "value1"
+ }
+ }
+ }
+ }
+ ]
+ }
+} \ No newline at end of file
diff --git a/feature-lifecycle/src/test/resources/example.policy.native.drools.tosca.json b/feature-lifecycle/src/test/resources/example.policy.native.drools.tosca.json
new file mode 100644
index 00000000..0313b2ed
--- /dev/null
+++ b/feature-lifecycle/src/test/resources/example.policy.native.drools.tosca.json
@@ -0,0 +1,29 @@
+{
+ "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
+ "topology_template": {
+ "policies": [
+ {
+ "example": {
+ "type": "onap.policies.native.Drools",
+ "type_version": "1.0.0",
+ "version": "1.0.0",
+ "name": "example",
+ "metadata": {
+ "policy-id": "example"
+ },
+ "properties": {
+ "rulesArtifact": {
+ "groupId": "org.onap.policy.controlloop",
+ "artifactId": "example",
+ "version": "1.0.0"
+ },
+ "controller": {
+ "name": "example",
+ "version": "1.0.0"
+ }
+ }
+ }
+ }
+ ]
+ }
+} \ No newline at end of file