diff options
author | NAshwini <ashwini.nehate@msystechnologies.com> | 2020-02-06 12:20:18 +0530 |
---|---|---|
committer | NAshwini <ashwini.nehate@msystechnologies.com> | 2020-03-05 11:19:16 +0530 |
commit | a6d7991ba02f82fc17ecec26feeb965a045d9654 (patch) | |
tree | ad93283530305081561ba04c0573e3cf9aaf5e68 /spec/functional | |
parent | 1ddc0927fe46d844de6ec2072759ce4f212112fc (diff) | |
download | chef-a6d7991ba02f82fc17ecec26feeb965a045d9654.tar.gz |
Replace powershell_out to powershell_exec
Signed-off-by: NAshwini <ashwini.nehate@msystechnologies.com>
Diffstat (limited to 'spec/functional')
-rw-r--r-- | spec/functional/resource/windows_security_policy_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/functional/resource/windows_security_policy_spec.rb b/spec/functional/resource/windows_security_policy_spec.rb index c09a5d0c5c..62e379962d 100644 --- a/spec/functional/resource/windows_security_policy_spec.rb +++ b/spec/functional/resource/windows_security_policy_spec.rb @@ -21,9 +21,9 @@ require "functional/resource/base" require "chef/mixin/powershell_out" describe Chef::Resource::WindowsSecurityPolicy, :windows_only do - include Chef::Mixin::PowershellOut + include Chef::Mixin::PowershellExec before(:all) { - powershell_out!("Install-Module -Name cSecurityOptions -Force") if powershell_out!("(Get-Package -Name cSecurityOptions -WarningAction SilentlyContinue).name").stdout.empty? + powershell_exec("Install-Module -Name cSecurityOptions -Force") if powershell_exec("(Get-Package -Name cSecurityOptions -WarningAction SilentlyContinue).name").result.empty? } let(:secoption) { "MaximumPasswordAge" } |