[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.6-1-356-g5718585

James Turnbull james at lovedthanlost.net
Fri Jan 23 14:21:21 UTC 2009


The following commit has been merged in the master branch:
commit 9c31db9500d79f29c5e5e1419ab4f616a7a2ed88
Author: Paul Nasrat <pnasrat at googlemail.com>
Date:   Wed Oct 8 15:11:44 2008 +0100

    Add failing test for plugin with file and recurse

diff --git a/spec/unit/network/handler/fileserver.rb b/spec/unit/network/handler/fileserver.rb
index cce00d3..4ba8e71 100644
--- a/spec/unit/network/handler/fileserver.rb
+++ b/spec/unit/network/handler/fileserver.rb
@@ -36,6 +36,10 @@ describe Puppet::Network::Handler::FileServer do
         @mount.list("/aFile", false, "false").should == [["/", "file"]]
     end
 
+    it "should list a file within a directory when given the file path with recursion" do
+        @mount.list("/aFile", true, "false").should == [["/", "file"]]
+    end
+
     it "should return nil for a non-existent path" do
         @mount.list("/no_such_file", false, false).should be(nil)
     end
@@ -152,6 +156,10 @@ describe Puppet::Network::Handler::FileServer do
             @mount = Puppet::Network::Handler::FileServer::PluginMount.new(PLUGINS)
             @mount.allow("*")
         end
+
+        it "should list a file within a directory when given the file path with recursion" do
+            @mount.list("facter/fact.rb", true, "false").should == [["/", "file"], ["/", "file"]]
+         end
         
         it "should return a merged view of all plugins for all modules" do
             list = @mount.list("facter",true,false)

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list