Merge "The definition in test file subsystem.yaml is error"
[parser.git] / tosca2heat / tosca-parser / toscaparser / tests / data / topology_template / system.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 imports:
4   - definitions.yaml
5
6 topology_template:
7   description: Template of online transaction processing service.
8
9   node_templates:
10     mq:
11       type: example.QueuingSubsystem
12       # properties:
13         # to be updated when substitution_mapping is implemented
14       # capabilities:
15         # message_queue_endpoint:
16           # to be updated when substitution_mapping is implemented
17       requirements:
18         - receiver1: trans1
19         - receiver2: trans2
20
21     trans1:
22       type: example.TransactionSubsystem
23       properties:
24         # TODO to be updated when substitution_mapping is implemented
25         # mq_server_ip: { get_attribute: [ mq, server_ip ] }
26         # for now, we will use the loopback address to avoid errors as
27         # this property is required in the schema
28         mq_server_ip: 127.0.0.1
29         receiver_port: 8080
30       # capabilities:
31         # message_receiver:
32           # to be updated when substitution_mapping is implemented
33       requirements:
34         - database_endpoint: dbsys
35
36     trans2:
37       type: example.TransactionSubsystem
38       properties:
39         # TODO to be updated when substitution_mapping is implemented
40         # mq_server_ip: { get_attribute: [ mq, server_ip ] }
41         # for now, we will use the loopback address to avoid errors as
42         # this property is required in the schema
43         mq_server_ip: 127.0.0.1
44         receiver_port: 8080
45       # capabilities:
46         # message_receiver:
47           # to be updated when substitution_mapping is implemented
48       requirements:
49         - database_endpoint: dbsys
50
51     dbsys:
52       type: example.DatabaseSubsystem
53       # properties:
54         # to be updated when substitution_mapping is implemented
55       # capabilities:
56         # database_endpoint:
57           # to be updated when substitution_mapping is implemented