@@ -32,8 +32,8 @@ class java::params {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
'Fedora': {
|
'Fedora': {
|
||||||
$jdk_package = 'java'
|
$jdk_package = 'java-1.7.0-openjdk-devel'
|
||||||
$jre_package = 'java'
|
$jre_package = 'java-1.7.0-openjdk'
|
||||||
}
|
}
|
||||||
'Amazon': {
|
'Amazon': {
|
||||||
$jdk_package = 'java-1.7.0-openjdk-devel'
|
$jdk_package = 'java-1.7.0-openjdk-devel'
|
||||||
|
|||||||
@@ -17,6 +17,17 @@ describe 'java', :type => :class do
|
|||||||
it { should contain_package('java').with_name('java-1.6.0-openjdk-devel') }
|
it { should contain_package('java').with_name('java-1.6.0-openjdk-devel') }
|
||||||
end
|
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
|
context 'select passed value for Centos 5.3' do
|
||||||
let(:facts) { {:osfamily => 'RedHat', :operatingsystem => 'Centos', :operatingsystemrelease => '5.3'} }
|
let(:facts) { {:osfamily => 'RedHat', :operatingsystem => 'Centos', :operatingsystemrelease => '5.3'} }
|
||||||
let(:params) { { 'package' => 'jdk' } }
|
let(:params) { { 'package' => 'jdk' } }
|
||||||
|
|||||||
Reference in New Issue
Block a user