diff options
| author | Brice Figureau <brice-puppet@daysofwonder.com> | 2010-11-12 13:41:00 +0100 |
|---|---|---|
| committer | Brice Figureau <brice-puppet@daysofwonder.com> | 2010-11-13 11:54:08 +0100 |
| commit | 8ab1aba853231a5e541346955dcd502a67992eb6 (patch) | |
| tree | 3b3485fa940aef4357802249b7abcb8fda703e36 /spec/unit | |
| parent | 4d31430275016c9abbd4f621e731ff2eeb1718e5 (diff) | |
| download | puppet-8ab1aba853231a5e541346955dcd502a67992eb6.tar.gz puppet-8ab1aba853231a5e541346955dcd502a67992eb6.tar.xz puppet-8ab1aba853231a5e541346955dcd502a67992eb6.zip | |
Fix #4339 - Allow puppet apply to save last run summary
Puppet apply inconditionally saves its last run summary
like puppet agent.
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'spec/unit')
| -rwxr-xr-x | spec/unit/application/apply_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/unit/application/apply_spec.rb b/spec/unit/application/apply_spec.rb index edb41b5c3..9dcfd5f2f 100755 --- a/spec/unit/application/apply_spec.rb +++ b/spec/unit/application/apply_spec.rb @@ -316,6 +316,17 @@ describe Puppet::Application::Apply do @apply.main end + it "should save the last run summary" do + configurer = stub_everything 'configurer' + Puppet::Configurer.expects(:new).returns configurer + Puppet.stubs(:[]).with(:noop).returns(false) + report = stub 'report' + @transaction.stubs(:report).returns(report) + + configurer.expects(:save_last_run_summary).with(report) + @apply.main + end + describe "with detailed_exitcodes" do it "should exit with report's computed exit status" do Puppet.stubs(:[]).with(:noop).returns(false) |
