Merge pull request #10622 from mattin4d/master

Change remaining box_client_cert refs to box_download_client_cert
This commit is contained in:
Brian Cain 2019-02-20 11:03:49 -08:00 committed by GitHub
commit 31b9aafcf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -86,7 +86,7 @@ module VagrantPlugins
box_force: options[:force],
box_download_ca_cert: options[:ca_cert],
box_download_ca_path: options[:ca_path],
box_client_cert: options[:client_cert],
box_download_client_cert: options[:client_cert],
box_download_insecure: options[:insecure],
box_download_location_trusted: options[:location_trusted],
ui: Vagrant::UI::Prefixed.new(@env.ui, "box"),

View File

@ -158,7 +158,7 @@ module VagrantPlugins
box_version: update[1].version,
ui: ui,
box_force: force,
box_client_cert: download_options[:client_cert],
box_download_client_cert: download_options[:client_cert],
box_download_ca_cert: download_options[:ca_cert],
box_download_ca_path: download_options[:ca_path],
box_download_insecure: download_options[:insecure]

View File

@ -100,7 +100,7 @@ describe VagrantPlugins::CommandBox::Command::Update do
expect(opts[:box_version]).to eq("1.1")
expect(opts[:box_download_ca_path]).to be_nil
expect(opts[:box_download_ca_cert]).to be_nil
expect(opts[:box_client_cert]).to be_nil
expect(opts[:box_download_client_cert]).to be_nil
expect(opts[:box_download_insecure]).to be_nil
end
@ -206,7 +206,7 @@ describe VagrantPlugins::CommandBox::Command::Update do
action_called = true
expect(opts[:box_download_ca_cert]).to eq("foo")
expect(opts[:box_download_ca_path]).to eq("bar")
expect(opts[:box_client_cert]).to eq("baz")
expect(opts[:box_download_client_cert]).to eq("baz")
expect(opts[:box_download_insecure]).to be(true)
end
@ -355,7 +355,7 @@ describe VagrantPlugins::CommandBox::Command::Update do
expect(action_runner).to receive(:run).with(any_args) { |action, opts|
expect(opts[:box_download_ca_cert]).to eq("oof")
expect(opts[:box_download_ca_path]).to eq("rab")
expect(opts[:box_client_cert]).to eq("zab")
expect(opts[:box_download_client_cert]).to eq("zab")
expect(opts[:box_download_insecure]).to be(false)
true
}
@ -378,7 +378,7 @@ describe VagrantPlugins::CommandBox::Command::Update do
expect(action_runner).to receive(:run).with(any_args) { |action, opts|
expect(opts[:box_download_ca_cert]).to eq("foo")
expect(opts[:box_download_ca_path]).to eq("bar")
expect(opts[:box_client_cert]).to eq("baz")
expect(opts[:box_download_client_cert]).to eq("baz")
expect(opts[:box_download_insecure]).to be(true)
true
}