summaryrefslogtreecommitdiffstats
path: root/tosca2heat/tosca-parser/toscaparser/tests/data/topology_template/definitions.yaml
diff options
context:
space:
mode:
authorshangxdy <shang.xiaodong@zte.com.cn>2016-07-29 12:54:07 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-07-29 12:54:07 +0000
commit47821301accde5ecc0dc90be2048f479e5857672 (patch)
tree813396de926a2d9f07bc4aa5cd1412e751f3468f /tosca2heat/tosca-parser/toscaparser/tests/data/topology_template/definitions.yaml
parentc591b4aaf6572ae80eea35e3569b4ea860dbddac (diff)
parentdb33fd6014c3d746d08002c7cfd061fcdad9868f (diff)
Merge "Add transaction subsystem definition in the use case of substitution_mappings"
Diffstat (limited to 'tosca2heat/tosca-parser/toscaparser/tests/data/topology_template/definitions.yaml')
-rw-r--r--tosca2heat/tosca-parser/toscaparser/tests/data/topology_template/definitions.yaml34
1 files changed, 23 insertions, 11 deletions
diff --git a/tosca2heat/tosca-parser/toscaparser/tests/data/topology_template/definitions.yaml b/tosca2heat/tosca-parser/toscaparser/tests/data/topology_template/definitions.yaml
index cfa0614..e8e8c8a 100644
--- a/tosca2heat/tosca-parser/toscaparser/tests/data/topology_template/definitions.yaml
+++ b/tosca2heat/tosca-parser/toscaparser/tests/data/topology_template/definitions.yaml
@@ -1,6 +1,23 @@
tosca_definitions_version: tosca_simple_yaml_1_0
node_types:
+ example.QueuingSubsystem:
+ derived_from: tosca.nodes.SoftwareComponent
+ properties:
+ server_ip:
+ type: string
+ server_port:
+ type: integer
+ requirements:
+ - receiver1:
+ node: example.TransactionSubsystem
+ capability: example.capabilities.Receiver
+ relationship: tosca.relationships.ConnectsTo
+ - receiver2:
+ node: example.TransactionSubsystem
+ capability: example.capabilities.Receiver
+ relationship: tosca.relationships.ConnectsTo
+
example.TransactionSubsystem:
properties:
mq_server_ip:
@@ -17,18 +34,8 @@ node_types:
type: example.capabilities.Receiver
requirements:
- database_endpoint:
- capability: tosca.capabilities.Endpoint.Database
node: tosca.nodes.Database
- relationship: tosca.relationships.ConnectsTo
-
- example.QueuingSubsystem:
- derived_from: tosca.nodes.SoftwareComponent
- requirements:
- - receiver1:
- node: example.TransactionSubsystem
- relationship: tosca.relationships.ConnectsTo
- - receiver2:
- node: example.TransactionSubsystem
+ capability: tosca.capabilities.Endpoint.Database
relationship: tosca.relationships.ConnectsTo
example.DatabaseSubsystem:
@@ -44,6 +51,11 @@ node_types:
capabilities:
message_receiver:
type: example.capabilities.Receiver
+ requirements:
+ - database:
+ node: tosca.nodes.Database
+ capability: tosca.capabilities.Endpoint.Database
+ relationship: tosca.relationships.ConnectsTo
capability_types:
example.capabilities.Receiver: