inspec/test/kitchen/cookbooks/os_prepare/recipes/os_env.rb
Miah Johnson 97a258ae69 Use a more obvious directory structure for kitchen testing
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 22:41:03 -07:00

13 lines
339 B
Ruby

#
# change a few Windows registry keys for testing purposes
if node["platform_family"] == "windows"
powershell_script "Write User TEMP" do
code <<-EOH
[System.Environment]::SetEnvironmentVariable('TEMP', 'C:\\TEMPUSER', [System.environmentVariableTarget]::User)
EOH
end
env "TEMP" do
value 'C:\TEMPSYSTEM'
end
end