|
|
|
|
@ -71,6 +71,14 @@ func TestStepDownload_Run(t *testing.T) {
|
|
|
|
|
toSha1(abs(t, "./test-fixtures/root/another.txt")) + ".lock",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{"double slashes on a local filesystem passes",
|
|
|
|
|
fields{Url: []string{abs(t, "./test-fixtures/root//another.txt")}},
|
|
|
|
|
multistep.ActionContinue,
|
|
|
|
|
[]string{
|
|
|
|
|
toSha1(abs(t, "./test-fixtures/root//another.txt")),
|
|
|
|
|
toSha1(abs(t, "./test-fixtures/root//another.txt")) + ".lock",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{"none checksum works, without a checksum",
|
|
|
|
|
fields{Url: []string{abs(t, "./test-fixtures/root/another.txt")}, ChecksumType: "none"},
|
|
|
|
|
multistep.ActionContinue,
|
|
|
|
|
|