summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavin Taddeo <davin@chef.io>2020-09-30 16:37:09 -0400
committerDavin Taddeo <davin@chef.io>2020-09-30 16:37:09 -0400
commitb80a89d83e63e5e4e2dbc7b43c131a5c4a647173 (patch)
tree0b4a29f521e9d6ed2d5ef01808975f83b77b3af4
parent491b747ca8a056673920ae654d8ee3e289557635 (diff)
downloadchef-b80a89d83e63e5e4e2dbc7b43c131a5c4a647173.tar.gz
updates from review
Signed-off-by: Davin Taddeo <davin@chef.io>
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/windows.rb8
-rw-r--r--lib/chef/resource/windows_audit_policy.rb2
2 files changed, 5 insertions, 5 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb b/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb
index 37f8d9dc66..16341bf058 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb
@@ -48,25 +48,25 @@ windows_firewall_profile "Public" do
end
windows_audit_policy "Update Some Advanced Audit Policies to Success and Failure" do
- subcategory subcategory ["Application Generated", "Application Group Management", "Audit Policy Change"]
+ subcategory ["Application Generated", "Application Group Management", "Audit Policy Change"]
success true
failure true
end
windows_audit_policy "Update Some Advanced Audit Policies to Success only" do
- subcategory subcategory ["Authentication Policy Change", "Authorization Policy Change"]
+ subcategory ["Authentication Policy Change", "Authorization Policy Change"]
success true
failure false
end
windows_audit_policy "Update Some Advanced Audit Policies to Failure only" do
- subcategory subcategory ["Central Policy Staging", "Certification Services", "Computer Account Management"]
+ subcategory ["Central Policy Staging", "Certification Services", "Computer Account Management"]
success false
failure true
end
windows_audit_policy "Update Some Advanced Audit Policies to No Auditing" do
- subcategory subcategory ["Credential Validation", "DPAPI Activity", "Detailed File Share"]
+ subcategory ["Credential Validation", "DPAPI Activity", "Detailed File Share"]
success false
failure false
end
diff --git a/lib/chef/resource/windows_audit_policy.rb b/lib/chef/resource/windows_audit_policy.rb
index 69bfc80273..433e18e197 100644
--- a/lib/chef/resource/windows_audit_policy.rb
+++ b/lib/chef/resource/windows_audit_policy.rb
@@ -209,7 +209,7 @@ class Chef
elsif success_value && !failure_value
"Success$"
elsif !success_value && failure_value
- "#{sub_cat} \\s+ Failure$"
+ "#{sub_cat}\\s+Failure$"
else
"No Auditing"
end