-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add test checking relationships of different types Signed-off-by: Mike Mason <[email protected]> * correct relationship check direction Previously we were checking if the destination resource had a relation rather than the targeted resource having a relation to the destination. This resulted in the following not working: ```yaml resourcetypes: - name: folder relationships: - relation: parent targettypenames: - folder - name: file relationships: - relation: parent targettypenames: - folder ``` When creating a relationship previously, relating a folder to a parent folder would work since they happen to have the same resource type. However relating a file to a parent folder would fail due to us checking if folder has a parent relationship type name for file. Signed-off-by: Mike Mason <[email protected]> --------- Signed-off-by: Mike Mason <[email protected]>
- Loading branch information
Showing
3 changed files
with
80 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters