Last active
August 29, 2015 14:18
-
-
Save fatmcgav/185e74456d1d4c84e955 to your computer and use it in GitHub Desktop.
Beaker TypeError - can't convert Symbol into Integer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
beaker-2.8.0/lib/beaker/dsl/helpers/host_helpers.rb:61:in `[]': can't convert Symbol into Integer (TypeError) | |
from /home/card.co.uk/gavinw/.rvm/gems/ruby-1.9.3-p550@catsvc/gems/beaker-2.8.0/lib/beaker/dsl/helpers/host_helpers.rb:61:in `block in on' | |
from /home/card.co.uk/gavinw/.rvm/gems/ruby-1.9.3-p550@catsvc/gems/beaker-2.8.0/lib/beaker/shared/host_manager.rb:95:in `run_block_on' | |
from /home/card.co.uk/gavinw/.rvm/gems/ruby-1.9.3-p550@catsvc/gems/beaker-2.8.0/lib/beaker/dsl/patterns.rb:32:in `block_on' | |
from /home/card.co.uk/gavinw/.rvm/gems/ruby-1.9.3-p550@catsvc/gems/beaker-2.8.0/lib/beaker/dsl/helpers/host_helpers.rb:54:in `on' | |
from /home/card.co.uk/gavinw/.rvm/gems/ruby-1.9.3-p550@catsvc/gems/beaker-2.8.0/lib/beaker/dsl/helpers/host_helpers.rb:371:in `curl_on' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'beaker-rspec/spec_helper' | |
require 'beaker-rspec/helpers/serverspec' | |
require 'beaker/librarian' | |
unless ENV['BEAKER_provision'] == 'no' | |
hosts.each do |host| | |
# Install Puppet | |
if host.is_pe? | |
install_pe | |
else | |
install_puppet | |
end | |
end | |
end | |
RSpec.configure do |c| | |
# Project root | |
proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..')) | |
# Readable test descriptions | |
c.formatter = :documentation | |
# Configure all nodes in nodeset | |
c.before :suite do | |
hosts.each do |host| | |
# Download accpetance SSH priv key | |
curl_on(host, 'http://yum.test.card.co.uk/acceptance/id_rsa-github -o /root/.ssh/id_rsa') | |
on host, 'chown 0600 /root/.ssh/id_rsa' | |
# Setup librarian and install modules | |
install_librarian(:librarian_version => '~>1.5.0') | |
librarian_install_modules(proj_root, 'cataloguesvc') | |
# Copy hiera data into default puppet location | |
copy_hiera_data_to(host, 'spec/fixtures/hiera/hieradata/') | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment