tests: abuild-fetch test http://

This commit is contained in:
Natanael Copa 2021-04-20 13:05:09 +02:00
parent 42a45c9cbc
commit 77c21fab30
1 changed files with 9 additions and 0 deletions

View File

@ -51,6 +51,10 @@ teardown() {
[ $status -ne 0 ]
}
@test "abuild-fetch: that --insecure is passed for http://" {
$ABUILD_FETCH -d "$tmpdir" http://example.com/non-existing | grep insecure
}
@test "abuild-fetch: test wget fallback" {
rm "$bindir"/curl
PATH="$bindir" $ABUILD_FETCH -d "$tmpdir" https://example.com/non-existing
@ -63,6 +67,11 @@ teardown() {
[ $status -ne 0 ]
}
@test "abuild-fetch: test that --no-check-certificate is passed to wget fallback with http://" {
rm "$bindir"/curl
PATH="$bindir" $ABUILD_FETCH -d "$tmpdir" http://example.com/non-existing | grep no-check-certificate
}
@test "abuild-fetch: test locking" {
fifo="$tmpdir"/fifo
mkfifo $fifo