File: test_container_cap_child.yaml

package info (click to toggle)
python-tosca-parser 2.13.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,920 kB
  • sloc: python: 11,185; sh: 144; makefile: 26
file content (28 lines) | stat: -rw-r--r-- 625 bytes parent folder | download | duplicates (5)
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