summaryrefslogtreecommitdiffstats
path: root/test/language/scope.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/language/scope.rb')
-rwxr-xr-xtest/language/scope.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/language/scope.rb b/test/language/scope.rb
index 77af950f5..32e1802a8 100755
--- a/test/language/scope.rb
+++ b/test/language/scope.rb
@@ -409,6 +409,9 @@ class TestScope < Test::Unit::TestCase
# run, whether it's in the same scope as a collection or a different
# scope.
def test_storeandcollect
+ catalog_cache_class = Puppet::Resource::Catalog.indirection.cache_class
+ facts_cache_class = Puppet::Node::Facts.indirection.cache_class
+ node_cache_class = Puppet::Node.indirection.cache_class
Puppet[:storeconfigs] = true
Puppet::Rails.init
sleep 1
@@ -442,6 +445,10 @@ Host <<||>>"
assert(flat.find{|o| o.name == name }, "Did not find #{name}")
end
}
+ Puppet[:storeconfigs] = false
+ Puppet::Resource::Catalog.cache_class = catalog_cache_class
+ Puppet::Node::Facts.cache_class = facts_cache_class
+ Puppet::Node.cache_class = node_cache_class
end
else
$stderr.puts "No ActiveRecord -- skipping collection tests"