Skip to content

Commit c9d5d3f

Browse files
authored
Merge pull request #223 from nokia/add-222-test
Add test for pr 222
2 parents b748ec0 + 2177f69 commit c9d5d3f

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
SPDXVersion: SPDX-2.3
2+
DataLicense: CC0-1.0
3+
SPDXID: SPDXRef-DOCUMENT
4+
DocumentName: pyzbar-0.1.9
5+
DocumentNamespace: https://nokia.com/spdx/pyzbar-0.1.9
6+
7+
## Creation Information
8+
9+
LicenseListVersion: 3.27
10+
Creator: Organization: Nokia
11+
Creator: Tool: pypispdx - 0.1.0
12+
Created: 2025-11-04T17:48:51Z
13+
CreatorComment: <text>
14+
CISA SBOM type: Analyzed
15+
This SBOM was created with Python version 3.14.0
16+
</text>
17+
18+
##### Package: pyzbar
19+
20+
PackageName: pyzbar
21+
SPDXID: SPDXRef-pyzbar
22+
PackageVersion: 0.1.9
23+
PackageSupplier: Organization: https://pypi.org
24+
PackageDownloadLocation: NOASSERTION
25+
FilesAnalyzed: false
26+
PackageLicenseConcluded: MIT
27+
PackageLicenseDeclared: MIT
28+
PackageCopyrightText: NOASSERTION
29+
ExternalRef: PACKAGE-MANAGER purl pkg:pypi/pyzbar@0.1.9
30+
31+
##### Relationships
32+
33+
Relationship: SPDXRef-DOCUMENT DESCRIBES SPDXRef-pyzbar

tools/openchain_telco_sbom_validator/testing/test-test.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,5 +377,17 @@ function test_ok_noassert
377377
assert_output_contains "NOASSERTION"
378378
}
379379

380+
function test_ok_sbom_type_newline
381+
{
382+
echo "Test: test_ok_sbom_type_newline"
383+
run "openchain-telco-sbom-validator test-sbom-11.spdx"
384+
echo "$output"
385+
assert_terminated_normally
386+
assert_exit_success
387+
assert_has_output
388+
assert_output_contains "The SPDX file test-sbom-11.spdx is compliant with the OpenChain Telco SBOM Guide version 1.1"
389+
}
390+
391+
380392
testrunner
381393
deactivate

0 commit comments

Comments
 (0)