Blob Blame History Raw
diff --git a/test/unit/plugins/provisioners/ansible/provisioner_test.rb b/test/unit/plugins/provisioners/ansible/provisioner_test.rb
index 31354a7..f2dfd0f 100644
--- a/test/unit/plugins/provisioners/ansible/provisioner_test.rb
+++ b/test/unit/plugins/provisioners/ansible/provisioner_test.rb
@@ -497,55 +497,6 @@ VF
       end
     end
 
-    context "with winrm communicator" do
-
-      let(:iso_winrm_env) do
-        env = isolated_environment
-        env.vagrantfile <<-VF
-Vagrant.configure("2") do |config|
-  config.winrm.username = 'winner'
-  config.winrm.password = 'winword'
-  config.winrm.transport = :ssl
-
-  config.vm.define :machine1 do |machine|
-    machine.vm.box = "winbox"
-    machine.vm.communicator = :winrm
-  end
-end
-VF
-        env.create_vagrant_env
-      end
-
-      let(:machine) { iso_winrm_env.machine(iso_winrm_env.machine_names[0], :dummy) }
-
-      it_should_set_arguments_and_environment_variables
-
-      it "generates an inventory with winrm connection settings" do
-
-        expect(Vagrant::Util::Subprocess).to receive(:execute).with(any_args) { |*args|
-          expect(config.inventory_path).to be_nil
-          expect(File.exists?(generated_inventory_file)).to be(true)
-          inventory_content = File.read(generated_inventory_file)
-
-          expect(inventory_content).to include("machine1 ansible_connection=winrm ansible_ssh_host=127.0.0.1 ansible_ssh_port=55986 ansible_ssh_user='winner' ansible_ssh_pass='winword'\n")
-        }.and_return(default_execute_result)
-      end
-
-      describe "with force_remote_user option disabled" do
-        before do
-          config.force_remote_user = false
-        end
-
-        it "doesn't set the ansible remote user in inventory and use '--user' argument with the vagrant ssh username" do
-          expect(Vagrant::Util::Subprocess).to receive(:execute).with(any_args) { |*args|
-            inventory_content = File.read(generated_inventory_file)
-
-            expect(inventory_content).to include("machine1 ansible_connection=winrm ansible_ssh_host=127.0.0.1 ansible_ssh_port=55986 ansible_ssh_pass='winword'\n")
-            expect(args).to include("--user=testuser")
-          }.and_return(default_execute_result)
-        end
-      end
-    end
 
     describe "with inventory_path option" do
       before do
-- 
2.5.0