summaryrefslogtreecommitdiffstats
path: root/tosca2heat/tosca-parser/toscaparser/tests/data/functions/test_unknown_capability_property.yaml
blob: 4a9253065708c97643045725bff3e50886973968 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
tosca_definitions_version: tosca_simple_yaml_1_0

description: >
    Tosca template for testing an unknown capability property.

topology_template:
  node_templates:
    server:
      type: tosca.nodes.Compute
      capabilities:
        host:
          properties:
            num_cpus: 2
    dbms:
      type: tosca.nodes.DBMS
      properties:
        root_password: 1234
        port: 3672
    database:
      type: tosca.nodes.Database
      properties:
        name: my_db
        user: abcd
        password: 1234
      capabilities:
        database_endpoint:
          properties:
            port: { get_property: [ dbms, port ] }
      requirements:
        - host: dbms
      interfaces:
        Standard:
           configure:
              implementation: database_configure.sh
              inputs:
                  db_port: { get_property: [ SELF, database_endpoint, unknown ] }