summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-08-13 19:14:20 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2020-08-14 16:34:46 -0700
commit654f05b3a03aecdcb25c6a2c9593b13d3163362a (patch)
tree5796295df673e2417fdf20a9f5d396ad6670cac7 /spec
parent9851800cb4bcc481a00c949da2a86e15a94652f6 (diff)
downloadchef-654f05b3a03aecdcb25c6a2c9593b13d3163362a.tar.gz
Fix bootstrapping windows-from-linux
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/knife/core/windows_bootstrap_context_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/knife/core/windows_bootstrap_context_spec.rb b/spec/unit/knife/core/windows_bootstrap_context_spec.rb
index 6b041c5311..77e16f1a4a 100644
--- a/spec/unit/knife/core/windows_bootstrap_context_spec.rb
+++ b/spec/unit/knife/core/windows_bootstrap_context_spec.rb
@@ -165,7 +165,7 @@ describe Chef::Knife::Core::WindowsBootstrapContext do
echo.file_backup_path "C:/chef/backup"
echo.cache_options ^({:path =^> "C:/chef/cache/checksums", :skip_expires =^> true}^)
echo.# Using default node name ^(fqdn^)
- echo.log_level :info
+ echo.log_level :auto
echo.log_location STDOUT
EXPECTED
expect(bootstrap_context.config_content).to eq expected
@@ -183,7 +183,7 @@ describe Chef::Knife::Core::WindowsBootstrapContext do
describe "#start_chef" do
it "returns the expected string" do
- expect(bootstrap_context.start_chef).to match(%r{SET \"PATH=%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\System32\\Wbem;%SYSTEMROOT%\\System32\\WindowsPowerShell\\v1.0\\;C:\\ruby\\bin;C:\/opscode\/chef\\bin;C:\/opscode\/chef\\embedded\\bin\;%PATH%\"\n})
+ expect(bootstrap_context.start_chef).to match(/SET "PATH=%SYSTEM32%;%SystemRoot%;%SYSTEM32%\\Wbem;%SYSTEM32%\\WindowsPowerShell\\v1.0\\;C:\\ruby\\bin;C:\\opscode\\chef\\bin;C:\\opscode\\chef\\embedded\\bin;%PATH%"/)
end
end