summaryrefslogtreecommitdiffstats
path: root/spec/unit/transaction
diff options
context:
space:
mode:
authorNick Lewis <nick@puppetlabs.com>2010-12-02 10:49:13 -0800
committerNick Lewis <nick@puppetlabs.com>2010-12-02 15:09:43 -0800
commit1131ad73078c3e3022b23ee8ab756b44c7de27c9 (patch)
treea0b8a00966ad0a8a6b38186bc6e8f787be1d29a5 /spec/unit/transaction
parentaf6e08c0a59db951502d0cf8c0ca24f5001e92f1 (diff)
downloadpuppet-1131ad73078c3e3022b23ee8ab756b44c7de27c9.tar.gz
puppet-1131ad73078c3e3022b23ee8ab756b44c7de27c9.tar.xz
puppet-1131ad73078c3e3022b23ee8ab756b44c7de27c9.zip
(#4943) Add puppet inspect application
"puppet inspect" will load the locally stored YAML catalog and record the current state of the audited properties in the catalog. It uses settings specified in the [agent] configuration section, and will send its inspect report to the specified server. Paired-With: Jesse Wolfe
Diffstat (limited to 'spec/unit/transaction')
-rwxr-xr-xspec/unit/transaction/report_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/unit/transaction/report_spec.rb b/spec/unit/transaction/report_spec.rb
index 7e0b0554b..77f82159b 100755
--- a/spec/unit/transaction/report_spec.rb
+++ b/spec/unit/transaction/report_spec.rb
@@ -24,6 +24,14 @@ describe Puppet::Transaction::Report do
Puppet::Transaction::Report.new.time.should == "mytime"
end
+ it "should have a default 'kind' of 'apply'" do
+ Puppet::Transaction::Report.new.kind.should == "apply"
+ end
+
+ it "should take a 'kind' as an argument" do
+ Puppet::Transaction::Report.new("inspect").kind.should == "inspect"
+ end
+
describe "when accepting logs" do
before do
@report = Puppet::Transaction::Report.new