Skip to content

Commit

Permalink
Fix platform configuration for acceptance tests, update beaker
Browse files Browse the repository at this point in the history
  • Loading branch information
garethr committed Jul 22, 2015
1 parent d2b118e commit a7d7dde
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 13 deletions.
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@ end
group :development do
gem "travis"
gem "travis-lint"
gem "beaker", "2.13.0"
gem "beaker", "~> 2.0"
gem "beaker-puppet_install_helper", :require => false
gem "beaker-rspec"
gem "puppet-blacksmith"
gem "guard-rake"
gem "pry"
gem "yard"
#gem "vagrant-wrapper"
end
2 changes: 1 addition & 1 deletion spec/acceptance/nodesets/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ HOSTS:
ubuntu-server-1404-x64:
roles:
- master
platform: ubuntu-server-14.04-amd64
platform: ubuntu-14.04-amd64
box: puppetlabs/ubuntu-14.04-64-nocm
box_url: https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm
hypervisor: vagrant
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/nodesets/ubuntu-server-12042-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ HOSTS:
ubuntu-server-12042-x64:
roles:
- master
platform: ubuntu-server-12.04-amd64
platform: ubuntu-12.04-amd64
box: ubuntu-server-12042-x64-vbox4210-nocm
box_url: http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box
hypervisor: vagrant
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/nodesets/ubuntu-server-1404-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ HOSTS:
ubuntu-server-1404-x64:
roles:
- master
platform: ubuntu-server-14.04-amd64
platform: ubuntu-14.04-amd64
box: puppetlabs/ubuntu-14.04-64-nocm
box_url: https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm
hypervisor: vagrant
Expand Down
9 changes: 1 addition & 8 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@
require 'pry'
require 'beaker/puppet_install_helper'

# this is a workaround for BKR-419. Beaker currently fails to
# install puppet on Ubuntu 14.04 after version 2.13.0. But
# install_puppet_on is used by puppet_install_helper
def install_puppet_on(hosts, opts = {})
install_puppet(opts)
end unless respond_to? :install_puppet_on

run_puppet_install_helper
run_puppet_install_helper unless ENV['BEAKER_provision'] == 'no'

RSpec.configure do |c|
# Project root
Expand Down

0 comments on commit a7d7dde

Please sign in to comment.