Issue #3523 has been updated by Mathias Gug.

In ubuntu the test suite is packaged as a separate binary package. The goal is 
to be able to run the test suite on a system with the puppet packages installed.

All of the test suite is installed in /usr/share/puppet-testsuite/ - see 
http://packages.ubuntu.com/lucid/all/puppet-testsuite/filelist

There are some assumptions in the test code about the location of the base test 
directory (the test string is hardcoded). So we need to patch the test code to 
pick up the correct location of the base test directory. 

One option could be to make the base test directory configurable (ex: run_test 
--base-dir=/usr/share/puppet-testsuite).
----------------------------------------
Bug #3523: Unit test error: 
test_data_parsing_and_generating(TestMailaliasAliasesProvider): 
Puppet::DevError: No fakedata matching /usr/share/test/data/types/mailalias/*
http://projects.puppetlabs.com/issues/3523

Author: Mathias Gug
Status: Needs more information
Priority: Normal
Assigned to: 
Category: testing
Target version: 
Affected version: 0.25.4
Keywords: 
Branch: 


While trying to run the puppet unittest on Ubuntu Lucid the following error was 
thrown:

  7) Error:
test_data_parsing_and_generating(TestMailaliasAliasesProvider):
Puppet::DevError: No fakedata matching /usr/share/test/data/types/mailalias/*
    /usr/share/puppet-testsuite/lib/puppettest/support/utils.rb:160:in 
`fakedata'
    ./ral/providers/mailalias/aliases.rb:50:in 
`test_data_parsing_and_generating'
    
/usr/lib/ruby/1.8/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in
 `__send__'
    
/usr/lib/ruby/1.8/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in
 `run'


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to