diff options
author | Luke Kanies <luke@reductivelabs.com> | 2010-03-25 14:55:51 -0700 |
---|---|---|
committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
commit | 2a60e1e5eef42a1a0f11574d69f3c90be22e52ca (patch) | |
tree | bf56971411d00fb8b6391f1140aa2ed2f8d378a1 /spec/unit/resource/catalog.rb | |
parent | 626945bb33fa0b294100414c058a1f4d2b3e0039 (diff) | |
download | puppet-2a60e1e5eef42a1a0f11574d69f3c90be22e52ca.tar.gz puppet-2a60e1e5eef42a1a0f11574d69f3c90be22e52ca.tar.xz puppet-2a60e1e5eef42a1a0f11574d69f3c90be22e52ca.zip |
Adding :catalog_terminus setting
This will rarely be used, but it enables even more architectural
flexibility, such as precompiling catalogs and storing them in memcached
or equivalent. With this setup, a single host can probably serve all
catalogs and you would then just have as many compiling hosts as
needed.
Signed-off-by: Luke Kanies <luke@reductivelabs.com>
Diffstat (limited to 'spec/unit/resource/catalog.rb')
-rwxr-xr-x | spec/unit/resource/catalog.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/unit/resource/catalog.rb b/spec/unit/resource/catalog.rb index 6c6af24ce..853bf9bee 100755 --- a/spec/unit/resource/catalog.rb +++ b/spec/unit/resource/catalog.rb @@ -830,8 +830,14 @@ describe Puppet::Resource::Catalog, "when compiling" do Puppet::Resource::Catalog.find(:myconfig) end - it "should default to the 'compiler' terminus" do - Puppet::Resource::Catalog.indirection.terminus_class.should == :compiler + it "should use the value of the 'catalog_terminus' setting to determine its terminus class" do + Puppet.settings[:catalog_terminus] = "rest" + Puppet::Resource::Catalog.indirection.terminus_class.should == :rest + end + + it "should allow the terminus class to be set manually" do + Puppet::Resource::Catalog.indirection.terminus_class = :rest + Puppet::Resource::Catalog.indirection.terminus_class.should == :rest end after do |