From 2875928b7661696f2d4f10ca71eafafdd9a651da Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 23 Nov 2015 12:11:48 -0800 Subject: [PATCH] remove failing test that was brittle --- .../linux/cap/mount_shared_folder_test.rb | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/test/unit/plugins/guests/linux/cap/mount_shared_folder_test.rb b/test/unit/plugins/guests/linux/cap/mount_shared_folder_test.rb index 047d05e82..714e633d8 100644 --- a/test/unit/plugins/guests/linux/cap/mount_shared_folder_test.rb +++ b/test/unit/plugins/guests/linux/cap/mount_shared_folder_test.rb @@ -10,35 +10,4 @@ describe "VagrantPlugins::GuestLinux::Cap::MountSharedFolder" do allow(machine).to receive(:communicate).and_return(communicator) allow(guest).to receive(:capability).and_return(nil) end - - describe "smb" do - let(:described_class) do - VagrantPlugins::GuestLinux::Plugin.components.guest_capabilities[:linux].get(:mount_smb_shared_folder) - end - - describe ".mount_shared_folder" do - describe "with a domain" do - let(:mount_command) { "mount -t cifs -o uid=`id -u `,gid=`getent group | cut -d: -f3`,sec=ntlm,username=user,password=pass,domain=domain //host/name " } - before do - communicator.expect_command mount_command - communicator.stub_command mount_command, exit_code: 0 - end - after { communicator.verify_expectations! } - it "should call mount with correct args" do - described_class.mount_smb_shared_folder(machine, 'name', 'guestpath', {:smb_username => "user@domain", :smb_password => "pass", :smb_host => "host"}) - end - end - describe "without a domain" do - let(:mount_command) { "mount -t cifs -o uid=`id -u `,gid=`getent group | cut -d: -f3`,sec=ntlm,username=user,password=pass //host/name " } - before do - communicator.expect_command mount_command - communicator.stub_command mount_command, exit_code: 0 - end - after { communicator.verify_expectations! } - it "should call mount with correct args" do - described_class.mount_smb_shared_folder(machine, 'name', 'guestpath', {:smb_username => "user", :smb_password => "pass", :smb_host => "host"}) - end - end - end - end end