Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Acceptance tests on bare module fails to initialize #98

Open
Rovanion opened this issue Nov 26, 2015 · 0 comments
Open

Acceptance tests on bare module fails to initialize #98

Rovanion opened this issue Nov 26, 2015 · 0 comments

Comments

@Rovanion
Copy link

When running bundle exec rake acceptance on a newly generated module the following output is produced:

$ bundle exec rake acceptance
/usr/bin/ruby1.9.1 -I/var/lib/gems/1.9.1/gems/rspec-core-3.1.7/lib:/var/lib/gems/1.9.1/gems/rspec-support-3.1.2/lib /var/lib/gems/1.9.1/gems/rspec-core-3.1.7/exe/rspec spec/acceptance
/var/lib/gems/1.9.1/gems/beaker-rspec-5.3.0/lib/beaker-rspec/helpers/perverse.rb:43: warning: already initialized constant VALID_OPTIONS_KEYS
Hypervisor for ubuntu-server-1204-x64 is vagrant
Beaker::Hypervisor, found some vagrant boxes to create
created Vagrantfile for VagrantHost ubuntu-server-1204-x64
You appear to be running Vagrant in a Bundler environment. Because
Vagrant should be run within installers (outside of Bundler), Vagrant
will assume that you're developing plugins and will change its behavior
in certain ways to better assist plugin development.

Bringing machine 'ubuntu-server-1204-x64' up with 'virtualbox' provider...
[ubuntu-server-1204-x64] Box 'puppetlabs/ubuntu-12.04-64-nocm' was not found. Fetching box from specified URL for
the provider 'virtualbox'. Note that if the URL does not have
a box for this provider, you should interrupt Vagrant now and add
the box yourself. Otherwise Vagrant will attempt to download the
full box prior to discovering this error.
Downloading box from URL: https://vagrantcloud.com/puppetlabs/boxes/ubuntu-12.04-64-nocm
Progress: 0% (Rate: 0/s, Estimated time remaining: --:--:--)Extracting box...
/var/lib/gems/1.9.1/gems/beaker-2.29.1/lib/beaker/hypervisor/vagrant.rb:196:in `block (2 levels) in vagrant_cmd': Failed to exec 'vagrant up'. Error was The box failed to unpackage properly. Please verify that the box (RuntimeError)
file you're trying to add is not corrupted and try again. The
output from attempting to unpackage (if any):

bsdtar: Error opening archive: Unrecognized archive format
    from /usr/lib/ruby/1.9.1/open3.rb:208:in `popen_run'
    from /usr/lib/ruby/1.9.1/open3.rb:90:in `popen3'
    from /var/lib/gems/1.9.1/gems/beaker-2.29.1/lib/beaker/hypervisor/vagrant.rb:191:in `block in vagrant_cmd'
    from /var/lib/gems/1.9.1/gems/beaker-2.29.1/lib/beaker/hypervisor/vagrant.rb:189:in `chdir'
    from /var/lib/gems/1.9.1/gems/beaker-2.29.1/lib/beaker/hypervisor/vagrant.rb:189:in `vagrant_cmd'
    from /var/lib/gems/1.9.1/gems/beaker-2.29.1/lib/beaker/hypervisor/vagrant.rb:151:in `provision'
    from /var/lib/gems/1.9.1/gems/beaker-2.29.1/lib/beaker/hypervisor.rb:75:in `create'
    from /var/lib/gems/1.9.1/gems/beaker-2.29.1/lib/beaker/network_manager.rb:64:in `block in provision'
    from /var/lib/gems/1.9.1/gems/beaker-2.29.1/lib/beaker/network_manager.rb:63:in `each_key'
    from /var/lib/gems/1.9.1/gems/beaker-2.29.1/lib/beaker/network_manager.rb:63:in `provision'
    from /var/lib/gems/1.9.1/gems/beaker-rspec-5.3.0/lib/beaker-rspec/beaker_shim.rb:35:in `provision'
    from /var/lib/gems/1.9.1/gems/beaker-rspec-5.3.0/lib/beaker-rspec/spec_helper.rb:46:in `block in <top (required)>'
    from /var/lib/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core.rb:81:in `configure'
    from /var/lib/gems/1.9.1/gems/beaker-rspec-5.3.0/lib/beaker-rspec/spec_helper.rb:5:in `<top (required)>'
    from /home/rovanion/source/user-module/spec/spec_helper_acceptance.rb:1:in `require'
    from /home/rovanion/source/user-module/spec/spec_helper_acceptance.rb:1:in `<top (required)>'
    from /home/rovanion/source/user-module/spec/acceptance/class_spec.rb:1:in `require'
    from /home/rovanion/source/user-module/spec/acceptance/class_spec.rb:1:in `<top (required)>'
    from /var/lib/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `load'
    from /var/lib/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `block in load_spec_files'
    from /var/lib/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `each'
    from /var/lib/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `load_spec_files'
    from /var/lib/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:96:in `setup'
    from /var/lib/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:84:in `run'
    from /var/lib/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:69:in `run'
    from /var/lib/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:37:in `invoke'
    from /var/lib/gems/1.9.1/gems/rspec-core-3.1.7/exe/rspec:4:in `<main>'
/usr/bin/ruby1.9.1 -I/var/lib/gems/1.9.1/gems/rspec-core-3.1.7/lib:/var/lib/gems/1.9.1/gems/rspec-support-3.1.2/lib /var/lib/gems/1.9.1/gems/rspec-core-3.1.7/exe/rspec spec/acceptance failed

Changing the default HOST to the Ubuntu 14.04 or Fedora 20 defined in spec/acceptance/nodesets/ does not produce any output different than the one above, save for the name of the machine. The odd thing is that there seems to be a box for VirtualBox defined on the url specified in the log. So I don't know where to go from here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant