Update java packages for Fedora systems
The java package on Fedora is currently java-1.7.0-openjdk for their basic java, and java-1.7.0-openjdk-devel for a development set. Fedora 16 had java-1.6.0-openjdk, but it has been EOL for a long time. This commit updates the default java for Fedora to the 1.7.0 package.
This commit is contained in:
@@ -17,6 +17,17 @@ describe 'java', :type => :class do
|
||||
it { should contain_package('java').with_name('java-1.6.0-openjdk-devel') }
|
||||
end
|
||||
|
||||
context 'select openjdk for Fedora' do
|
||||
let(:facts) { {:osfamily => 'RedHat', :operatingsystem => 'Fedora'} }
|
||||
it { should contain_package('java').with_name('java-1.7.0-openjdk-devel') }
|
||||
end
|
||||
|
||||
context 'select passed value for Fedora' do
|
||||
let(:facts) { {:osfamily => 'RedHat', :operatingsystem => 'Fedora'} }
|
||||
let(:params) { { 'distribution' => 'jre' } }
|
||||
it { should contain_package('java').with_name('java-1.7.0-openjdk') }
|
||||
end
|
||||
|
||||
context 'select passed value for Centos 5.3' do
|
||||
let(:facts) { {:osfamily => 'RedHat', :operatingsystem => 'Centos', :operatingsystemrelease => '5.3'} }
|
||||
let(:params) { { 'package' => 'jdk' } }
|
||||
|
||||
Reference in New Issue
Block a user