diff options
| author | Brice Figureau <brice-puppet@daysofwonder.com> | 2011-05-30 20:31:14 +0200 |
|---|---|---|
| committer | Jacob Helwig <jacob@puppetlabs.com> | 2011-07-26 14:04:28 -0700 |
| commit | 6401dfe5602fd39cc59ec1f1b3822110e4ad864a (patch) | |
| tree | ccea4f33b572c998cd4770feab3e6959f354b7eb /spec/unit/file_serving/configuration | |
| parent | 0c385f1fb436ab6f667693d347f711470305a019 (diff) | |
| download | puppet-6401dfe5602fd39cc59ec1f1b3822110e4ad864a.tar.gz puppet-6401dfe5602fd39cc59ec1f1b3822110e4ad864a.tar.xz puppet-6401dfe5602fd39cc59ec1f1b3822110e4ad864a.zip | |
Fix #6026 - security file should support inline comments
Auth.conf, namespaceauth.conf and fileserver.conf were not supporting
trailing inlined comments.
Also this commit fixes some indentation and error management.
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'spec/unit/file_serving/configuration')
| -rwxr-xr-x | spec/unit/file_serving/configuration/parser_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/unit/file_serving/configuration/parser_spec.rb b/spec/unit/file_serving/configuration/parser_spec.rb index 3d6b3e234..5ccfc5075 100755 --- a/spec/unit/file_serving/configuration/parser_spec.rb +++ b/spec/unit/file_serving/configuration/parser_spec.rb @@ -118,6 +118,14 @@ describe Puppet::FileServing::Configuration::Parser do @parser.parse end + it "should support inline comments" do + mock_file_content "[one]\nallow something \# will it work?\n" + + @mount.expects(:info) + @mount.expects(:allow).with("something") + @parser.parse + end + it "should tell the mount to deny any deny values from the section" do mock_file_content "[one]\ndeny something\n" |
