2014-02-05 23:35:37 +00:00
|
|
|
require File.expand_path("../../../../base", __FILE__)
|
|
|
|
|
|
|
|
require Vagrant.source_root.join("plugins/kernel_v2/config/ssh")
|
|
|
|
|
|
|
|
describe VagrantPlugins::Kernel_V2::SSHConfig do
|
|
|
|
subject { described_class.new }
|
|
|
|
|
|
|
|
describe "#default" do
|
|
|
|
it "defaults to vagrant username" do
|
|
|
|
subject.finalize!
|
2018-09-27 10:16:50 +00:00
|
|
|
expect(subject.default.port).to eq(22)
|
2014-02-05 23:35:37 +00:00
|
|
|
expect(subject.default.username).to eq("vagrant")
|
|
|
|
end
|
|
|
|
end
|
2015-07-09 15:30:47 +00:00
|
|
|
|
|
|
|
describe "#sudo_command" do
|
|
|
|
it "defaults properly" do
|
|
|
|
subject.finalize!
|
|
|
|
expect(subject.sudo_command).to eq("sudo -E -H %c")
|
|
|
|
end
|
|
|
|
end
|
2014-02-05 23:35:37 +00:00
|
|
|
end
|