summaryrefslogtreecommitdiffstats
path: root/test/client
diff options
context:
space:
mode:
Diffstat (limited to 'test/client')
-rwxr-xr-xtest/client/master.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/client/master.rb b/test/client/master.rb
index ddbee8467..f89d2cae8 100755
--- a/test/client/master.rb
+++ b/test/client/master.rb
@@ -128,6 +128,22 @@ class TestMasterClient < Test::Unit::TestCase
client.run
}
end
+
+ def test_download
+ source = tempfile()
+ dest = tempfile()
+ sfile = File.join(source, "file")
+ Dir.mkdir(source)
+ File.open(sfile, "w") {|f| f.puts "yay"}
+
+ files = []
+ assert_nothing_raised do
+
+ Puppet::Client::Master.download(:dest => dest, :source => source, :name => "testing") do |path|
+ files << path
+ end
+ end
+ end
def test_getplugins
Puppet[:pluginsource] = tempfile()