Skip to content

Commit fc2d36a

Browse files
committed
fix(nuget): update nuget test
Signed-off-by: Abedin Poonawala <[email protected]>
1 parent f370581 commit fc2d36a

File tree

5 files changed

+268
-24
lines changed

5 files changed

+268
-24
lines changed

tests/packagedcode/data/nuget/Castle.Core.nuspec.json.expected

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,65 @@
3737
"code_view_url": null,
3838
"vcs_url": "git+https://github.com/castleproject/Core",
3939
"copyright": "Copyright (c) 2004-2017 Castle Project - http://www.castleproject.org/",
40-
"license_expression": "apache-2.0",
41-
"declared_license": "http://www.apache.org/licenses/LICENSE-2.0.html",
40+
"declared_license_expression": "apache-2.0",
41+
"declared_license_expression_spdx": "Apache-2.0",
42+
"license_detections": [
43+
{
44+
"license_expression": "apache-2.0",
45+
"detection_log": [
46+
"not-combined"
47+
],
48+
"matches": [
49+
{
50+
"score": 100.0,
51+
"start_line": 1,
52+
"end_line": 1,
53+
"matched_length": 9,
54+
"match_coverage": 100.0,
55+
"matcher": "1-hash",
56+
"license_expression": "apache-2.0",
57+
"rule_identifier": "apache-2.0_20.RULE",
58+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_20.RULE",
59+
"referenced_filenames": [],
60+
"is_license_text": false,
61+
"is_license_notice": false,
62+
"is_license_reference": true,
63+
"is_license_tag": false,
64+
"is_license_intro": false,
65+
"rule_length": 9,
66+
"rule_relevance": 100,
67+
"matched_text": "http://www.apache.org/licenses/LICENSE-2.0.html",
68+
"licenses": [
69+
{
70+
"key": "apache-2.0",
71+
"name": "Apache License 2.0",
72+
"short_name": "Apache 2.0",
73+
"category": "Permissive",
74+
"is_exception": false,
75+
"is_unknown": false,
76+
"owner": "Apache Software Foundation",
77+
"homepage_url": "http://www.apache.org/licenses/",
78+
"text_url": "http://www.apache.org/licenses/LICENSE-2.0",
79+
"reference_url": "https://scancode-licensedb.aboutcode.org/apache-2.0",
80+
"scancode_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/apache-2.0.LICENSE",
81+
"spdx_license_key": "Apache-2.0",
82+
"spdx_url": "https://spdx.org/licenses/Apache-2.0"
83+
}
84+
]
85+
}
86+
]
87+
}
88+
],
89+
"other_license_expression": null,
90+
"other_license_expression_spdx": null,
91+
"other_license_detections": [],
92+
"extracted_license_statement": "http://www.apache.org/licenses/LICENSE-2.0.html",
4293
"notice_text": null,
4394
"source_packages": [],
4495
"file_references": [],
4596
"extra_data": {},
4697
"dependencies": [
47-
{
98+
{
4899
"purl": "pkg:nuget/[email protected]",
49100
"extracted_requirement": "1.6.1",
50101
"scope": "dependency",

tests/packagedcode/data/nuget/Microsoft.AspNet.Mvc.nuspec.json.expected

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,59 @@
3737
"code_view_url": null,
3838
"vcs_url": null,
3939
"copyright": "Copyright \u00a9 Microsoft Corporation",
40-
"license_expression": "ms-net-library",
41-
"declared_license": "http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm",
40+
"declared_license_expression": "ms-net-library",
41+
"declared_license_expression_spdx": "LicenseRef-scancode-ms-net-library",
42+
"license_detections": [
43+
{
44+
"license_expression": "ms-net-library",
45+
"detection_log": [
46+
"not-combined"
47+
],
48+
"matches": [
49+
{
50+
"score": 100.0,
51+
"start_line": 1,
52+
"end_line": 1,
53+
"matched_length": 12,
54+
"match_coverage": 100.0,
55+
"matcher": "1-hash",
56+
"license_expression": "ms-net-library",
57+
"rule_identifier": "ms-net-library_1.RULE",
58+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/ms-net-library_1.RULE",
59+
"referenced_filenames": [],
60+
"is_license_text": false,
61+
"is_license_notice": false,
62+
"is_license_reference": true,
63+
"is_license_tag": false,
64+
"is_license_intro": false,
65+
"rule_length": 12,
66+
"rule_relevance": 100,
67+
"matched_text": "http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm",
68+
"licenses": [
69+
{
70+
"key": "ms-net-library",
71+
"name": "Microsoft .NET Library License",
72+
"short_name": "MS .NET Library License",
73+
"category": "Proprietary Free",
74+
"is_exception": false,
75+
"is_unknown": false,
76+
"owner": "Microsoft",
77+
"homepage_url": "http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm",
78+
"text_url": "",
79+
"reference_url": "https://scancode-licensedb.aboutcode.org/ms-net-library",
80+
"scancode_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/ms-net-library.LICENSE",
81+
"spdx_license_key": "LicenseRef-scancode-ms-net-library",
82+
"spdx_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/ms-net-library.LICENSE"
83+
}
84+
]
85+
}
86+
]
87+
}
88+
],
89+
"other_license_expression": null,
90+
"other_license_expression_spdx": null,
91+
"other_license_detections": [],
92+
"extracted_license_statement": "http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm",
4293
"notice_text": null,
4394
"source_packages": [],
4495
"file_references": [],

tests/packagedcode/data/nuget/Microsoft.Net.Http.nuspec.json.expected

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,59 @@
3737
"code_view_url": null,
3838
"vcs_url": null,
3939
"copyright": "Copyright \u00a9 Microsoft Corporation",
40-
"license_expression": "ms-net-library-2018-11",
41-
"declared_license": "http://go.microsoft.com/fwlink/?LinkId=329770",
40+
"declared_license_expression": "ms-net-library-2018-11",
41+
"declared_license_expression_spdx": "LicenseRef-scancode-ms-net-library-2018-11",
42+
"license_detections": [
43+
{
44+
"license_expression": "ms-net-library-2018-11",
45+
"detection_log": [
46+
"not-combined"
47+
],
48+
"matches": [
49+
{
50+
"score": 100.0,
51+
"start_line": 1,
52+
"end_line": 1,
53+
"matched_length": 7,
54+
"match_coverage": 100.0,
55+
"matcher": "1-hash",
56+
"license_expression": "ms-net-library-2018-11",
57+
"rule_identifier": "ms-net-library-2018-11_3.RULE",
58+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/ms-net-library-2018-11_3.RULE",
59+
"referenced_filenames": [],
60+
"is_license_text": false,
61+
"is_license_notice": false,
62+
"is_license_reference": true,
63+
"is_license_tag": false,
64+
"is_license_intro": false,
65+
"rule_length": 7,
66+
"rule_relevance": 100,
67+
"matched_text": "http://go.microsoft.com/fwlink/?LinkId=329770",
68+
"licenses": [
69+
{
70+
"key": "ms-net-library-2018-11",
71+
"name": "Microsoft .NET Library License 2018-11",
72+
"short_name": "MS .NET Library License 2018-11",
73+
"category": "Proprietary Free",
74+
"is_exception": false,
75+
"is_unknown": false,
76+
"owner": "Microsoft",
77+
"homepage_url": "https://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm",
78+
"text_url": "",
79+
"reference_url": "https://scancode-licensedb.aboutcode.org/ms-net-library-2018-11",
80+
"scancode_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/ms-net-library-2018-11.LICENSE",
81+
"spdx_license_key": "LicenseRef-scancode-ms-net-library-2018-11",
82+
"spdx_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/ms-net-library-2018-11.LICENSE"
83+
}
84+
]
85+
}
86+
]
87+
}
88+
],
89+
"other_license_expression": null,
90+
"other_license_expression_spdx": null,
91+
"other_license_detections": [],
92+
"extracted_license_statement": "http://go.microsoft.com/fwlink/?LinkId=329770",
4293
"notice_text": null,
4394
"source_packages": [],
4495
"file_references": [],

tests/packagedcode/data/nuget/bootstrap.nuspec.json.expected

Lines changed: 54 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,64 @@
3737
"code_view_url": null,
3838
"vcs_url": null,
3939
"copyright": "Copyright 2015",
40-
"license_expression": "mit",
41-
"declared_license": "https://github.com/twbs/bootstrap/blob/master/LICENSE",
40+
"declared_license_expression": "mit",
41+
"declared_license_expression_spdx": "MIT",
42+
"license_detections": [
43+
{
44+
"license_expression": "mit",
45+
"detection_log": [
46+
"not-combined"
47+
],
48+
"matches": [
49+
{
50+
"score": 100.0,
51+
"start_line": 1,
52+
"end_line": 1,
53+
"matched_length": 8,
54+
"match_coverage": 100.0,
55+
"matcher": "1-hash",
56+
"license_expression": "mit",
57+
"rule_identifier": "mit_180.RULE",
58+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_180.RULE",
59+
"referenced_filenames": [],
60+
"is_license_text": false,
61+
"is_license_notice": false,
62+
"is_license_reference": true,
63+
"is_license_tag": false,
64+
"is_license_intro": false,
65+
"rule_length": 8,
66+
"rule_relevance": 100,
67+
"matched_text": "https://github.com/twbs/bootstrap/blob/master/LICENSE",
68+
"licenses": [
69+
{
70+
"key": "mit",
71+
"name": "MIT License",
72+
"short_name": "MIT License",
73+
"category": "Permissive",
74+
"is_exception": false,
75+
"is_unknown": false,
76+
"owner": "MIT",
77+
"homepage_url": "http://opensource.org/licenses/mit-license.php",
78+
"text_url": "http://opensource.org/licenses/mit-license.php",
79+
"reference_url": "https://scancode-licensedb.aboutcode.org/mit",
80+
"scancode_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/mit.LICENSE",
81+
"spdx_license_key": "MIT",
82+
"spdx_url": "https://spdx.org/licenses/MIT"
83+
}
84+
]
85+
}
86+
]
87+
}
88+
],
89+
"other_license_expression": null,
90+
"other_license_expression_spdx": null,
91+
"other_license_detections": [],
92+
"extracted_license_statement": "https://github.com/twbs/bootstrap/blob/master/LICENSE",
4293
"notice_text": null,
4394
"source_packages": [],
4495
"file_references": [],
4596
"extra_data": {},
46-
"dependencies": [
47-
{
48-
"purl": "pkg:nuget/[email protected]",
49-
"extracted_requirement": "1.9.1",
50-
"scope": "dependency",
51-
"is_runtime": false,
52-
"is_optional": false,
53-
"is_resolved": true,
54-
"resolved_package": {},
55-
"extra_data": {}
56-
}
57-
],
97+
"dependencies": [],
5898
"repository_homepage_url": "https://www.nuget.org/packages/bootstrap/4.0.0-alpha",
5999
"repository_download_url": "https://www.nuget.org/api/v2/package/bootstrap/4.0.0-alpha",
60100
"api_data_url": "https://api.nuget.org/v3/registration3/bootstrap/4.0.0-alpha.json",

tests/packagedcode/data/nuget/jQuery.UI.Combined.nuspec.json.expected

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,65 @@
3737
"code_view_url": null,
3838
"vcs_url": null,
3939
"copyright": null,
40-
"license_expression": "mit",
41-
"declared_license": "http://jquery.org/license",
40+
"declared_license_expression": "mit",
41+
"declared_license_expression_spdx": "MIT",
42+
"license_detections": [
43+
{
44+
"license_expression": "mit",
45+
"detection_log": [
46+
"not-combined"
47+
],
48+
"matches": [
49+
{
50+
"score": 80.0,
51+
"start_line": 1,
52+
"end_line": 1,
53+
"matched_length": 4,
54+
"match_coverage": 100.0,
55+
"matcher": "1-hash",
56+
"license_expression": "mit",
57+
"rule_identifier": "mit_jquery_url.RULE",
58+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_jquery_url.RULE",
59+
"referenced_filenames": [],
60+
"is_license_text": false,
61+
"is_license_notice": false,
62+
"is_license_reference": true,
63+
"is_license_tag": false,
64+
"is_license_intro": false,
65+
"rule_length": 4,
66+
"rule_relevance": 80,
67+
"matched_text": "http://jquery.org/license",
68+
"licenses": [
69+
{
70+
"key": "mit",
71+
"name": "MIT License",
72+
"short_name": "MIT License",
73+
"category": "Permissive",
74+
"is_exception": false,
75+
"is_unknown": false,
76+
"owner": "MIT",
77+
"homepage_url": "http://opensource.org/licenses/mit-license.php",
78+
"text_url": "http://opensource.org/licenses/mit-license.php",
79+
"reference_url": "https://scancode-licensedb.aboutcode.org/mit",
80+
"scancode_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/mit.LICENSE",
81+
"spdx_license_key": "MIT",
82+
"spdx_url": "https://spdx.org/licenses/MIT"
83+
}
84+
]
85+
}
86+
]
87+
}
88+
],
89+
"other_license_expression": null,
90+
"other_license_expression_spdx": null,
91+
"other_license_detections": [],
92+
"extracted_license_statement": "http://jquery.org/license",
4293
"notice_text": null,
4394
"source_packages": [],
4495
"file_references": [],
4596
"extra_data": {},
4697
"dependencies": [
47-
{
98+
{
4899
"purl": "pkg:nuget/[email protected]",
49100
"extracted_requirement": "1.6.4",
50101
"scope": "dependency",

0 commit comments

Comments
 (0)