Commit a3651a03 authored by Willi Rath's avatar Willi Rath

Expect follow redirects in curl-related tests

parent a2e7e6a2
......@@ -138,19 +138,19 @@ git pull
git lfs pull
git lfs track "data/**" "suppl_data/**" "extra_data/**"
curl -o "data/nao_station_monthly.txt" \
curl -L -o "data/nao_station_monthly.txt" \
"https://www.example.com/files/nao_station_monthly.txt"
curl -o "data/nao_station_djfm.txt" \
curl -L -o "data/nao_station_djfm.txt" \
"https://www.example.com/files/nao_station_djfm.txt"
curl -o "data/nao_station_annual.txt" \
curl -L -o "data/nao_station_annual.txt" \
"https://www.example.com/files/nao_station_annual.txt"
wget -nv -r -c -np -nH --cut-dirs=2 --accept "*.nc,*.cdf,*.nc.gz" -P "data" \
"https://www.example.com/"
wget -nv -r -c -np -nH --cut-dirs=2 --user="$STH_USER" --password="$STH_PWD" \
--accept "*.nc" -P "data" "https://www.example.com/restricted/"
curl -o "doc/doc_01.html" \
curl -L -o "doc/doc_01.html" \
"https://www.example.com/doc_01.html"
curl -o "doc/doc_02.html" \
curl -L -o "doc/doc_02.html" \
"https://www.example.com/doc_02.html"
gunzip data/*.gz
......
......@@ -11,7 +11,7 @@ def test_base_class_generates_empty_string():
def test_curl_single_file_rendering():
yaml_dict = {"prefix": "pref", "file_name": "fn", "url": "http://url"}
target_string = "curl -o \"pref/fn\" \"http://url\"\n"
target_string = "curl -L -o \"pref/fn\" \"http://url\"\n"
renderer = data_repo_renderer.CurlSingleFile(yaml_dict=yaml_dict)
assert renderer.__str__ == target_string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment