Are you running the tests as root?  The problem may be that Puppet is
giving up permissions and as a result cannot read from the temporary
directories created earlier as root.

Do you have this problem if you run the tests as a non-root user?

-Jeff


On Sun, Jan 13, 2013 at 1:02 PM, John Julien <[email protected]> wrote:

> Hi,
> I am attempting to run the rspec tests on a freshly forked copy of Puppet
> from master.
>
> I was expecting a 100% success rate since I read no pull requests are
> merged unless they pass these tests.  I'm wondering if there might be
> something I'm missing in the setup of my dev environment because I got 1469
> failures.
>
> The failures seem to mostly be "File not found" and "Permission Denied"
>
> Here's an example test that fails.
>
> # rspec ./spec/integration/faces/ca_spec.rb
> /usr/local/dev/puppetsrc/puppet/lib/puppet/version.rb:10: warning: already
> initialized constant PUPPETVERSION
> Run options: exclude {:broken=>true}
>
> FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
>
> Failures:
>
>   1) Puppet::Face[:ca, v0.1.0]
>      Failure/Error: Puppet::SSL::CertificateAuthority.new
>      Errno::EACCES:
>        Permission denied -
> /tmp/rspecrun20130112-12540-19ypzxx/face-ca-ssldir20130112-12540-u835v1-0/ca/ca_key.pem
>      # ./lib/puppet/settings.rb:1024:in `initialize'
>      # ./lib/puppet/settings.rb:1024:in `open'
>      # ./lib/puppet/settings.rb:1024:in `writesub'
>      # ./lib/puppet/util.rb:59:in `withumask'
>      # ./lib/puppet/settings.rb:1023:in `writesub'
>      # ./lib/puppet/util/suidmanager.rb:79:in `asuser'
>      # ./lib/puppet/settings.rb:1016:in `writesub'
>      # ./lib/puppet/settings.rb:1002:in `write'
>      # ./lib/puppet/indirector/ssl_file.rb:162:in `write'
>      # ./lib/puppet/indirector/ssl_file.rb:98:in `save'
>      # ./lib/puppet/indirector/indirection.rb:266:in `save'
>      # ./lib/puppet/ssl/host.rb:147:in `generate_key'
>      # ./lib/puppet/ssl/host.rb:195:in `certificate'
>      # ./lib/puppet/ssl/certificate_authority.rb:248:in `setup'
>      # ./lib/puppet/ssl/certificate_authority.rb:170:in `initialize'
>      # ./spec/integration/faces/ca_spec.rb:20:in `new'
>      # ./spec/integration/faces/ca_spec.rb:20
>
> /tmp/rspecrun20130112-12540-19ypzxx does not exist on my system
>
> These are my permissions on /tmp
> drwxrwxrwt. 3 root root 4096 Jan 12 15:35 /tmp
>
> Anyone know why this might be failing?
>
> Thanks,
> John
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-dev/-/MIjH0Ie3OQwJ.
> 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-dev?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" 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-dev?hl=en.

Reply via email to