diff options
| author | Luke Kanies <luke@madstop.com> | 2008-03-16 17:52:46 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-03-16 17:52:46 -0500 |
| commit | 4a45a1da0653f18df6bd41b009a30387df697909 (patch) | |
| tree | 7b1012578d560e7f5964c096f686e1108877450a /spec/unit/node.rb | |
| parent | f3a304c557c096b5dbf319671cb84e5611eee30f (diff) | |
| download | puppet-4a45a1da0653f18df6bd41b009a30387df697909.tar.gz puppet-4a45a1da0653f18df6bd41b009a30387df697909.tar.xz puppet-4a45a1da0653f18df6bd41b009a30387df697909.zip | |
Caching node information in yaml (I figured caching in memory will
cause ever-larger memory growth), and changing the external node
terminus to use the version of the facts as their version. This
will usually result in the cached node information being used,
instead of always hitting the external node app during file
serving. Note that if the facts aren't changed by the client,
then this will result in the cached node being used, but at this
point, the client always updates its facts. (#1130)
Diffstat (limited to 'spec/unit/node.rb')
| -rwxr-xr-x | spec/unit/node.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/node.rb b/spec/unit/node.rb index 0ce702936..4861cb9e3 100755 --- a/spec/unit/node.rb +++ b/spec/unit/node.rb @@ -127,6 +127,10 @@ describe Puppet::Node, " when indirecting" do Puppet::Node.indirection.terminus_class.should == :plain end + it "should use yaml for caching" do + Puppet::Node.indirection.cache_class.should == :yaml + end + after do Puppet::Indirector::Indirection.clear_cache end |
