diff options
author | rishichawda <rishichawda@users.noreply.github.com> | 2021-09-28 22:41:17 +0530 |
---|---|---|
committer | rishichawda <rishichawda@users.noreply.github.com> | 2021-09-28 22:41:17 +0530 |
commit | 12aa62c8bc0f76d0c2aa291b81655f153127592c (patch) | |
tree | 693701b467df998619ecfc9126ae05e236ac6e65 | |
parent | c39731e9bd32409811297224675085ea9576f217 (diff) | |
download | chef-12aa62c8bc0f76d0c2aa291b81655f153127592c.tar.gz |
add e2e test for array with dict value
Signed-off-by: rishichawda <rishichawda@users.noreply.github.com>
-rw-r--r-- | kitchen-tests/cookbooks/end_to_end/recipes/_macos_userdefaults.rb | 8 |
1 files changed, 8 insertions, 0 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 80cbfddfcc..d38e7e16a2 100644 --- a/kitchen-tests/cookbooks/end_to_end/recipes/_macos_userdefaults.rb +++ b/kitchen-tests/cookbooks/end_to_end/recipes/_macos_userdefaults.rb @@ -52,6 +52,14 @@ macos_userdefaults "Bogus key with dict value" do value "User": "/Library/Managed Installs/way_fake.log" end +# test that we can set an array with dict value +macos_userdefaults "Bogus key with array value with dict items" do + domain "/Library/Preferences/ManagedInstalls" + type "array" + key "ArrayWithDict" + value [ { "User": "/Library/Managed Installs/way_fake.log" } ] +end + # test that we can set a bool macos_userdefaults "Bogus key with boolean value" do domain "/Library/Preferences/ManagedInstalls" |