diff options
author | Luke Kanies <luke@madstop.com> | 2008-06-16 10:56:55 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-06-16 10:56:55 -0500 |
commit | 49016bb29312bfeb6f41ce420159e6ffc477eebe (patch) | |
tree | 7ce6fcf5f2c37519617915a3e79d487bdf5296ce /spec | |
parent | 6b69a86e48be082a6d03ce69f2700c4c874e222f (diff) | |
parent | 5273b22b4fda6f9aa7a8366a1dfbae092594d391 (diff) | |
download | puppet-49016bb29312bfeb6f41ce420159e6ffc477eebe.tar.gz puppet-49016bb29312bfeb6f41ce420159e6ffc477eebe.tar.xz puppet-49016bb29312bfeb6f41ce420159e6ffc477eebe.zip |
Merge branch '0.24.x'
Conflicts:
CHANGELOG
lib/puppet/defaults.rb
spec/integration/defaults.rb
Diffstat (limited to 'spec')
-rwxr-xr-x | spec/integration/defaults.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/integration/defaults.rb b/spec/integration/defaults.rb index b6f6bf109..9d8ea30f7 100755 --- a/spec/integration/defaults.rb +++ b/spec/integration/defaults.rb @@ -6,7 +6,8 @@ require 'puppet/defaults' describe "Puppet defaults" do after { Puppet.settings.clear } - describe "when configuring the :crl" do + + describe "when setting the :factpath" do it "should add the :factpath to Facter's search paths" do Facter.expects(:search).with("/my/fact/path") @@ -14,8 +15,13 @@ describe "Puppet defaults" do end end - describe "when setting the :factpath" do + describe "when setting the :certname" do + it "should fail if the certname is not downcased" do + lambda { Puppet.settings[:certname] = "Host.Domain.Com" }.should raise_error(ArgumentError) + end + end + describe "when configuring the :crl" do it "should warn if :cacrl is set to false" do Puppet.expects(:warning) Puppet.settings[:cacrl] = 'false' |