summaryrefslogtreecommitdiff
path: root/spec/unit/knife/core/windows_bootstrap_context_spec.rb
diff options
context:
space:
mode:
authorMarc A. Paradise <marc.paradise@gmail.com>2021-04-20 12:05:47 -0400
committerMarc A. Paradise <marc.paradise@gmail.com>2021-04-20 12:07:08 -0400
commit0f399b5ca058c9989059e401b1beb42b013f1bc3 (patch)
treea03d00fd4cb0496ae8234af8dac6ad15e72aab8e /spec/unit/knife/core/windows_bootstrap_context_spec.rb
parent672fd930d5eafb1c38b02eabf396655b05fb0135 (diff)
downloadchef-0f399b5ca058c9989059e401b1beb42b013f1bc3.tar.gz
Update the download URL for windows msi
www.chef.io/chef/download has been deprecated; we should be using omnitruck.chef.io/chef/download. Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
Diffstat (limited to 'spec/unit/knife/core/windows_bootstrap_context_spec.rb')
-rw-r--r--spec/unit/knife/core/windows_bootstrap_context_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/knife/core/windows_bootstrap_context_spec.rb b/spec/unit/knife/core/windows_bootstrap_context_spec.rb
index 1243dd1559..af656facf0 100644
--- a/spec/unit/knife/core/windows_bootstrap_context_spec.rb
+++ b/spec/unit/knife/core/windows_bootstrap_context_spec.rb
@@ -204,19 +204,19 @@ describe Chef::Knife::Core::WindowsBootstrapContext do
end
it "returns a chef.io msi url with minimal url parameters" do
- reference_url = "https://www.chef.io/chef/download?p=windows&channel=stable&v=something"
+ reference_url = "https://omnitruck.chef.io/chef/download?p=windows&channel=stable&v=something"
expect(bootstrap_context.msi_url).to eq(reference_url)
end
it "returns a chef.io msi url with provided url parameters substituted" do
- reference_url = "https://www.chef.io/chef/download?p=windows&pv=machine&m=arch&DownloadContext=ctx&channel=stable&v=something"
+ reference_url = "https://omnitruck.chef.io/chef/download?p=windows&pv=machine&m=arch&DownloadContext=ctx&channel=stable&v=something"
expect(bootstrap_context.msi_url("machine", "arch", "ctx")).to eq(reference_url)
end
context "when a channel is provided in config" do
let(:config) { { channel: "current" } }
it "returns a chef.io msi url with the requested channel" do
- reference_url = "https://www.chef.io/chef/download?p=windows&channel=current&v=something"
+ reference_url = "https://omnitruck.chef.io/chef/download?p=windows&channel=current&v=something"
expect(bootstrap_context.msi_url).to eq(reference_url)
end
end