summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-12-15 15:29:49 -0800
committertyler-ball <tyleraball@gmail.com>2014-12-17 18:52:25 -0800
commit5531cabf5640607874fd24c5e9c6006d848ec69b (patch)
tree9d3803b600b1a6b792505bc042e5862a72667485
parent1a49821ec880ddf6ba63e17ed5dfd8ed11411d65 (diff)
downloadchef-5531cabf5640607874fd24c5e9c6006d848ec69b.tar.gz
Explicitly enable audits.
-rw-r--r--spec/integration/client/client_spec.rb1
-rw-r--r--spec/unit/application/client_spec.rb4
2 files changed, 5 insertions, 0 deletions
diff --git a/spec/integration/client/client_spec.rb b/spec/integration/client/client_spec.rb
index e961b73d0d..62660bb852 100644
--- a/spec/integration/client/client_spec.rb
+++ b/spec/integration/client/client_spec.rb
@@ -246,6 +246,7 @@ EOM
file 'config/client.rb', <<EOM
local_mode true
cookbook_path "#{path_to('cookbooks')}"
+audit_mode :enabled
EOM
end
diff --git a/spec/unit/application/client_spec.rb b/spec/unit/application/client_spec.rb
index e5cabcbc0e..3554b78c13 100644
--- a/spec/unit/application/client_spec.rb
+++ b/spec/unit/application/client_spec.rb
@@ -144,6 +144,10 @@ Enable chef-client interval runs by setting `:client_fork = true` in your config
describe "audit mode" do
shared_examples "experimental feature" do
+ before do
+ allow(Chef::Log).to receive(:warn)
+ end
+
it "emits a warning that audit mode is an experimental feature" do
expect(Chef::Log).to receive(:warn).with(/Audit mode is an experimental feature/)
app.reconfigure