From 6bca147fb9898e062c63aade20191c723e96d827 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Sun, 20 Jul 2014 19:59:27 -0300 Subject: [PATCH] Use vagrant cloud base boxes for sanity checks --- .../fixtures/auto-detect-with-provisioning.rb | 10 ++++++++-- spec/acceptance/fixtures/auto-detect.rb | 10 ++++++++-- spec/acceptance/fixtures/no-cachier-simple.rb | 8 ++++++-- .../fixtures/no-cachier-with-provisioning.rb | 9 +++++++-- 4 files changed, 29 insertions(+), 8 deletions(-) diff --git a/spec/acceptance/fixtures/auto-detect-with-provisioning.rb b/spec/acceptance/fixtures/auto-detect-with-provisioning.rb index 21afa2e..8484a1e 100644 --- a/spec/acceptance/fixtures/auto-detect-with-provisioning.rb +++ b/spec/acceptance/fixtures/auto-detect-with-provisioning.rb @@ -1,8 +1,14 @@ Vagrant.configure("2") do |config| + config.vm.provider :virtualbox do |_, override| + override.vm.box = "chef/ubuntu-14.04" + end + + config.vm.provider :lxc do |_, override| + override.vm.box = "fgrehm/trusty64-lxc" + end + config.cache.auto_detect = true config.cache.scope = :machine - config.vm.box = 'precise64' - config.vm.box_url = 'http://files.vagrantup.com/precise64.box' config.vm.provision :shell, inline: 'apt-get update && apt-get install -y git' end diff --git a/spec/acceptance/fixtures/auto-detect.rb b/spec/acceptance/fixtures/auto-detect.rb index 4deb366..aa48402 100644 --- a/spec/acceptance/fixtures/auto-detect.rb +++ b/spec/acceptance/fixtures/auto-detect.rb @@ -1,6 +1,12 @@ Vagrant.configure("2") do |config| + config.vm.provider :virtualbox do |_, override| + override.vm.box = "chef/ubuntu-14.04" + end + config.vm.provider :lxc do |_, override| + override.vm.box = "fgrehm/trusty64-lxc" + end + config.cache.auto_detect = true - config.vm.box = 'precise64' - config.vm.box_url = 'http://files.vagrantup.com/precise64.box' + config.vm.provision :shell, inline: 'echo Hello!' end diff --git a/spec/acceptance/fixtures/no-cachier-simple.rb b/spec/acceptance/fixtures/no-cachier-simple.rb index e8bf29a..0e83ffa 100644 --- a/spec/acceptance/fixtures/no-cachier-simple.rb +++ b/spec/acceptance/fixtures/no-cachier-simple.rb @@ -1,4 +1,8 @@ Vagrant.configure("2") do |config| - config.vm.box = 'precise64' - config.vm.box_url = 'http://files.vagrantup.com/precise64.box' + config.vm.provider :virtualbox do |_, override| + override.vm.box = "chef/ubuntu-14.04" + end + config.vm.provider :lxc do |_, override| + override.vm.box = "fgrehm/trusty64-lxc" + end end diff --git a/spec/acceptance/fixtures/no-cachier-with-provisioning.rb b/spec/acceptance/fixtures/no-cachier-with-provisioning.rb index 5f20779..0c11a39 100644 --- a/spec/acceptance/fixtures/no-cachier-with-provisioning.rb +++ b/spec/acceptance/fixtures/no-cachier-with-provisioning.rb @@ -1,5 +1,10 @@ Vagrant.configure("2") do |config| - config.vm.box = 'precise64' - config.vm.box_url = 'http://files.vagrantup.com/precise64.box' + config.vm.provider :virtualbox do |_, override| + override.vm.box = "chef/ubuntu-14.04" + end + config.vm.provider :lxc do |_, override| + override.vm.box = "fgrehm/trusty64-lxc" + end + config.vm.provision :shell, inline: 'echo Hello!' end