mirror of
https://github.com/krislamo/puppet-fluentd
synced 2025-09-07 23:09:30 +00:00
cleanup beaker tests
- use beaker/puppet_install_helper to install puppet - installed dependency modules like they are listed in the metadata.json - changed apt repo source from https to http, https produced ssl errors under certain ruby versions and needs additional packages on some systems and the packages are signed anyways
This commit is contained in:
@@ -4,9 +4,6 @@ HOSTS:
|
||||
- master
|
||||
platform: ubuntu-12.04-amd64
|
||||
box: puppetlabs/ubuntu-12.04-64-nocm
|
||||
#box: wywy-ubuntu-12.04.5
|
||||
box_url: https://vagrantcloud.com/puppetlabs/boxes/ubuntu-12.04-64-nocm
|
||||
#box_url: http://files.munich.wywy.com/vagrant/box/wywy-ubuntu-12.04.5.box
|
||||
hypervisor: vagrant
|
||||
CONFIG:
|
||||
log_level: verbose
|
@@ -15,12 +15,12 @@ describe 'fluentd::repo::apt', :type => :class do
|
||||
should contain_class('apt')
|
||||
should contain_apt__source('treasure-data').with({
|
||||
'ensure' => 'present',
|
||||
'location' => 'https://packages.treasuredata.com/2/ubuntu/precise',
|
||||
'location' => 'http://packages.treasuredata.com/2/ubuntu/precise',
|
||||
'release' => 'precise',
|
||||
'repos' => 'contrib',
|
||||
'key' => {
|
||||
'id' => 'C901622B5EC4AF820C38AB861093DB45A12E206F',
|
||||
'source' => 'https://packages.treasuredata.com/GPG-KEY-td-agent'
|
||||
'source' => 'http://packages.treasuredata.com/GPG-KEY-td-agent'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@@ -1,13 +1,7 @@
|
||||
require 'beaker-rspec'
|
||||
require 'pry'
|
||||
require 'beaker/puppet_install_helper'
|
||||
|
||||
hosts.each do |host|
|
||||
# Install Puppet
|
||||
on host, 'apt-get -y install ruby1.9.1 rubygems ruby1.9.1-dev libaugeas-ruby1.9.1'
|
||||
on host, 'update-alternatives --set ruby /usr/bin/ruby1.9.1'
|
||||
on host, 'update-alternatives --set gem /usr/bin/gem1.9.1'
|
||||
on host, install_puppet
|
||||
end
|
||||
run_puppet_install_helper unless ENV['BEAKER_provision'] == 'no'
|
||||
|
||||
RSpec.configure do |c|
|
||||
# Project root
|
||||
@@ -21,8 +15,8 @@ RSpec.configure do |c|
|
||||
# Install module
|
||||
puppet_module_install(:source => module_root, :module_name => 'fluentd')
|
||||
hosts.each do |host|
|
||||
on host, puppet('module', 'install', 'puppetlabs-stdlib', '--version', '4.9.0')
|
||||
on host, puppet('module', 'install', 'puppetlabs-apt', '--version', '2.1.1')
|
||||
on host, puppet('module', 'install', 'puppetlabs-stdlib', '--version', '4.6.0')
|
||||
on host, puppet('module', 'install', 'puppetlabs-apt', '--version', '2.0.0')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user