Closed andsel closed 9 months ago
Create a rakefile that invokes the download method on an url that has redirect, test_download_file.rake in this project root, as:
test_download_file.rake
import "lib/logstash/devutils/rake/vendor.rake" task "test_download" do output = "vendor/collectd-5.4.2.tar.gz" url = "https://github.com/collectd/collectd/archive/refs/tags/collectd-5.4.2.tar.gz" actual_sha1 = download(url, output) end
and execute the task as:
rake --rakefile test_download_file.rake test_download
Checking the content of vendor/collectd-5.4.2.tar.gz would result in empty file
vendor/collectd-5.4.2.tar.gz
Create a rakefile that invokes the download method on an url that has redirect,
test_download_file.rake
in this project root, as:and execute the task as:
Checking the content of
vendor/collectd-5.4.2.tar.gz
would result in empty file