summaryrefslogtreecommitdiffstats
path: root/tosca2heat/tosca-parser/toscaparser/tests/data/functions/test_container_cap_child.yaml
blob: 84118c8fb5c29f033a78e5743e8a4b5fc97cda26 (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
tosca_definitions_version: tosca_simple_yaml_1_0

description: >
  TOSCA simple profile to test the get attribute function with HOST parameter
  using a node that has as capability a child class of Container

imports:
  - ../custom_types/container_cap_child.yaml

topology_template:

  node_templates:

    test_node:
      type: tosca.nodes.SomeNode
      properties:
        some_prop: { get_attribute: [ HOST, public_address ] }
      requirements:
        - host_child: test_node2

    test_node2:
      type: tosca.nodes.SomeNode2
      requirements:
        - host: server

    server:
      type: tosca.nodes.Compute