Update java package for SLES 11.4

As of SLES 11.4, Java 1.6 has been deprecated in favor of 1.7:
https://www.suse.com/releasenotes/x86_64/SLE-SDK/11-SP4/#fate-318121
This commit is contained in:
Tyler Langlois
2016-03-25 12:11:14 -04:00
committed by Jonathan Tripathy
parent f4d218a162
commit 4b5cbc4d33
2 changed files with 24 additions and 9 deletions

View File

@@ -170,6 +170,21 @@ describe 'java', :type => :class do
it { is_expected.to contain_package('java').with_name('java-1_7_0-openjdk-devel')}
end
context 'select default for SLES 11.3' do
let(:facts) { {:osfamily => 'Suse', :operatingsystem => 'SLES', :operatingsystemrelease => '11.3'}}
it { should contain_package('java').with_name('java-1_6_0-ibm-devel')}
end
context 'select default for SLES 11.4' do
let(:facts) { {:osfamily => 'Suse', :operatingsystem => 'SLES', :operatingsystemrelease => '11.4'}}
it { should contain_package('java').with_name('java-1_7_0-ibm-devel')}
end
context 'select default for SLES 12.1' do
let(:facts) { {:osfamily => 'Suse', :operatingsystem => 'SLES', :operatingsystemrelease => '12.1', :operatingsystemmajrelease => '12'}}
it { should contain_package('java').with_name('java-1_7_0-openjdk-devel')}
end
context 'select jdk for OpenBSD' do
let(:facts) { {:osfamily => 'OpenBSD'} }
it { is_expected.to contain_package('java').with_name('jdk') }