1 tosca_definitions_version: tosca_simple_yaml_1_0
4 This template is a test template which contains invalid input needed for substitution mappings.
5 The required properties without default value in substituted node template which be mapped must be
6 as inputs of nested service template which defines substutition mappings, and the inputs of nested
7 service template which are not in the properties of the substituted node template must provide
9 This template provides an additional input of server_port1/my_cpus/my_input which are not defined
10 in example.QueuingSubsystem, and the default value are 8080/2/123, all of these are right. But the
11 required property of server_port defined in example.QueuingSubsystem is not appeared in inputs
12 definiton, so will raise excepton of "MissingRequiredInputError".
18 description: Template of a database including its hosting stack.
23 description: IP address of the message queuing server to receive messages from.
27 description: Port to be used for receiving messages.
31 description: Number of CPUs for the server.
34 - valid_values: [ 1, 2, 4, 8 ]
37 description: test for input validation.
40 substitution_mappings:
41 node_type: example.QueuingSubsystem
43 receiver1: [ tran_app, receiver1 ]
44 receiver2: [ tran_app, receiver2 ]
48 type: example.QueuingSubsystem
50 server_ip: { get_input: server_ip }
51 server_port: { get_input: server_port1 }
57 type: tosca.nodes.Compute
62 num_cpus: { get_input: my_cpus }
73 description: private IP address of the message receiver application
74 value: { get_attribute: [ server, private_address ] }
78 members: [ tran_app, server ]
79 type: tosca.groups.Root