summaryrefslogtreecommitdiffstats
path: root/test/client
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-12-11 18:16:52 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-12-11 18:16:52 +0000
commit37a059be9538bc90e09a17a45573fc44da6861b4 (patch)
tree466169ebd128df3d08ab561081e65f864dc8f208 /test/client
parent374c830a217cd69f28797d8a771b725a0346b32e (diff)
Most tests now pass in the whole system, but there are still about 8 cases that do not work. I am working on those now.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1904 980ebf18-57e1-0310-9a29-db15c13687c0
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()