forked from guacsec/guac
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TC-1609 Improve package's qualifiers management
Signed-off-by: mrizzi <[email protected]>
- Loading branch information
Showing
6 changed files
with
18,127 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -366,3 +366,17 @@ query TC_1593_HasMetadata { | |
} | ||
} | ||
} | ||
|
||
query TC_1609_HasMetadata { | ||
HasMetadata (hasMetadataSpec: { | ||
key: "topLevelPackage", | ||
value: "pkg:maven/com.example/[email protected]?type=jar", | ||
subject: {package: {name:"org-crac"}} | ||
}) { | ||
subject { | ||
... on Package { | ||
...allPkgTree | ||
} | ||
} | ||
} | ||
} |
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
29 changes: 29 additions & 0 deletions
29
internal/testing/e2e-trustification/expectTC_1609_HasMetadata.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[ | ||
{ | ||
"subject": { | ||
"type": "maven", | ||
"namespaces": [ | ||
{ | ||
"namespace": "io.github.crac", | ||
"names": [ | ||
{ | ||
"name": "org-crac", | ||
"versions": [ | ||
{ | ||
"version": "0.1.1.redhat-00002", | ||
"qualifiers": [ | ||
{ | ||
"key": "type", | ||
"value": "jar" | ||
} | ||
], | ||
"subpath": "" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] |
Oops, something went wrong.