diff options
author | Matt Robinson <matt@puppetlabs.com> | 2010-12-01 17:16:03 -0800 |
---|---|---|
committer | Matt Robinson <matt@puppetlabs.com> | 2010-12-01 17:16:03 -0800 |
commit | b27e9b4bd79c30c7910a02122069695044f05477 (patch) | |
tree | 410384b1046d6756949f544b1ab8c3d6e31ad8e6 /spec/unit | |
parent | af6e08c0a59db951502d0cf8c0ca24f5001e92f1 (diff) | |
download | puppet-b27e9b4bd79c30c7910a02122069695044f05477.tar.gz puppet-b27e9b4bd79c30c7910a02122069695044f05477.tar.xz puppet-b27e9b4bd79c30c7910a02122069695044f05477.zip |
[#5081] Revert "Fix #4349 - Parsing with ignoreimport=true was always loading site.pp"
The fix for #4349 caused --parse-only not to detect syntax errors when
--ignore-import was used by adding a return statement that bypassed the
initial import:
commit 760e418d254a8d2198d2c6eb466d783a5930ef47
def perform_initial_import
+ return if Puppet.settings[:ignoreimport]
The problem that #4349 fixed was more generally fixed in commit
99c1019e1d3402ec8e476dc859d5aaef82ec4f69 for ticket #4798 so the return
statement is no longer needed, so reverting the commit for #4349 does
not reintroduce the problem of an import loop error when running puppet
doc.
Paired-with: Jesse Wolfe
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/resource/type_collection_spec.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/spec/unit/resource/type_collection_spec.rb b/spec/unit/resource/type_collection_spec.rb index 577aea42b..ff4c22234 100644 --- a/spec/unit/resource/type_collection_spec.rb +++ b/spec/unit/resource/type_collection_spec.rb @@ -426,14 +426,6 @@ describe Puppet::Resource::TypeCollection do @parser.expects(:parse).raises ArgumentError lambda { @code.perform_initial_import }.should raise_error(Puppet::Error) end - - it "should not do anything if the ignore_import settings is set" do - Puppet.settings[:ignoreimport] = true - @parser.expects(:string=).never - @parser.expects(:file=).never - @parser.expects(:parse).never - @code.perform_initial_import - end end describe "when determining the configuration version" do |