diff options
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/fixtures/expected/python/2/pip/v2.0.json | 14 | ||||
| -rw-r--r-- | spec/fixtures/expected/python/2/pip/v2.1.json | 14 | ||||
| -rw-r--r-- | spec/fixtures/expected/python/pipenv/v2.0.json | 9 | ||||
| -rw-r--r-- | spec/fixtures/expected/python/pipenv/v2.1.json | 8 | ||||
| -rw-r--r-- | spec/integration/js/npm_spec.rb | 6 | ||||
| -rw-r--r-- | spec/integration/python/pip_spec.rb | 2 |
6 files changed, 26 insertions, 27 deletions
diff --git a/spec/fixtures/expected/python/2/pip/v2.0.json b/spec/fixtures/expected/python/2/pip/v2.0.json index 8ed6ee7..5515387 100644 --- a/spec/fixtures/expected/python/2/pip/v2.0.json +++ b/spec/fixtures/expected/python/2/pip/v2.0.json @@ -2,9 +2,9 @@ "version": "2.0", "licenses": [ { - "id": "BSD-4-Clause", - "name": "BSD 4-Clause \"Original\" or \"Old\" License", - "url": "http://directory.fsf.org/wiki/License:BSD_4Clause", + "id": "bsd", + "name": "BSD", + "url": "http://en.wikipedia.org/wiki/BSD_licenses", "count": 4 }, { @@ -47,7 +47,7 @@ "." ], "licenses": [ - "BSD-4-Clause" + "bsd" ] }, { @@ -80,7 +80,7 @@ "." ], "licenses": [ - "BSD-4-Clause" + "bsd" ] }, { @@ -91,7 +91,7 @@ "." ], "licenses": [ - "BSD-4-Clause" + "bsd" ] }, { @@ -113,7 +113,7 @@ "." ], "licenses": [ - "BSD-4-Clause" + "bsd" ] }, { diff --git a/spec/fixtures/expected/python/2/pip/v2.1.json b/spec/fixtures/expected/python/2/pip/v2.1.json index 3203679..36d625d 100644 --- a/spec/fixtures/expected/python/2/pip/v2.1.json +++ b/spec/fixtures/expected/python/2/pip/v2.1.json @@ -7,9 +7,9 @@ "url": "https://opensource.org/licenses/BSD-3-Clause" }, { - "id": "BSD-4-Clause", - "name": "BSD 4-Clause \"Original\" or \"Old\" License", - "url": "http://directory.fsf.org/wiki/License:BSD_4Clause" + "id": "bsd", + "name": "BSD", + "url": "http://en.wikipedia.org/wiki/BSD_licenses" }, { "id": "MIT", @@ -39,7 +39,7 @@ "package_manager": "pip", "path": "requirements.txt", "licenses": [ - "BSD-4-Clause" + "bsd" ] }, { @@ -66,7 +66,7 @@ "package_manager": "pip", "path": "requirements.txt", "licenses": [ - "BSD-4-Clause" + "bsd" ] }, { @@ -75,7 +75,7 @@ "package_manager": "pip", "path": "requirements.txt", "licenses": [ - "BSD-4-Clause" + "bsd" ] }, { @@ -93,7 +93,7 @@ "package_manager": "pip", "path": "requirements.txt", "licenses": [ - "BSD-4-Clause" + "bsd" ] }, { diff --git a/spec/fixtures/expected/python/pipenv/v2.0.json b/spec/fixtures/expected/python/pipenv/v2.0.json index ba4d529..c41d970 100644 --- a/spec/fixtures/expected/python/pipenv/v2.0.json +++ b/spec/fixtures/expected/python/pipenv/v2.0.json @@ -8,10 +8,9 @@ "count": 1 }, { - "id": "BSD-4-Clause", - "name": "BSD 4-Clause \"Original\" or \"Old\" License", - "url": "http://directory.fsf.org/wiki/License:BSD_4Clause", - "count": 1 + "id": "bsd", + "name": "BSD", + "url": "http://en.wikipedia.org/wiki/BSD_licenses" }, { "id": "MIT", @@ -35,7 +34,7 @@ "." ], "licenses": [ - "BSD-4-Clause" + "bsd" ] }, { diff --git a/spec/fixtures/expected/python/pipenv/v2.1.json b/spec/fixtures/expected/python/pipenv/v2.1.json index 30161e1..9c58d29 100644 --- a/spec/fixtures/expected/python/pipenv/v2.1.json +++ b/spec/fixtures/expected/python/pipenv/v2.1.json @@ -7,9 +7,9 @@ "url": "https://opensource.org/licenses/Apache-2.0" }, { - "id": "BSD-4-Clause", - "name": "BSD 4-Clause \"Original\" or \"Old\" License", - "url": "http://directory.fsf.org/wiki/License:BSD_4Clause" + "id": "bsd", + "name": "BSD", + "url": "http://en.wikipedia.org/wiki/BSD_licenses" }, { "id": "MIT", @@ -29,7 +29,7 @@ "package_manager": "pip", "path": "Pipfile.lock", "licenses": [ - "BSD-4-Clause" + "bsd" ] }, { diff --git a/spec/integration/js/npm_spec.rb b/spec/integration/js/npm_spec.rb index 8ab5be6..1481748 100644 --- a/spec/integration/js/npm_spec.rb +++ b/spec/integration/js/npm_spec.rb @@ -95,7 +95,7 @@ RSpec.describe "npm" do ["isstream", "0.1.2", ["MIT"]], ["jsbn", "0.1.1", ["MIT"]], ["jsdom", "15.2.1", ["MIT"]], - ["json-schema", "0.2.3", ["AFL-2.1", "BSD-4-Clause"]], + ["json-schema", "0.2.3", ["AFL-2.1", "bsd"]], ["json-schema-traverse", "0.4.1", ["MIT"]], ["json-stringify-safe", "5.0.1", ["ISC"]], ["jsonfile", "4.0.0", ["MIT"]], @@ -242,7 +242,7 @@ RSpec.describe "npm" do ["isstream", "0.1.2", ["MIT"]], ["jsbn", "0.1.1", ["MIT"]], ["jsdom", "15.2.1", ["MIT"]], - ["json-schema", "0.2.3", ["AFL-2.1", "BSD-4-Clause"]], + ["json-schema", "0.2.3", ["AFL-2.1", "bsd"]], ["json-schema-traverse", "0.4.1", ["MIT"]], ["json-stringify-safe", "5.0.1", ["ISC"]], ["jsonfile", "4.0.0", ["MIT"]], @@ -397,7 +397,7 @@ RSpec.describe "npm" do ["isstream", "0.1.2", ["MIT"]], ["jsbn", "0.1.1", ["MIT"]], ["jsdom", "15.2.1", ["MIT"]], - ["json-schema", "0.2.3", ["AFL-2.1", "BSD-4-Clause"]], + ["json-schema", "0.2.3", ["AFL-2.1", "bsd"]], ["json-schema-traverse", "0.4.1", ["MIT"]], ["json-stringify-safe", "5.0.1", ["ISC"]], ["jsonfile", "4.0.0", ["MIT"]], diff --git a/spec/integration/python/pip_spec.rb b/spec/integration/python/pip_spec.rb index 0bf27a4..86cdc2b 100644 --- a/spec/integration/python/pip_spec.rb +++ b/spec/integration/python/pip_spec.rb @@ -14,7 +14,7 @@ RSpec.describe "pip" do expect(report).to match_schema expect(report[:version]).to start_with('2') expect(report.dependency_names).to include("sentry-sdk") - expect(report.licenses_for('sentry-sdk')).to match_array(["BSD-4-Clause"]) + expect(report.licenses_for('sentry-sdk')).to match_array(["bsd"]) end end |
