mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-23 07:22:53 +00:00
tests: abuild-fetch: test wget --no-check-certificate
This commit is contained in:
parent
c87b6a47fe
commit
0fe4de3663
@ -5,9 +5,10 @@ init_tests \
|
||||
abuild_fetch_help \
|
||||
abuild_fetch_curl_invocation \
|
||||
abuild_fetch_curl_failure \
|
||||
abuild_fetch_curl_insecure \
|
||||
abuild_fetch_curl_http \
|
||||
abuild_fetch_wget_fallback \
|
||||
abuild_fetch_wget_failure
|
||||
abuild_fetch_wget_failure \
|
||||
abuild_fetch_wget_http
|
||||
|
||||
create_fake_curl() {
|
||||
mkdir bin
|
||||
@ -64,7 +65,7 @@ abuild_fetch_curl_failure_body() {
|
||||
abuild-fetch https://example.com/non-existing
|
||||
}
|
||||
|
||||
abuild_fetch_curl_insecure_body() {
|
||||
abuild_fetch_curl_http_body() {
|
||||
create_fake_curl
|
||||
atf_check -s exit:0 \
|
||||
-o match:"--insecure" \
|
||||
@ -88,3 +89,11 @@ abuild_fetch_wget_failure_body() {
|
||||
abuild-fetch https://example.com/non-existing
|
||||
}
|
||||
|
||||
abuild_fetch_wget_http_body() {
|
||||
create_fake_wget
|
||||
PATH="$PWD/bin:$(atf_get_srcdir)/.." atf_check -s exit:0 \
|
||||
-o match:"--no-check-certificate" \
|
||||
-e empty \
|
||||
abuild-fetch http://example.com/non-existing
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user