Bug #3309
Unit tests error: NoMethodError: Internal error: The :group setting for must be 'service'
| Status: | Accepted | Start: | 02/27/2010 | |
|---|---|---|---|---|
| Priority: | Low | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | testing | |||
| Target version: | - | |||
| Affected version: | 0.25.4 | Branch: | ||
| Keywords: | ||||
| Votes: | 0 |
Description
While trying to run the puppet unittest on Ubuntu Lucid the following error was thrown:
28) Error:
test_mkdir(TestSettings):
Puppet::Util::Settings::FileSetting::SettingError: Internal error: The :group setting for must be 'service', not 'daemon'
/usr/lib/ruby/1.8/puppet/util/settings/file_setting.rb:20:in `group='
/usr/lib/ruby/1.8/puppet/util/settings/setting.rb:44:in `send'
/usr/lib/ruby/1.8/puppet/util/settings/setting.rb:44:in `initialize'
/usr/lib/ruby/1.8/puppet/util/settings/setting.rb:38:in `each'
/usr/lib/ruby/1.8/puppet/util/settings/setting.rb:38:in `initialize'
/usr/lib/ruby/1.8/puppet/util/settings.rb:405:in `new'
/usr/lib/ruby/1.8/puppet/util/settings.rb:405:in `newsetting'
/usr/lib/ruby/1.8/puppet/util/settings.rb:538:in `setdefaults'
/usr/lib/ruby/1.8/puppet/util/settings.rb:523:in `each'
/usr/lib/ruby/1.8/puppet/util/settings.rb:523:in `setdefaults'
./util/settings.rb:407:in `test_mkdir'
/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'
There are similar other errors in other tests:
- test_no_modify_root(TestSettings):
- test_writingfiles(TestSettings):
I’ve attached the complete log file.
Related issues
| related to Puppet - Refactor #2969: Convert Test::Unit tests to RSpec | Accepted | 12/20/2009 | ||
| related to Puppet - Bug #3077: Some of the unit tests in the test (not spec) directory w... | Closed | 01/16/2010 |
History
Updated by Markus Roberts 6 months ago
- Category set to testing
- Status changed from Unreviewed to Accepted
- Priority changed from Normal to Low
Note that these are errors in the older unit tests not the current spec/unit tests. The correct resolution is to bring the tests up to date (#2969).