summaryrefslogtreecommitdiff
path: root/kitchen-tests
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-08-18 09:13:16 -0700
committerTim Smith <tsmith84@gmail.com>2020-08-18 09:13:16 -0700
commit63217f28a11186e8f87264827ec67ad64bfbf4a7 (patch)
tree65f4a302800479205088db8b7a8cd162ab32468d /kitchen-tests
parente5e09d3ba59f950a9dcd8649cae444b925a010a7 (diff)
downloadchef-63217f28a11186e8f87264827ec67ad64bfbf4a7.tar.gz
Further improve osx_profile error message and add a test
Make sure we can execute the resource in a Test Kitchen run. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'kitchen-tests')
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/macos.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb
index c6be1ef249..76ddacb4bb 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb
@@ -56,6 +56,11 @@ include_recipe "git"
end
end
+osx_profile 'Remove screensaver profile' do
+ identifier 'com.company.screensaver'
+ action :remove
+end
+
build_essential
launchd "io.chef.testing.fake" do