Issue #9544 has been updated by Michael Stahnke.

Status changed from Merged - Pending Release to Closed

released in 2.7.10rc1
----------------------------------------
Bug #9544: package spec may fail if not run as root
https://projects.puppetlabs.com/issues/9544

Author: Stefan Schulte
Status: Closed
Priority: Low
Assignee: Stefan Schulte
Category: 
Target version: 2.7.10
Affected Puppet version: 
Keywords: 
Branch: https://github.com/stschulte/puppet/tree/ticket/2.7.x/9544


The specfile `spec/integration/provider/package_spec.rb` seems to test the 
instances method of the appropiate package provider (depending on the system 
that is running the test). The test can fail if the `instances` method requires 
extra privileges the user who is running the tests does not have.

On my gentoo system I get the following error:

    1) Package provider portage should be able to get a list of existing 
packages
         Failure/Error: provider.instances.each do |package|
         Puppet::Error:
           Execution of '/usr/bin/eix-update' returned 1: You must be in the 
portage group to update the database.
           Set SKIP_PERMISSION_TESTS=true to skip this test (e.g. if you use 
NSS/LDAP).
         # ./lib/puppet/provider/package/portage.rb:46:in `instances'
         # ./spec/integration/provider/package_spec.rb:26



-- 
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