diff options
| author | mo khan <mo.khan@gmail.com> | 2020-09-15 16:34:19 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-09-15 16:34:19 -0600 |
| commit | c8057b3b01baeaa10fcb075260901e63fdce449f (patch) | |
| tree | 97c8cc3b60bec56627d520bc1cd539cf4e7c7adb /spec/integration/java/maven_spec.rb | |
| parent | b9f82cd57910e02bbe6cf5bd6ae36b28eb7b0e83 (diff) | |
fix: install x509 cert into java 11 keystore
Diffstat (limited to 'spec/integration/java/maven_spec.rb')
| -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 |
