Skip to content

Commit d90e92d

Browse files
authored
Merge pull request #165 from nokia/guide-1.1
Version 1.1 of the Guide in messages.
2 parents a966145 + 5552dff commit d90e92d

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

tools/openchain_telco_sbom_validator/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# openchain-telco-sbom-validator
22

3-
A script to validate SBOMs against version 1.0 of
3+
A script to validate SBOMs against version 1.1 of
44
the [OpenChain Telco SBOM Guide](https://github.com/OpenChain-Project/Telco-WG/blob/main/OpenChain-Telco-SBOM-Guide_EN.md).
55

66
# Installation
@@ -51,7 +51,7 @@ options:
5151
“checksum-all” (externalrefs are identified by their checksum),
5252
“yocto-all” (all externalrefs are investigated) and
5353
“yocto-contains-only” (only those files are investigated which are in
54-
CONTAIN relationships). It is possible to register more reference
54+
CONTAINS relationships). It is possible to register more reference
5555
logics in library mode.
5656
```
5757

tools/openchain_telco_sbom_validator/src/openchain_telco_sbom_validator/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __getitem__(self, index):
8383
return self.items[index]
8484

8585
def parseArguments(additionalArguments: AdditionalArguments = AdditionalArguments()):
86-
parser = argparse.ArgumentParser(description='A script to validate an SPDX file against version 1.0 of the OpenChain Telco SBOM Guide.')
86+
parser = argparse.ArgumentParser(description='A script to validate an SPDX file against version 1.1 of the OpenChain Telco SBOM Guide.')
8787
# TODO: This should go in without any parameter.
8888
parser.add_argument('input',
8989
help='The input SPDX file.',
@@ -113,7 +113,7 @@ def parseArguments(additionalArguments: AdditionalArguments = AdditionalArgument
113113
' “checksum-all” (externalrefs are identified by their checksum),'
114114
' “yocto-all” (all externalrefs are investigated) and'
115115
' “yocto-contains-only” (only those files are investigated which are in'
116-
' CONTAIN relationships). It is possible to register more reference'
116+
' CONTAINS relationships). It is possible to register more reference'
117117
' logics in library mode')
118118

119119
for argument in additionalArguments:

tools/openchain_telco_sbom_validator/src/openchain_telco_sbom_validator/reporter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ def reportCli(result, problems, nr_of_errors, input):
4040

4141
print(resultTable)
4242
if len(problems.checked_files) == 1:
43-
print(f"The SPDX file {input} is not compliant with the OpenChain Telco SBOM Guide version 1.0")
43+
print(f"The SPDX file {input} is not compliant with the OpenChain Telco SBOM Guide version 1.1")
4444
else:
45-
print(f"One or more of the SPDX files {problems.get_files_as_string()} are not compliant with the OpenChain Telco SBOM Guide version 1.0")
45+
print(f"One or more of the SPDX files {problems.get_files_as_string()} are not compliant with the OpenChain Telco SBOM Guide version 1.1")
4646
return 1
4747
else:
4848
if len(problems.checked_files) == 1:
49-
print(f"The SPDX file {input} is compliant with the OpenChain Telco SBOM Guide version 1.0")
49+
print(f"The SPDX file {input} is compliant with the OpenChain Telco SBOM Guide version 1.1")
5050
else:
51-
print(f"All of the SPDX files {problems.get_files_as_string()} are compliant with the OpenChain Telco SBOM Guide version 1.0")
51+
print(f"All of the SPDX files {problems.get_files_as_string()} are compliant with the OpenChain Telco SBOM Guide version 1.1")
5252
return 0
5353

5454
def reportVersion():

tools/openchain_telco_sbom_validator/src/openchain_telco_sbom_validator/validator.py

100755100644
File mode changed.

tools/openchain_telco_sbom_validator/testing/test-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function test_linked_yocto_all
177177
assert_exit_fail
178178
assert_has_output
179179
assert_output_contains "29 | SPDX"
180-
assert_output_contains "One or more of the SPDX files linked-sbom-01.spdx.json, alarm.spdx.json, recipe-alarm.spdx.json, runtime-alarm.spdx.json, em-accessories.spdx.json, alignmentpavendors.spdx.json, recipe-alignmentpavendors.spdx.json, runtime-alignmentpavendors.spdx.json, alps.spdx.json, runtime-alps.spdx.json, kernel-5.15.155-r42.spdx.json, runtime-kernel-5.15.155-r42.spdx.json are not compliant with the OpenChain Telco SBOM Guide version 1.0"
180+
assert_output_contains "One or more of the SPDX files linked-sbom-01.spdx.json, alarm.spdx.json, recipe-alarm.spdx.json, runtime-alarm.spdx.json, em-accessories.spdx.json, alignmentpavendors.spdx.json, recipe-alignmentpavendors.spdx.json, runtime-alignmentpavendors.spdx.json, alps.spdx.json, runtime-alps.spdx.json, kernel-5.15.155-r42.spdx.json, runtime-kernel-5.15.155-r42.spdx.json are not compliant with the OpenChain Telco SBOM Guide version 1.1"
181181
}
182182

183183
function test_linked_yocto-contains-only
@@ -218,4 +218,4 @@ function test_linked_checksum_all
218218

219219

220220

221-
testrunner
221+
testrunner

0 commit comments

Comments
 (0)