diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2021-07-28 17:34:28 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2021-07-28 17:34:28 -0700 |
commit | 0b9862a232e3b034f75f80a3dcc8a6d999dda0e1 (patch) | |
tree | 134b421d13fe998d0f921467f9ce8003e68d09fa /spec | |
parent | 38f6e39265a4722c35ef66405bf33c2084e14bb2 (diff) | |
download | chef-0b9862a232e3b034f75f80a3dcc8a6d999dda0e1.tar.gz |
Turn on chef_node_attribute_enabled for compliance phase by default
Getting Chef Infra attributes into Chef Inspec inputs is a FAQ and this
seems like an obviously better default.
We are unaware of any breaking change this would cause.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/compliance/runner_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/compliance/runner_spec.rb b/spec/unit/compliance/runner_spec.rb index e60195b8ec..e41b80f5b1 100644 --- a/spec/unit/compliance/runner_spec.rb +++ b/spec/unit/compliance/runner_spec.rb @@ -221,7 +221,7 @@ describe Chef::Compliance::Runner do inputs = runner.inspec_opts[:inputs] expect(inputs["tacos"]).to eq("lunch") - expect(inputs.key?("chef_node")).to eq(false) + expect(inputs.key?("chef_node")).to eq(true) end it "includes chef_node in inputs with chef_node_attribute_enabled set" do |