diff options
| author | Luke Kanies <luke@madstop.com> | 2008-06-15 16:33:48 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-06-15 16:33:48 -0500 |
| commit | 5f600ddc04efd1c4faac9f63b3a07af5282be707 (patch) | |
| tree | 8b50d852445bdce96be411726c8d778847231d77 /spec | |
| parent | 575f37a0656f5a1f94fe6fb1b189d1701a98cadc (diff) | |
| download | puppet-5f600ddc04efd1c4faac9f63b3a07af5282be707.tar.gz puppet-5f600ddc04efd1c4faac9f63b3a07af5282be707.tar.xz puppet-5f600ddc04efd1c4faac9f63b3a07af5282be707.zip | |
Fixing #1168 (for 0.24.x) -- automatically downcasing the fqdn.
Also requiring that passed in certnames be downcased; the setting
system isn't currently flexible enough to automatically downcase
it for the user.
Diffstat (limited to 'spec')
| -rwxr-xr-x | spec/integration/defaults.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/integration/defaults.rb b/spec/integration/defaults.rb index b14a141fb..a07743679 100755 --- a/spec/integration/defaults.rb +++ b/spec/integration/defaults.rb @@ -5,8 +5,9 @@ require File.dirname(__FILE__) + '/../spec_helper' require 'puppet/defaults' describe "Puppet defaults" do + after { Puppet.settings.clear } + describe "when setting the :factpath" do - after { Puppet.settings.clear } it "should add the :factpath to Facter's search paths" do Facter.expects(:search).with("/my/fact/path") @@ -14,4 +15,9 @@ describe "Puppet defaults" do Puppet.settings[:factpath] = "/my/fact/path" end end + 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 end |
