diff options
| author | mo khan <mo.khan@gmail.com> | 2020-06-18 22:48:58 +0000 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-06-18 22:48:58 +0000 |
| commit | c6e39b5d3b73da148076db287c51c914f89791f2 (patch) | |
| tree | 9aac5aad8eec0b1a53a05976de903a4c01014aa3 /spec/integration | |
| parent | a6ec54af0c51f012d4b270dc1060579b164b0b8a (diff) | |
| parent | 9d34beb90a8d47e28dd1628f3294d0695d5afc86 (diff) | |
Merge branch 'update-normalized-licenses' into 'master'v3.12.1
Detect variations of the Eclipse Public License
See merge request gitlab-org/security-products/license-management!174
Diffstat (limited to 'spec/integration')
| -rw-r--r-- | spec/integration/java/maven_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/integration/java/maven_spec.rb b/spec/integration/java/maven_spec.rb index 9230a9f..410d607 100644 --- a/spec/integration/java/maven_spec.rb +++ b/spec/integration/java/maven_spec.rb @@ -13,8 +13,9 @@ RSpec.describe "maven" do }) expect(report).to match_schema - expect(report.dependency_names).to match_array(['example']) + expect(report.dependency_names).to match_array(%w[example jaxb-api]) expect(report.licenses_for('example')).to match_array(['MIT']) + expect(report.licenses_for('jaxb-api')).to match_array(['GPL-2.0-only', 'cddl 1.1']) end it 'downloads packages from by using a custom `settings.xml`' do @@ -27,7 +28,8 @@ RSpec.describe "maven" do }) expect(report).to match_schema - expect(report[:dependencies]).to match_array([{ name: 'example', url: '', description: '', paths: ['.'], licenses: ['MIT'] }]) + expect(report[:dependencies]).to match_array([{ name: 'example', url: '', description: '', paths: ['.'], licenses: ['MIT'] }, + { description: '', licenses: ['GPL-2.0-only', 'cddl 1.1'], name: 'jaxb-api', paths: ['.'], url: '' }]) end end |
