diff options
author | Davin Taddeo <davin@chef.io> | 2020-09-30 14:17:37 -0400 |
---|---|---|
committer | Davin Taddeo <davin@chef.io> | 2020-09-30 14:17:37 -0400 |
commit | fa0c3ce1e6bb7d7fcbc1928a58f0253a879d051b (patch) | |
tree | 966e18e5ade65269af516d69b5676193f7862201 /kitchen-tests | |
parent | 3017f86f0363f6fb0b0d1dea32a4bb637055158a (diff) | |
download | chef-fa0c3ce1e6bb7d7fcbc1928a58f0253a879d051b.tar.gz |
fix for the windows_audit_policy resource and added some tests for it into the windows end-to-end kitchen testing.
Signed-off-by: Davin Taddeo <davin@chef.io>
Diffstat (limited to 'kitchen-tests')
-rw-r--r-- | kitchen-tests/cookbooks/end_to_end/recipes/windows.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb b/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb index 6a60c1f305..37f8d9dc66 100644 --- a/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb +++ b/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb @@ -47,6 +47,30 @@ windows_firewall_profile "Public" do action :disable end +windows_audit_policy "Update Some Advanced Audit Policies to Success and Failure" do + subcategory 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"] + 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"] + 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"] + success false + failure false +end + users_manage "remove sysadmin" do group_name "sysadmin" group_id 2300 |