occurrences and valid_source_types are not validated in relationships

Bug #2044266 reported by Miguel Caballer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TOSCA Parser
In Progress
Undecided
Miguel Caballer

Bug Description

In the validation of the relationships occurrences and valid_source_types are not validated.
For example, a SoftwareComponent without a host requirement is correctly parsed when it should raise an exception as the minimum occurrences of this relationship is 1 (the default value).

Also in the case of specifying "valid_source_types" in the definition it is not validated.

Revision history for this message
Miguel Caballer (micafer1) wrote :

A change has been submitted to review, only including the validation of the relationships occurrences:
https://review.opendev.org/c/openstack/tosca-parser/+/901762

Changed in tosca-parser:
assignee: nobody → Miguel Caballer (micafer1)
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.