Project

General

Profile

« Previous | Next » 

Revision 4d5fc803

Added by Dmitri Dolguikh almost 9 years ago

fixes #10941: fixed puppet class caching

View differences:

test/puppet/class_scanner_eparser_test.rb
return unless Puppet::PUPPETVERSION.to_f >= 3.2
Proxy::Puppet::Plugin.load_test_settings(:use_cache => true)
Proxy::Puppet::PuppetCache.stubs(:read_from_cache).returns('./test/fixtures/modules_include' =>
{ 'testinclude' =>
{ :timestamp => Time.now,
:manifest => [[Proxy::Puppet::PuppetClass.new('testinclude')],
[Proxy::Puppet::PuppetClass.new('testinclude::check::cache')]] }})
Proxy::Puppet::PuppetCache.stubs(:read_from_cache).returns(
'./test/fixtures/modules_include' => { 'testinclude' => { 'timestamp' => Time.now.to_i,
'manifest' => [[Proxy::Puppet::PuppetClass.new('testinclude')],
[Proxy::Puppet::PuppetClass.new('testinclude::check::cache')]] }})
Proxy::Puppet::PuppetCache.stubs(:write_to_cache)
klasses = Proxy::Puppet::ClassScannerEParser.scan_directory('./test/fixtures/modules_include', "example_env")

Also available in: Unified diff