summaryrefslogtreecommitdiff
path: root/kitchen-tests
diff options
context:
space:
mode:
authorDavin Taddeo <davin@chef.io>2020-09-10 10:14:38 -0400
committerDavin Taddeo <davin@chef.io>2020-09-10 10:14:38 -0400
commite5050bbbfb578987e5a17a7c4ed27a06586fbb24 (patch)
treea016e3305fec3ef6738cb0d4f72705fad402f956 /kitchen-tests
parent8f60110bfa9485eb31e33df7c27e2646fb3bcc31 (diff)
downloadchef-e5050bbbfb578987e5a17a7c4ed27a06586fbb24.tar.gz
Update the windows_firewall_profile resource to move the load_firewall_state method out of the action_class. Also add some firewall tests to the kitchen tests to avoid this issue in the future.
Signed-off-by: Davin Taddeo <davin@chef.io>
Diffstat (limited to 'kitchen-tests')
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/windows.rb10
1 files changed, 10 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 3e069a43b0..33fc16e38a 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb
@@ -32,6 +32,16 @@ windows_security_policy "EnableGuestAccount" do
secvalue "1"
end
+windows_firewall_profile "Domain" do
+ default_inbound_action "Allow"
+ default_outbound_action "Allow"
+ action :enable
+end
+
+windows_firewall_profile "Public" do
+ action :disable
+end
+
users_manage "remove sysadmin" do
group_name "sysadmin"
group_id 2300