diff options
author | Thom May <thom@chef.io> | 2015-11-09 14:59:01 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2015-11-09 15:04:04 +0000 |
commit | db8cda192518f7d3658573cb7974eb8a6e3dd6d1 (patch) | |
tree | 73ee6f11c120e0f15c7c2be1fd311725f9ad40b6 /spec/support/shared/unit | |
parent | 28487132e3d5469c07cbe790fb46edfd555d1c12 (diff) | |
download | chef-db8cda192518f7d3658573cb7974eb8a6e3dd6d1.tar.gz |
respond to review comments
the logic is now:
if the resource is not sensitive, and if it's explicitly requested to be
streamed or if the log level is info or debug, then we'll consider
streaming it.
If we're configured to send the output to the events stream, we'll do
so.
Otherwise, if we're not daemonized and have a TTY, we'll go to STDOUT
Diffstat (limited to 'spec/support/shared/unit')
-rw-r--r-- | spec/support/shared/unit/execute_resource.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/shared/unit/execute_resource.rb b/spec/support/shared/unit/execute_resource.rb index e969a2ebd5..3a88ff8890 100644 --- a/spec/support/shared/unit/execute_resource.rb +++ b/spec/support/shared/unit/execute_resource.rb @@ -111,6 +111,11 @@ shared_examples_for "an execute resource" do expect(@resource.creates).to eql("something") end + it "should accept a boolean for live streaming" do + @resource.live_stream true + expect(@resource.live_stream).to be true + end + describe "when it has cwd, environment, group, path, return value, and a user" do before do @resource.command("grep") |