summaryrefslogtreecommitdiffstats
path: root/tosca2heat/tosca-parser/toscaparser/tests/data/custom_types/node_with_cap.yaml
blob: 332f83002f76b7cc99d3db1a0471cd71857df31d (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
37
38
tosca_definitions_version: tosca_simple_yaml_1_0

description: >
  Node type that has a requirement of a capability with a defined value

capability_types:

  tosca.capabilities.SomeCap:
    derived_from: tosca.capabilities.Container
    properties:
      type:
        type: string
        required: true
        default: someval
        constraints:
          - equal: someval

node_types:

  tosca.nodes.SomeNode:
    derived_from: tosca.nodes.Root
    properties:
      some_prop:
        type: string
        required: false
        default: some
    requirements:
      - some_req:
          capability: tosca.capabilities.SomeCap
          node: tosca.nodes.NodeWithCap
          relationship: tosca.relationships.HostedOn

  tosca.nodes.NodeWithCap:
    derived_from: tosca.nodes.Root
    capabilities:
        some_req:
          type: tosca.capabilities.SomeCap