netsted template validate type 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   - subsystem.yaml
6
7 topology_template:
8   description: Template of online transaction processing service.
9
10   node_templates:
11     mq:
12       type: example.QueuingSubsystem
13       # properties:
14         # to be updated when substitution_mapping is implemented
15       # capabilities:
16         # message_queue_endpoint:
17           # to be updated when substitution_mapping is implemented
18       requirements:
19         - receiver1: trans1
20         - receiver2: trans2
21
22     trans1:
23       type: example.TransactionSubsystem
24       properties:
25         # TODO to be updated when substitution_mapping is implemented
26         # mq_server_ip: { get_attribute: [ mq, server_ip ] }
27         # for now, we will use the loopback address to avoid errors as
28         # this property is required in the schema
29         mq_server_ip: 127.0.0.1
30         receiver_port: 8080
31       # capabilities:
32         # message_receiver:
33           # to be updated when substitution_mapping is implemented
34       requirements:
35         - database_endpoint: dbsys
36
37     trans2:
38       type: example.TransactionSubsystem
39       properties:
40         # TODO to be updated when substitution_mapping is implemented
41         # mq_server_ip: { get_attribute: [ mq, server_ip ] }
42         # for now, we will use the loopback address to avoid errors as
43         # this property is required in the schema
44         mq_server_ip: 127.0.0.1
45         receiver_port: 8080
46       # capabilities:
47         # message_receiver:
48           # to be updated when substitution_mapping is implemented
49       requirements:
50         - database_endpoint: dbsys
51
52     dbsys:
53       type: example.DatabaseSubsystem
54       # properties:
55         # to be updated when substitution_mapping is implemented
56       # capabilities:
57         # database_endpoint:
58           # to be updated when substitution_mapping is implemented