Initial work commands/up: make sure all names to with_target_vms are strings providers/docker: create a docker host VM if needed providers/docker: executor abstraction for driver to eventually support remote providers/docker: vagrant executor providers/docker: support creating the machine providers/docker: status works if host VM is gone providers/docker: use start fence to get real docker output core: Call preserves stack ordering core: support Message post option providers/docker: Guard some features with HasSSH checks providers/docker: much better messaging around create/destroy providers/docker: output the container ID on create providers/docker: copy the hostmachine Vagrantfile to the data dir providers/docker: should make host machine before any up action providers/docker: HandleBox before the host machine providers/virtualbox: functional_vboxsf to disable vboxsf providers/virtualbox: synced folder usable method should take 2 args providers/docker: default machine name to :default
50 lines
1.2 KiB
Ruby
50 lines
1.2 KiB
Ruby
require "vagrant"
|
|
require Vagrant.source_root.join("test/unit/base")
|
|
|
|
require Vagrant.source_root.join("plugins/providers/virtualbox/config")
|
|
require Vagrant.source_root.join("plugins/providers/virtualbox/synced_folder")
|
|
|
|
describe VagrantPlugins::ProviderVirtualBox::SyncedFolder do
|
|
let(:machine) do
|
|
double("machine").tap do |m|
|
|
m.stub(provider_config: VagrantPlugins::ProviderVirtualBox::Config.new)
|
|
m.stub(provider_name: :virtualbox)
|
|
end
|
|
end
|
|
|
|
subject { described_class.new }
|
|
|
|
before do
|
|
machine.provider_config.finalize!
|
|
end
|
|
|
|
describe "usable" do
|
|
it "should be with virtualbox provider" do
|
|
machine.stub(provider_name: :virtualbox)
|
|
expect(subject).to be_usable(machine)
|
|
end
|
|
|
|
it "should not be with another provider" do
|
|
machine.stub(provider_name: :vmware_fusion)
|
|
expect(subject).not_to be_usable(machine)
|
|
end
|
|
|
|
it "should not be usable if not functional vboxsf" do
|
|
machine.provider_config.functional_vboxsf = false
|
|
expect(subject).to_not be_usable(machine)
|
|
end
|
|
end
|
|
|
|
describe "prepare" do
|
|
let(:driver) { double("driver") }
|
|
|
|
before do
|
|
machine.stub(driver: driver)
|
|
end
|
|
|
|
it "should share the folders" do
|
|
pending
|
|
end
|
|
end
|
|
end
|