Update tosca lib to version 0.5
[parser.git] / tosca2heat / tosca-parser / toscaparser / tests / data / functions / test_invalid_function_signature.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: >
4   TOSCA simple profile template to test invalid get_input function.
5
6 topology_template:
7   inputs:
8     cpus:
9       type: integer
10       description: Number of CPUs for the server.
11       constraints:
12         - valid_values: [ 1, 2, 4, 8 ]
13
14   node_templates:
15     server:
16       type: tosca.nodes.Compute
17       capabilities:
18         host:
19           properties:
20             # compute properties (flavor)
21             disk_size: 10 GB
22             num_cpus: { get_input: [cpus, cpus] }
23             mem_size: 4096 MB
24         os:
25           properties:
26             architecture: x86_64
27             type: Linux
28             distribution: Fedora
29             version: 18.0
30
31   outputs:
32     server_address:
33       description: IP address of server instance.
34       value: { get_attribute: [server, private_address] }