Issue #2362 has been updated by Nigel Kersten.

actually, last thing was:
<pre>
>> I take it there are no tests for this code?
>
> I sat down and thought about it for a while and couldn't think of a
> test with any utility that actually checks whether the host OS is
> doing any name resolution.
>
> The closest thing I could think of was to ensure that
> Puppet::Util::POSIX#gid isn't actually being called, but that didn't
> feel very useful.

That's probably what I'd do, I suppose:

it "should not validate that users exist when a user is specified by
ID" do
  Puppet::Util::POSIX.expects(:uid).never
  ...
end
</pre>

which I haven't done yet. Will have that done soon.
----------------------------------------
Bug #2362: Puppet still does name lookups when supplied with a numeric uid/gid 
for file resources.
http://projects.reductivelabs.com/issues/2362

Author: Nigel Kersten
Status: Accepted
Priority: Normal
Assigned to: Nigel Kersten
Category: file
Target version: 0.25.0
Complexity: Easy
Affected version: 0.25.0
Keywords: 


If supplying a numeric gid/uid, Puppet shouldn't be checking if these are valid 
groups/users, as presumably you have a reason for supplying the numeric form 
rather than the name.

Patch coming.


-- 
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://reductivelabs.com/redmine/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