summaryrefslogtreecommitdiff
path: root/kitchen-tests
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-07-06 16:48:16 -0700
committerTim Smith <tsmith84@gmail.com>2020-07-20 11:45:27 -0700
commit589b1d212723e8dd79c0a0be32472cdd9a07ff42 (patch)
tree512c73aeb818e46645865e766a21c9d36d6f477c /kitchen-tests
parent3dae6b529ce4781169ebd7a138e61fe271afb3d3 (diff)
downloadchef-589b1d212723e8dd79c0a0be32472cdd9a07ff42.tar.gz
Rework macos_userdefaults resource
This is a reboot of sorts on the macos_userdefaults resource to fix some fundamental flaws in the UX of the resource and how it gets state / sets the values. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'kitchen-tests')
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/_macos_userdefaults.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/_macos_userdefaults.rb b/kitchen-tests/cookbooks/end_to_end/recipes/_macos_userdefaults.rb
index 6fcdd51d10..5d8fbdd543 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/_macos_userdefaults.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/_macos_userdefaults.rb
@@ -11,16 +11,22 @@ mac_os_x_userdefaults "Disable fast user switching" do
value 0
end
-macos_userdefaults "enable macOS firewall" do
+macos_userdefaults "Enable macOS firewall" do
domain "/Library/Preferences/com.apple.alf"
key "globalstate"
value "1"
type "int"
end
-macos_userdefaults "set dock size" do
+macos_userdefaults "Set the dock size" do
domain "com.apple.dock"
type "integer"
key "tilesize"
value "20"
end
+
+macos_userdefaults "value with space" do
+ domain "/Library/Preferences/ManagedInstalls"
+ key "LogFile"
+ value "/Library/Managed Installs/Logs/ManagedSoftwareUpdate2.log"
+end