From 77c21fab30d62e06360951946fc7db3c56add12f Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 20 Apr 2021 13:05:09 +0200 Subject: [PATCH] tests: abuild-fetch test http:// --- tests/abuild-fetch.bats | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/abuild-fetch.bats b/tests/abuild-fetch.bats index af25839..e7838bd 100644 --- a/tests/abuild-fetch.bats +++ b/tests/abuild-fetch.bats @@ -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