Add a test for the redirect loop limit. It would be great if someone
authorclaudio <claudio@openbsd.org>
Wed, 10 Nov 2021 09:31:19 +0000 (09:31 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 10 Nov 2021 09:31:19 +0000 (09:31 +0000)
rewrote these tests to use a local HTTP server instead of some random
external ones.

regress/usr.sbin/rpki-client/libressl/Makefile

index 6339b14..ab1f912 100644 (file)
@@ -16,6 +16,7 @@ run-regress-test-http: test-http
        ./test-http https://${SERVER}/HTTP/ChunkedScript chunk.out
        ./test-http https://${SERVER}/HTTP/300/307.html redir.out
        sha256 -c ${.CURDIR}/test-http.sum
+       ./test-http 'https://demo.cyotek.com/features/redirectchaintest.php?index=1' redirloop.out 2>&1 | grep -q 'Too many redirections requested'
 .else
        # server ${SERVER} not reachable
        @echo SKIPPED