Fix model type searching
[clamp.git] / src / test / resources / example / sdc / blueprint-dcae / tca.yaml
index 101dc2c..0cb9cdb 100644 (file)
@@ -9,7 +9,15 @@ inputs:
     type: string
   service_id:
     type: string
+  policy_id:
+    type: string
 node_templates:
+  policy_0:
+    type: dcae.nodes.policy
+    properties:
+      policy_id: 
+        get_input: policy_id
+      policy_model_id: "onap.policies.monitoring.cdap.tca.hi.lo.app"
   cdap_host_host:
     type: dcae.nodes.StreamingAnalytics.SelectedCDAPInfrastructure
     properties:
@@ -40,8 +48,8 @@ node_templates:
         publisherPollingInterval: '20000'
         publisherProtocol: https
         publisherTopicName: org.onap.dcae.dmaap.mtnje2.DcaeTestVESPub
-        publisherUserName: m00502@tca.af.dcae.onap.org
-        publisherUserPassword: Te5021abc
+        publisherUserName: test@tca.af.dcae.onap.org
+        publisherUserPassword: password
         subscriberConsumerGroup: OpenDCAE-c12
         subscriberConsumerId: c12
         subscriberContentType: application/json
@@ -52,8 +60,8 @@ node_templates:
         subscriberProtocol: https
         subscriberTimeoutMS: '-1'
         subscriberTopicName: org.onap.dcae.dmaap.mtnje2.DcaeTestVESSub
-        subscriberUserName: m00502@tca.af.dcae.onap.org
-        subscriberUserPassword: Te5021abc
+        subscriberUserName: test@tca.af.dcae.onap.org
+        subscriberUserPassword: password
         tca_policy: null
       artifact_name: dcae-analytics-tca
       artifact_version: 1.0.0
@@ -78,5 +86,20 @@ node_templates:
         get_input: service_id
       streamname: TCASubscriberOutputStream
     relationships:
+    - target: topic0
+      type: dcae.relationships.subscribe_to_events
+    - target: topic1
+      type: dcae.relationships.publish_events
     - target: cdap_host_host
-      type: dcae.relationships.component_contained_in
\ No newline at end of file
+      type: dcae.relationships.component_contained_in
+    - target: policy_0
+      type: dcae.relationships.depends_on
+  topic0:
+    type: dcae.nodes.Topic
+    properties:
+      topic_name: ''
+  topic1:
+    type: dcae.nodes.Topic
+    properties:
+      topic_name: ''
+