tests: allow https repos

This commit is contained in:
Natanael Copa committed 2020-06-26 11:47:11 +02:00
1 parent 6331720282
commit 21ab1d3ce2
1 file changed
+4 -2
+4 -2
View File
@@ -31,8 +31,10 @@ setup() {
@test "repository list is correct" {
run docker run --rm alpine:$TAG cat /etc/apk/repositories
[ $status -eq 0 ]
[ "${lines[0]}" = "http://dl-cdn.alpinelinux.org/alpine/$BRANCH/main" ]
[ "${lines[1]}" = "http://dl-cdn.alpinelinux.org/alpine/$BRANCH/community" ]
[ "${lines[0]}" = "http://dl-cdn.alpinelinux.org/alpine/$BRANCH/main" ] \
|| [ "${lines[0]}" = "https://dl-cdn.alpinelinux.org/alpine/$BRANCH/main" ]
[ "${lines[1]}" = "http://dl-cdn.alpinelinux.org/alpine/$BRANCH/community" ] \
|| [ "${lines[1]}" = "https://dl-cdn.alpinelinux.org/alpine/$BRANCH/community" ]
[ "${lines[2]}" = "" ]
}