]>
git.saurik.com Git - apt.git/blob - test/integration/test-apt-https-no-redirect
c91c78916ee965eedad706df2f90d1800ad66fba
4 TESTDIR
=$(readlink -f $(dirname $0))
8 configarchitecture
"i386"
10 insertpackage
'stable' 'apt' 'all' '1'
11 setupaptarchive
--no-update
13 echo 'alright' > aptarchive
/working
14 changetohttpswebserver
-o 'aptwebserver::redirect::replace::/redirectme/=http://localhost:8080/'
16 msgtest
'download of a file works via' 'http'
17 testsuccess
--nomsg downloadfile
'http://localhost:8080/working' httpfile
18 testfileequal httpfile
'alright'
20 msgtest
'download of a file works via' 'https'
21 testsuccess
--nomsg downloadfile
'https://localhost:4433/working' httpsfile
22 testfileequal httpsfile
'alright'
24 msgtest
'download of a file does not work if' 'https redirected to http'
25 testfailure
--nomsg downloadfile
'https://localhost:4433/redirectme/working' redirectfile
27 msgtest
'libcurl has forbidden access in last request to' 'http resource'
28 testsuccess
--nomsg grep -q -E -- 'Protocol "?http"? not supported or disabled in libcurl' rootdir
/tmp
/testfailure.output