Integrate using Policy Type to find Matchable
[policy/xacml-pdp.git] / applications / optimization / src / test / resources / onap.policies.optimization.SubscriberPolicy-1.0.0.json
diff --git a/applications/optimization/src/test/resources/onap.policies.optimization.SubscriberPolicy-1.0.0.json b/applications/optimization/src/test/resources/onap.policies.optimization.SubscriberPolicy-1.0.0.json
new file mode 100644 (file)
index 0000000..a239d82
--- /dev/null
@@ -0,0 +1,43 @@
+{
+    "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
+    "policy_types": {
+        "onap.policies.optimization.SubscriberPolicy": {
+            "derived_from": "onap.policies.Optimization",
+            "version": "1.0.0",
+            "properties": {
+                "subscriberProperties": {
+                    "type": "policy.data.subscriberProperties_properties",
+                    "required": true
+                }
+            }
+        }
+    },
+    "data_types": {
+        "policy.data.subscriberProperties_properties": {
+            "derived_from": "tosca.nodes.Root",
+            "properties": {
+                "subscriberName": {
+                    "type": "list",
+                    "required": true,
+                    "entry_schema": {
+                        "type": "string"
+                    }
+                },
+                "subscriberRole": {
+                    "type": "list",
+                    "required": true,
+                    "entry_schema": {
+                        "type": "string"
+                    }
+                },
+                "provStatus": {
+                    "type": "list",
+                    "required": true,
+                    "entry_schema": {
+                        "type": "string"
+                    }
+                }
+            }
+        }
+    }
+}
\ No newline at end of file