Add output validation for substitution mappings
[parser.git] / tosca2heat / tosca-parser / toscaparser / tests / data / topology_template / definitions.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 node_types:
4   example.QueuingSubsystem:
5     derived_from: tosca.nodes.SoftwareComponent
6     properties:
7       server_ip:
8         type: string
9       server_port:
10         type: integer
11     attributes:
12       server_ip:
13         type: string
14       server_port:
15         type: integer
16     requirements:
17       - receiver1:
18           node: example.TransactionSubsystem
19           capability: example.capabilities.Receiver
20           relationship: tosca.relationships.ConnectsTo
21       - receiver2:
22           node: example.TransactionSubsystem
23           capability: example.capabilities.Receiver
24           relationship: tosca.relationships.ConnectsTo
25
26   example.TransactionSubsystem:
27     properties:
28       mq_server_ip:
29         type: string
30       receiver_port:
31         type: integer
32     attributes:
33       receiver_ip:
34         type: string
35       receiver_port:
36         type: integer
37     capabilities:
38       message_receiver:
39         type: example.capabilities.Receiver
40     requirements:
41       - database_endpoint:
42           node: tosca.nodes.Database
43           capability: tosca.capabilities.Endpoint.Database
44           relationship: tosca.relationships.ConnectsTo
45
46   example.DatabaseSubsystem:
47     derived_from: tosca.nodes.Database
48
49   example.SomeApp:
50     derived_from: tosca.nodes.SoftwareComponent
51     properties:
52       admin_user:
53         type: string
54       pool_size:
55         type: integer
56     capabilities:
57       message_receiver:
58         type: example.capabilities.Receiver
59     requirements:
60       - database:
61           node: tosca.nodes.Database
62           capability: tosca.capabilities.Endpoint.Database
63           relationship: tosca.relationships.ConnectsTo
64
65 capability_types:
66    example.capabilities.Receiver:
67      derived_from: tosca.capabilities.Endpoint
68      properties:
69        server_ip:
70          type: string