Skip to content

Instantly share code, notes, and snippets.

@jpogran
Created April 21, 2016 16:01
Show Gist options
  • Select an option

  • Save jpogran/1919a3ccabb9511aa64dcf1d055517e4 to your computer and use it in GitHub Desktop.

Select an option

Save jpogran/1919a3ccabb9511aa64dcf1d055517e4 to your computer and use it in GitHub Desktop.
# First attempt:
export BEAKER_PUPPET_AGENT_VERSION='1.3.2'
export GEM_SOURCE=http://rubygems.delivery.puppetlabs.net
bundle install --without build development test --path .bundle/gems
bundle exec beaker \
--hosts spec/acceptance/nodesets/windows-2012r2-x86_64.yml \
--tests spec/acceptance \
--load-path spec \
--keyfile ~/.ssh/id_rsa-acceptance \
--preserve-hosts onfail \
--log-level debug \
--type aio
# Complains that there is no default.yml
Begin spec/acceptance/exec_powershell_spec.rb
/Users/jpogran/src/puppetlabs/modules/powershell/.bundle/gems/ruby/2.1.0/gems/beaker-rspec-5.3.0/lib/beaker-rspec/helpers/serverspec.rb:43: warning: already initialized constant Module::VALID_OPTIONS_KEYS
/Users/jpogran/src/puppetlabs/modules/powershell/.bundle/gems/ruby/2.1.0/gems/specinfra-2.53.1/lib/specinfra/configuration.rb:4: warning: previous definition of VALID_OPTIONS_KEYS was here
ArgumentError: Host file '/Users/jpogran/src/puppetlabs/modules/powershell/spec/acceptance/nodesets/default.yml' does not exist!
# Second attempt:
# create a default.yml with just
# CONFIG:
# log_level: verbose
# Complains that there is not method for each_key
No tests to run for suite 'pre_suite'
Begin spec/acceptance/exec_powershell_spec.rb
/Users/jpogran/src/puppetlabs/modules/powershell/.bundle/gems/ruby/2.1.0/gems/beaker-rspec-5.3.0/lib/beaker-rspec/helpers/serverspec.rb:43: warning: already initialized constant Module::VALID_OPTIONS_KEYS
/Users/jpogran/src/puppetlabs/modules/powershell/.bundle/gems/ruby/2.1.0/gems/specinfra-2.53.1/lib/specinfra/configuration.rb:4: warning: previous definition of VALID_OPTIONS_KEYS was here
NoMethodError: undefined method 'each_key' for nil:NilClass
/Users/jpogran/src/puppetlabs/modules/powershell/.bundle/gems/ruby/2.1.0/gems/beaker-2.40.0/lib/beaker/options/hosts_file_parser.rb:32
/Users/jpogran/src/puppetlabs/modules/powershell/.bundle/gems/ruby/2.1.0/gems/beaker-2.40.0/lib/beaker/options/parser.rb:196
# third attempt
# Add an empty HOST: entry to default.yaml
# Complains that at least one entry needs to be present in default
Failed Tests Cases:
Test Case spec/acceptance/exec_powershell_spec.rb reported: #<Beaker::DSL::Outcomes::FailTest: There should be one host with default defined!>
# Fourth attempt: add a host
# If I add a host to default.yaml, it seems to confuse beaker and it doesn't work
Begin spec/acceptance/exec_powershell_spec.rb
/Users/jpogran/src/puppetlabs/modules/powershell/.bundle/gems/ruby/2.1.0/gems/beaker-rspec-5.3.0/lib/beaker-rspec/helpers/serverspec.rb:43: warning: already initialized constant Module::VALID_OPTIONS_KEYS
/Users/jpogran/src/puppetlabs/modules/powershell/.bundle/gems/ruby/2.1.0/gems/specinfra-2.53.1/lib/specinfra/configuration.rb:4: warning: previous definition of VALID_OPTIONS_KEYS was here
Hypervisor for ubuntu1204 is vcloud
Hypervisor for win2012r2 is vcloud
Beaker::Hypervisor, found some vcloud boxes to create
RuntimeError: You must specify a datastore for vCloud instances!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment