You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ariatosca.apache.org by "Ran Ziv (JIRA)" <ji...@apache.org> on 2017/08/30 09:48:00 UTC

[jira] [Updated] (ARIA-356) Specifying relationship type in a node template ignores the input overrides

     [ https://issues.apache.org/jira/browse/ARIA-356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ran Ziv updated ARIA-356:
-------------------------
    Issue Type: Bug  (was: Story)

> Specifying relationship type in a node template ignores the input overrides
> ---------------------------------------------------------------------------
>
>                 Key: ARIA-356
>                 URL: https://issues.apache.org/jira/browse/ARIA-356
>             Project: AriaTosca
>          Issue Type: Bug
>    Affects Versions: 0.1.0, 0.1.1
>            Reporter: Tal Liron
>
> See this example:
> {code}
> tosca_definitions_version: tosca_simple_yaml_1_0
> data_types:
>   MyData:
>     properties:
>       field:
>         type: string
>         default: default value
> relationship_types:
>   MyRelationship:
>     interfaces:
>       Configure:
>         type: tosca.interfaces.relationship.Configure
>         add_target:
>           inputs:
>             my_input:
>               type: MyData
> capability_types:
>   MyCapability: {}
> node_types:
>   MyNode1:
>     capabilities:
>       my_capability: MyCapability
>   MyNode2:
>     requirements:
>       - my_requirement:
>           capability: MyCapability
>           relationship: MyRelationship
> topology_template:
>   node_templates:
>     my_node1:
>       type: MyNode1
>     my_node2:
>       type: MyNode2
>       requirements:
>         - my_requirement:
>             relationship:
>               type: MyRelationship # THE PROBLEM
>               interfaces:
>                 Configure:
>                   add_target:
>                     inputs:
>                       my_input:
>                         field: assigned value
> {code}
> The above will fail to parse with this error:
> {code}
> Validation issues:
>   4: interface definition "Configure" does not assign a value to a required operation input "add_target.my_input" in "relationship"
> {code}
> The reason is that specifying the type (see the line with the "THE PROBLEM" comment) causes ARIA to ignore the following interface definition, so indeed the required input remains unassigned.
> Commenting out the "THE PROBLEM" line will allow the service template to parse correctly.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)