2014-03-14 15:02:07 +00:00
|
|
|
require_relative "../../../base"
|
|
|
|
|
|
|
|
require Vagrant.source_root.join("plugins/providers/hyperv/config")
|
|
|
|
|
|
|
|
describe VagrantPlugins::HyperV::Config do
|
|
|
|
describe "#ip_address_timeout" do
|
|
|
|
it "can be set" do
|
|
|
|
subject.ip_address_timeout = 180
|
|
|
|
subject.finalize!
|
|
|
|
expect(subject.ip_address_timeout).to eq(180)
|
|
|
|
end
|
|
|
|
it "defaults to a number" do
|
|
|
|
subject.finalize!
|
|
|
|
expect(subject.ip_address_timeout).to eq(120)
|
|
|
|
end
|
|
|
|
end
|
2015-01-14 15:35:44 +00:00
|
|
|
describe "#vmname" do
|
|
|
|
it "can be set" do
|
|
|
|
subject.vmname = "test"
|
|
|
|
subject.finalize!
|
|
|
|
expect(subject.vmname).to eq("test")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
describe "#memory" do
|
|
|
|
it "can be set" do
|
|
|
|
subject.memory = 512
|
|
|
|
subject.finalize!
|
|
|
|
expect(subject.memory).to eq(512)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
describe "#maxmemory" do
|
|
|
|
it "can be set" do
|
|
|
|
subject.maxmemory = 1024
|
|
|
|
subject.finalize!
|
|
|
|
expect(subject.maxmemory).to eq(1024)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
describe "#cpus" do
|
|
|
|
it "can be set" do
|
|
|
|
subject.cpus = 2
|
|
|
|
subject.finalize!
|
|
|
|
expect(subject.cpus).to eq(2)
|
|
|
|
end
|
|
|
|
end
|
2014-03-14 15:02:07 +00:00
|
|
|
end
|