diff options
| author | Can Eldem <celdem@gitlab.com> | 2020-09-16 12:28:31 +0000 |
|---|---|---|
| committer | Can Eldem <celdem@gitlab.com> | 2020-09-16 12:28:31 +0000 |
| commit | 7a01aa5dba4b8df24419c2e45ead6efe5698a0a9 (patch) | |
| tree | 8f587d0cd6edb5c8706ac155448993f8c07b4f2e /spec/integration/java | |
| parent | b9f82cd57910e02bbe6cf5bd6ae36b28eb7b0e83 (diff) | |
| parent | aa53a1a3fc69f42965c1569ce4496aaccae265f9 (diff) | |
Merge branch 'java-11-keystore' into 'master'v3.25.7
Install x509 cert into Java 11 keystore
See merge request gitlab-org/security-products/license-management!221
Diffstat (limited to 'spec/integration/java')
| -rw-r--r-- | spec/integration/java/maven_spec.rb | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/spec/integration/java/maven_spec.rb b/spec/integration/java/maven_spec.rb index 671243e..ca26d28 100644 --- a/spec/integration/java/maven_spec.rb +++ b/spec/integration/java/maven_spec.rb @@ -90,25 +90,27 @@ RSpec.describe "maven" do end end - context "when connecting to a custom package registry with a self signed certificate" do - let(:env) { { 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate.read } } - - before do - runner.add_file('pom.xml') do - fixture_file_content('java/maven/pom-single.xml.erb', { - group_id: 'com.fasterxml.jackson.core', - artifact_id: 'jackson-core', - version: '2.10.0', - repository_id: 'custom', - repository_url: "https://maven.test/maven2" - }) + [8, 11].each do |java_version| + context "when connecting to a custom package registry with a self signed certificate using JAVA #{java_version}" do + let(:env) { { 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate.read, 'LM_JAVA_VERSION' => java_version.to_s } } + + before do + runner.add_file('pom.xml') do + fixture_file_content('java/maven/pom-single.xml.erb', { + group_id: 'com.fasterxml.jackson.core', + artifact_id: 'jackson-core', + version: '2.10.0', + repository_id: 'custom', + repository_url: "https://maven.test/maven2" + }) + end end - end - specify do - expect(subject).to match_schema - expect(subject.dependency_names).to match_array(['jackson-core']) - expect(subject.licenses_for('jackson-core')).to match_array(['Apache-2.0']) + specify do + expect(subject).to match_schema + expect(subject.dependency_names).to match_array(['jackson-core']) + expect(subject.licenses_for('jackson-core')).to match_array(['Apache-2.0']) + end end end |
