-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testing augeas resources gives a permission denied error on linux and osx #21
Comments
Here's better output of the error I get:
|
Someone responded with some good information at https://groups.google.com/forum/#!topic/puppet-users/BVeNnpnh8OM Among other things the response says "the issue is with rspec-puppet-augeas trying to set up a fixture. Note that uid 119 is "puppet" on my system. So somewhere in there the rspec-puppet-augeas gem and puppet get confused about the context they're running in. I can't help you with that." |
Hi! Were you able to resolve this, @sirinek ? |
OK, this looks like it's come up a bunch before - root cause is because this tries to execute a puppet manifest, puppet will try make sure all the dirs it needs are in place (ssl, etc.). This looks like a duplicate of: This should have been fixed by 30fc5f0 I see a suggestion around for running fakeroot, but that doesn't seem to work for me (OS X).. will keep poking at this one.. |
Hey @nward, just now seeing this, sorry. I have not been able to work around the issue. I am doing my tests on RHEL7 like most of my puppet agents now instead of using my macbook, we don't run puppet on any Mac hosts, and when I move these tests to our CI setup they will be on RHEL anyway. |
On both OSX 10.12.6 and RHEL 7.3, testing my augeas resource throws an error trying to create temporary directories. The below was from using PDK on my OSX 10.12.6 system. I get the same issue when doing this on a RHEL7 host.
I am using PDK 1.3, and extra gems being used are rspec-puppet-augeas-0.4.0 and ruby-augeas-0.5.0.
Here's the code for ./spec/defines/etc_system_solaris_kernel_parameter_spec.rb:
The failure goes away when commenting out the it 'should change ip_squeue_enter' block.
In case it is necessary here is the code for the defined type I have in puppet:
The text was updated successfully, but these errors were encountered: