]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-717891-abolute-uris-for-proxies
Merge remote-tracking branch 'mvo/bugfix/update-progress-reporting' into debian/exper...
[apt.git] / test / integration / test-bug-717891-abolute-uris-for-proxies
CommitLineData
f2380a78
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64'
8
9buildsimplenativepackage 'unrelated' 'all' '0.5~squeeze1' 'unstable'
10
11setupaptarchive
12changetowebserver --request-absolute='uri'
13
14msgtest 'Check that absolute paths are' 'not accepted'
0440d936 15testfailure --nomsg aptget update
f2380a78
DK
16
17echo 'Acquire::http::Proxy "http://localhost:8080";' > rootdir/etc/apt/apt.conf.d/99proxy
18
19msgtest 'Check that requests to proxies are' 'absolute uris'
0440d936 20testsuccess --nomsg aptget update
f2380a78
DK
21
22testequal 'Reading package lists...
23Building dependency tree...
24The following NEW packages will be installed:
25 unrelated
260 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
27Inst unrelated (0.5~squeeze1 unstable [all])
28Conf unrelated (0.5~squeeze1 unstable [all])' aptget install unrelated -s