]> git.saurik.com Git - apt.git/blob - test/integration/test-apt-redirect-loop
apt-key: warn instead of fail on unreadable keyrings
[apt.git] / test / integration / test-apt-redirect-loop
1 #!/bin/sh
2 set -e
3
4 TESTDIR="$(readlink -f "$(dirname "$0")")"
5 . "$TESTDIR/framework"
6
7 setupenvironment
8 configarchitecture "i386"
9
10 echo 'alright' > aptarchive/working
11 changetohttpswebserver
12 webserverconfig 'aptwebserver::redirect::replace::/redirectme3/' '/redirectme/'
13 webserverconfig 'aptwebserver::redirect::replace::/redirectme2/' '/redirectme3/'
14 webserverconfig 'aptwebserver::redirect::replace::/redirectme/' '/redirectme2/'
15
16 testfailure apthelper download-file "http://localhost:${APTHTTPPORT}/redirectme/working" httpfile
17 testsuccess grep 'Redirection loop encountered' rootdir/tmp/testfailure.output
18
19 testfailure apthelper download-file "https://localhost:${APTHTTPSPORT}/redirectme/working" httpsfile
20 testsuccess grep 'Redirection loop encountered' rootdir/tmp/testfailure.output