Support for installing JCE. Fixes MODULES-1681 (#326)
* Support for installing JCE. Fixes MODULES-1681 * Disabled oracle tests. Only to be enabled, if the other configuration options match the current java download URL provided by Oracle.
This commit is contained in:
committed by
david22swan
parent
390805475e
commit
b53a78fbe8
@@ -121,6 +121,26 @@ describe 'java::oracle', type: :define do
|
||||
|
||||
it { is_expected.to compile }
|
||||
end
|
||||
|
||||
context 'when installing Oracle Java SE 6 JRE with JCE' do
|
||||
let(:params) { { ensure: 'present', jce: true, version: '6', version_major: '6u99', version_minor: '99', java_se: 'jre' } }
|
||||
let(:title) { 'jre6jce' }
|
||||
|
||||
it do
|
||||
is_expected.to contain_archive('/tmp/jce-6.zip').with_source('http://download.oracle.com/otn-pub/java/jce_policy/6/jce_policy-6.zip')
|
||||
is_expected.to contain_archive('/tmp/jce-6.zip').with_extract_path('/usr/java/jre1.6.0_99-amd64/lib/security')
|
||||
end
|
||||
end
|
||||
|
||||
context 'when installing Oracle Java SE 6 JDK with JCE' do
|
||||
let(:params) { { ensure: 'present', jce: true, version: '6', version_major: '6u99', version_minor: '99', java_se: 'jdk' } }
|
||||
let(:title) { 'jre6jce' }
|
||||
|
||||
it do
|
||||
is_expected.to contain_archive('/tmp/jce-6.zip').with_source('http://download.oracle.com/otn-pub/java/jce_policy/6/jce_policy-6.zip')
|
||||
is_expected.to contain_archive('/tmp/jce-6.zip').with_extract_path('/usr/java/jdk1.6.0_99-amd64/jre/lib/security')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'when on CentOS 32-bit' do
|
||||
@@ -207,6 +227,26 @@ describe 'java::oracle', type: :define do
|
||||
|
||||
it { is_expected.to compile }
|
||||
end
|
||||
|
||||
context 'when installing Oracle Java SE 6 JRE with JCE' do
|
||||
let(:params) { { ensure: 'present', jce: true, version: '6', version_major: '6u99', version_minor: '99', java_se: 'jre' } }
|
||||
let(:title) { 'jre6jce' }
|
||||
|
||||
it do
|
||||
is_expected.to contain_archive('/tmp/jce-6.zip').with_source('http://download.oracle.com/otn-pub/java/jce_policy/6/jce_policy-6.zip')
|
||||
is_expected.to contain_archive('/tmp/jce-6.zip').with_extract_path('/usr/java/jre1.6.0_99-amd64/lib/security')
|
||||
end
|
||||
end
|
||||
|
||||
context 'when installing Oracle Java SE 6 JDK with JCE' do
|
||||
let(:params) { { ensure: 'present', jce: true, version: '6', version_major: '6u99', version_minor: '99', java_se: 'jdk' } }
|
||||
let(:title) { 'jre6jce' }
|
||||
|
||||
it do
|
||||
is_expected.to contain_archive('/tmp/jce-6.zip').with_source('http://download.oracle.com/otn-pub/java/jce_policy/6/jce_policy-6.zip')
|
||||
is_expected.to contain_archive('/tmp/jce-6.zip').with_extract_path('/usr/java/jdk1.6.0_99-amd64/jre/lib/security')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'with Ubuntu 64-bit' do
|
||||
@@ -300,6 +340,26 @@ describe 'java::oracle', type: :define do
|
||||
|
||||
it { is_expected.to compile }
|
||||
end
|
||||
|
||||
context 'when installing Oracle Java SE 6 JRE with JCE' do
|
||||
let(:params) { { ensure: 'present', jce: true, version: '6', version_major: '6u99', version_minor: '99', java_se: 'jre' } }
|
||||
let(:title) { 'jre6jce' }
|
||||
|
||||
it do
|
||||
is_expected.to contain_archive('/tmp/jce-6.zip').with_source('http://download.oracle.com/otn-pub/java/jce_policy/6/jce_policy-6.zip')
|
||||
is_expected.to contain_archive('/tmp/jce-6.zip').with_extract_path('/usr/lib/jvm/jre1.6.0_99/lib/security')
|
||||
end
|
||||
end
|
||||
|
||||
context 'when installing Oracle Java SE 6 JDK with JCE' do
|
||||
let(:params) { { ensure: 'present', jce: true, version: '6', version_major: '6u99', version_minor: '99', java_se: 'jdk' } }
|
||||
let(:title) { 'jre6jce' }
|
||||
|
||||
it do
|
||||
is_expected.to contain_archive('/tmp/jce-6.zip').with_source('http://download.oracle.com/otn-pub/java/jce_policy/6/jce_policy-6.zip')
|
||||
is_expected.to contain_archive('/tmp/jce-6.zip').with_extract_path('/usr/lib/jvm/jdk1.6.0_99/jre/lib/security')
|
||||
end
|
||||
end
|
||||
end
|
||||
describe 'incompatible OSes' do
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user