Skip to content

Commit

Permalink
Update openssl package builder #74
Browse files Browse the repository at this point in the history
    * Update expected test results

Signed-off-by: Jono Yang <[email protected]>
  • Loading branch information
JonoYang committed May 11, 2023
1 parent cea68f1 commit 8aac3fe
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion minecode/mappers/openssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def build_packages(resource_uri, purl=None):
version=version,
size=resource_uri.size,
release_date=parse_date(resource_uri.last_modified_date),
declared_license='OpenSSL License',
extracted_license_statement='OpenSSL License',
homepage_url='https://www.openssl.org/',
download_url=uri,
copyright='Copyright (c) 1998-2018 The OpenSSL Project\nCopyright (c) 1995-1998 Eric A. Young, Tim J. Hudson\nAll rights reserved.',
Expand Down
30 changes: 28 additions & 2 deletions minecode/tests/testfiles/openssl/openssl_mapper_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,34 @@
"code_view_url":"https://github.com/openssl/openssl",
"vcs_url":"git+https://github.com/openssl/openssl.git",
"copyright":"Copyright (c) 1998-2018 The OpenSSL Project\nCopyright (c) 1995-1998 Eric A. Young, Tim J. Hudson\nAll rights reserved.",
"license_expression":null,
"declared_license":"OpenSSL License",
"holder":null,
"declared_license_expression":"openssl-ssleay",
"declared_license_expression_spdx":"OpenSSL",
"license_detections":[
{
"license_expression":"openssl-ssleay",
"matches":[
{
"score":100.0,
"start_line":1,
"end_line":1,
"matched_length":2,
"match_coverage":100.0,
"matcher":"1-hash",
"license_expression":"openssl-ssleay",
"rule_identifier":"openssl-ssleay_2.RULE",
"rule_relevance":100,
"rule_url":"https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/openssl-ssleay_2.RULE",
"matched_text":"OpenSSL License"
}
],
"identifier":"openssl_ssleay-0967947a-f286-908c-a7e9-120531930cb6"
}
],
"other_license_expression":null,
"other_license_expression_spdx":null,
"other_license_detections":[],
"extracted_license_statement":"OpenSSL License",
"notice_text":null,
"source_packages":[],
"extra_data":{},
Expand Down

0 comments on commit 8aac3fe

Please sign in to comment.