summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-04-27 14:45:44 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-04-27 14:45:44 -0700
commitae72d0fbe4dbbfa081d0befb61cd6c1a74f58b75 (patch)
tree53df312493a935f316cf10801a6573aa2e3cfa8a
parenta068d3cde6105a591da24d1a5ff35bde26c16214 (diff)
downloadchef-ae72d0fbe4dbbfa081d0befb61cd6c1a74f58b75.tar.gz
Whitelist some additional Hash/Array methodslcg/whitelist-node-methods
these get monkeypatched in by gems which are included in ChefDK and cause those tests to break. kind of unpleasant workflow, but this is doing its job correctly. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/node/mixin/immutablize_array.rb1
-rw-r--r--lib/chef/node/mixin/immutablize_hash.rb2
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/node/mixin/immutablize_array.rb b/lib/chef/node/mixin/immutablize_array.rb
index 88c7e6ffa9..ba59385d68 100644
--- a/lib/chef/node/mixin/immutablize_array.rb
+++ b/lib/chef/node/mixin/immutablize_array.rb
@@ -112,6 +112,7 @@ class Chef
:take_while,
:to_a,
:to_ary,
+ :to_csv,
:to_h,
:to_plist,
:to_set,
diff --git a/lib/chef/node/mixin/immutablize_hash.rb b/lib/chef/node/mixin/immutablize_hash.rb
index cd2bbf7bf6..71d2f754a4 100644
--- a/lib/chef/node/mixin/immutablize_hash.rb
+++ b/lib/chef/node/mixin/immutablize_hash.rb
@@ -88,6 +88,7 @@ class Chef
:minmax,
:minmax_by,
:none?,
+ :normalize_param,
:one?,
:partition,
:rassoc,
@@ -112,6 +113,7 @@ class Chef
:to_plist,
:to_proc,
:to_set,
+ :to_xml_attributes,
:transform_keys,
:transform_values,
:uniq,