summaryrefslogtreecommitdiffstats
path: root/spec/unit/util
diff options
context:
space:
mode:
authorNick Lewis <nick@puppetlabs.com>2011-06-07 13:00:46 -0700
committerNick Lewis <nick@puppetlabs.com>2011-06-07 14:36:54 -0700
commit3f0dbb5fb7d9f4d88684fa07189270f42074e5f4 (patch)
treebe74d7e692c9d17dfe2b3acb661e4c11f5791aa3 /spec/unit/util
parentc260cf1c8f4850fb5e81616c1e4baa2a42c063e9 (diff)
downloadpuppet-3f0dbb5fb7d9f4d88684fa07189270f42074e5f4.tar.gz
puppet-3f0dbb5fb7d9f4d88684fa07189270f42074e5f4.tar.xz
puppet-3f0dbb5fb7d9f4d88684fa07189270f42074e5f4.zip
(#650) Allow symlinks for configuration directories
Previously, pointing a setting like 'confdir' at a symlink to a directory would replace the symlink with a directory. This was because files created by settings implicitly managed links, rather than following them. This behavior is now changed so that file settings will follow links. The behavior of these symlinks is the same as any other file resource. That is, if the target of the symlink doesn't exist, Puppet will consider this an error. Similarly, if the target of the symlink is a file, then the symlink will still be replaced with a directory, rather than replacing its target. Reviewed-By: Jacob Helwig <jacob@puppetlabs.com> Reviewed-By: Dominic Maraglia <dominic@puppetlabs.com>
Diffstat (limited to 'spec/unit/util')
-rwxr-xr-xspec/unit/util/settings/file_setting_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/util/settings/file_setting_spec.rb b/spec/unit/util/settings/file_setting_spec.rb
index dcfb6e3b1..1167e971d 100755
--- a/spec/unit/util/settings/file_setting_spec.rb
+++ b/spec/unit/util/settings/file_setting_spec.rb
@@ -249,6 +249,10 @@ describe Puppet::Util::Settings::FileSetting do
it "should tag the resource with 'settings'" do
@file.to_resource.should be_tagged("settings")
end
+
+ it "should set links to 'follow'" do
+ @file.to_resource[:links].should == :follow
+ end
end
end