diff options
author | shangxdy <shang.xiaodong@zte.com.cn> | 2016-07-21 19:50:29 +0800 |
---|---|---|
committer | shangxdy <shang.xiaodong@zte.com.cn> | 2016-07-29 20:50:09 +0800 |
commit | db33fd6014c3d746d08002c7cfd061fcdad9868f (patch) | |
tree | cfa8406deecd8baf848834431f3581172985dc57 /tosca2heat/tosca-parser/toscaparser/tests/data/topology_template/definitions.yaml | |
parent | 9cf12e1857b10bdd7b49cbe7e64244670fb5a867 (diff) |
Add transaction subsystem definition in the use case of
substitution_mappings
As a developer;
I want to implement the function of substitution_mapping;
So that will complete the test file about transaction subsystem
definitions for example.
Change-Id: I5e44c2b4933afadf96743641279016af5afc39e0
JIRA: PARSER-68
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
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.yaml | 34 |
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: |