Conflicts:

        spec/unit/type/ssh_authorized_key.rb

Signed-off-by: Francois Deppierraz <[email protected]>
---
 spec/unit/type/ssh_authorized_key.rb |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/spec/unit/type/ssh_authorized_key.rb 
b/spec/unit/type/ssh_authorized_key.rb
index db38986..f1e9963 100755
--- a/spec/unit/type/ssh_authorized_key.rb
+++ b/spec/unit/type/ssh_authorized_key.rb
@@ -121,4 +121,13 @@ describe ssh_authorized_key do
             resource.should(:target).should == target
         end
     end
+
+    describe "when calling validate" do
+        it "should not crash on a non-existant user" do
+            resource = @class.create(
+                :name   => "Test",
+                :user   => "ihopesuchuserdoesnotexist")
+            proc { resource.validate }.should_not raise_error
+        end
+    end
 end
-- 
1.6.0.4


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