add support for ubuntu vivid (15.04) using openjdk-8

add acceptance test node without really understanding what it does.
add test for distribution type jdk for Ubuntu vivid
This commit is contained in:
Lutz Behnke
2015-03-05 11:15:15 +01:00
parent 1b9bb75de8
commit e22aa3a36a
3 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
HOSTS:
ubuntu-server-1504-x64:
roles:
- master
platform: ubuntu-15.04-amd64
box : puppetlabs/ubuntu-15.04-64-nocm
box_url : https://vagrantcloud.com/puppetlabs/ubuntu-15.04-64-nocm
hypervisor : vagrant
CONFIG:
log_level : debug
type: git

View File

@@ -108,6 +108,18 @@ describe 'java', :type => :class do
it { should contain_exec('update-java-alternatives').with_command('update-java-alternatives --set bananafish --jre') }
end
context 'select jdk for Ubuntu Vivid (15.04)' do
let(:facts) { {:osfamily => 'Debian', :operatingsystem => 'Ubuntu', :lsbdistcodename => 'vivid', :operatingsystemrelease => '15.04', :architecture => 'amd64',} }
let(:params) { { 'distribution' => 'jdk' } }
it { should contain_package('java').with_name('openjdk-8-jdk') }
end
context 'select jre for Ubuntu Vivid (15.04)' do
let(:facts) { {:osfamily => 'Debian', :operatingsystem => 'Ubuntu', :lsbdistcodename => 'vivid', :operatingsystemrelease => '15.04', :architecture => 'amd64',} }
let(:params) { { 'distribution' => 'jre' } }
it { should contain_package('java').with_name('openjdk-8-jre-headless') }
end
context 'select openjdk for Amazon Linux' do
let(:facts) { {:osfamily => 'RedHat', :operatingsystem => 'Amazon', :operatingsystemrelease => '3.4.43-43.43.amzn1.x86_64'} }
it { should contain_package('java').with_name('java-1.7.0-openjdk-devel') }