Files
tosca-parser/samples/tests/data/interfaces/test_custom_interface_in_template.yaml
micafer fe0d9e9934 Validate occurrences in relationships
Check that the number of occurences of the relationships of a template is correct related with the definition of the type.
Also fix other tests that do not pass this new test.

Related-Bug: 2044266
Change-Id: I3dfa56d4e48454983daacc4b210017be1123683a
2025-05-19 05:55:49 +00:00

29 lines
714 B
YAML

tosca_definitions_version: tosca_simple_yaml_1_0
description: >
TOSCA simple profile with valid custom interface and operations.
imports:
- ../custom_types/custom_interface.yaml
topology_template:
node_templates:
customInterfaceTest:
type: tosca.nodes.CustomInterfaceTest
interfaces:
CustomInterface:
CustomOp: # operation from interface_type with additional inputs
inputs:
param:
type: string
CustomOp3: # operation from node_type with additional inputs
inputs:
param3:
type: string
requirements:
- host: my_server
my_server:
type: tosca.nodes.Compute