-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(SpdxDocumentFile): Add test for missing issues for external refs
Add synthetic project and an associated test to verify that issues from an external document ref are added to the result. Signed-off-by: Marcel Bochtler <[email protected]>
- Loading branch information
1 parent
25f07db
commit 9dd5234
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
...Test/assets/projects/synthetic/illegal-chars-external-refs/illegal_chars/package.spdx.yml
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,23 @@ | ||
SPDXID: "SPDXRef-DOCUMENT" | ||
spdxVersion: "SPDX-2.2" | ||
creationInfo: | ||
created: "2022-06-29T00:00:00Z" | ||
creators: | ||
- "Organization: OSS Review Toolkit" | ||
name: "illegal_chars" | ||
dataLicense: "CC0-1.0" | ||
documentNamespace: "http://spdx.org/spdxdocs/example" | ||
documentDescribes: | ||
- "SPDXRef-Package-asio_dtls" | ||
packages: | ||
- SPDXID: "SPDXRef-Package-illegal_chars" # This SPDX ID contains '_' which is not allowed. | ||
description: "A SPDX document that is in a directory characters not allowed for SPDX IDs" | ||
copyrightText: "NONE" | ||
filesAnalyzed: false | ||
homepage: "https://example.com/" | ||
licenseConcluded: "NOASSERTION" | ||
licenseDeclared: "NOASSERTION" | ||
originator: "Organization: Robert Bosch GmbH" | ||
name: "illegal_chars" | ||
downloadLocation: "https://example.com" | ||
versionInfo: "1.0.0" |
29 changes: 29 additions & 0 deletions
29
...dx/src/funTest/assets/projects/synthetic/illegal-chars-external-refs/project-xyz.spdx.yml
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 @@ | ||
SPDXID: "SPDXRef-DOCUMENT" | ||
spdxVersion: "SPDX-2.2" | ||
creationInfo: | ||
created: "2024-07-08T18:30:22Z" | ||
creators: | ||
- "OSS Review Toolkit" | ||
name: "External Ref with illegal chars" | ||
dataLicense: "CC0-1.0" | ||
documentNamespace: "https://spdx.org/spdxdocs/example" | ||
documentDescribes: | ||
- "SPDXRef-Package-illegal-chars" | ||
|
||
externalDocumentRefs: | ||
- externalDocumentId: "DocumentRef-illegal_chars" # This SPDX ID contains '_' which is not allowed. | ||
spdxDocument: "illegal_chars/package.spdx.yml" | ||
checksum: | ||
algorithm: "SHA1" | ||
checksumValue: "3e3edec9f5073a7b17a9fd066e5f49ed3e41f0a2" | ||
|
||
packages: | ||
- SPDXID: "SPDXRef-Package-test" | ||
copyrightText: "NONE" | ||
downloadLocation: "https://example.com" | ||
filesAnalyzed: false | ||
homepage: "NONE" | ||
licenseConcluded: "Apache-2.0" | ||
licenseDeclared: "Apache-2.0" | ||
name: "Illegal Chars" | ||
originator: "Organization: OSS Review Toolkit" |
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