mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-02-03 20:39:27 -05:00
25 lines
641 B
Ruby
25 lines
641 B
Ruby
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
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!
|
|
expect(subject.default.port).to eq(22)
|
|
expect(subject.default.username).to eq("vagrant")
|
|
end
|
|
end
|
|
|
|
describe "#sudo_command" do
|
|
it "defaults properly" do
|
|
subject.finalize!
|
|
expect(subject.sudo_command).to eq("sudo -E -H %c")
|
|
end
|
|
end
|
|
end
|