summaryrefslogtreecommitdiff
path: root/spec/functional
diff options
context:
space:
mode:
authorVasu1105 <vasundhara.jagdale@msystechnologies.com>2020-02-05 22:02:06 -0800
committerVasu1105 <vasundhara.jagdale@msystechnologies.com>2020-02-23 23:09:55 -0800
commit39bd22505b847ff305ca4a6c58b0c0a64c367e44 (patch)
tree4087e9dc6b4b66ce6cf944bb3b0a917b7003fc2c /spec/functional
parent7a4b9d78051f6ed46b9434c2fa733d4ca27cbf5b (diff)
downloadchef-39bd22505b847ff305ca4a6c58b0c0a64c367e44.tar.gz
Replaced powershell_out with powershell_exec and updated data type for sensitive class
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
Diffstat (limited to 'spec/functional')
-rw-r--r--spec/functional/resource/windows_user_privilege_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/functional/resource/windows_user_privilege_spec.rb b/spec/functional/resource/windows_user_privilege_spec.rb
index 4f67032ff0..cf1320e12a 100644
--- a/spec/functional/resource/windows_user_privilege_spec.rb
+++ b/spec/functional/resource/windows_user_privilege_spec.rb
@@ -1,6 +1,6 @@
#
# Author:: Vasundhara Jagdale (<vasundhara.jagdale@chef.io>)
-# Copyright 2008-2019, Chef Software, Inc.
+# Copyright 2008-2020, Chef Software, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ require_relative "../../spec_helper"
require_relative "../../functional/resource/base"
describe Chef::Resource::WindowsUserPrivilege, :windows_only do
- include Chef::Mixin::PowershellOut
+ include Chef::Mixin::PowershellExec
let(:principal) { nil }
let(:privilege) { nil }
@@ -65,7 +65,7 @@ describe Chef::Resource::WindowsUserPrivilege, :windows_only do
describe "#set privilege" do
before(:all) {
- powershell_out!("Uninstall-Module -Name cSecurityOptions") unless powershell_out!("(Get-Package -Name cSecurityOptions -WarningAction SilentlyContinue).name").stdout.empty?
+ powershell_exec("Uninstall-Module -Name cSecurityOptions") unless powershell_exec("(Get-Package -Name cSecurityOptions -WarningAction SilentlyContinue).name").result.empty?
}
let(:principal) { "user_privilege" }
@@ -80,7 +80,7 @@ describe Chef::Resource::WindowsUserPrivilege, :windows_only do
describe "#set privilege" do
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?
}
after { remove_user_privilege("Administrator", subject.privilege) }