From 8ab1aba853231a5e541346955dcd502a67992eb6 Mon Sep 17 00:00:00 2001 From: Brice Figureau Date: Fri, 12 Nov 2010 13:41:00 +0100 Subject: 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 --- spec/unit/application/apply_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'spec') 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) -- cgit