File: test_unknown_capability_property.yaml

package info (click to toggle)
python-tosca-parser 2.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,908 kB
  • sloc: python: 11,099; sh: 144; makefile: 26
file content (36 lines) | stat: -rw-r--r-- 896 bytes parent folder | download | duplicates (6)
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 ] }