]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-bug-717891-abolute-uris-for-proxies
eipp: add Allow-Temporary-Remove-of-Essentials
[apt.git] / test / integration / test-bug-717891-abolute-uris-for-proxies
... / ...
CommitLineData
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'
15testfailure --nomsg aptget update --allow-insecure-repositories
16
17echo "Acquire::http::Proxy \"http://localhost:${APTHTTPPORT}\";" > rootdir/etc/apt/apt.conf.d/99proxy
18
19msgtest 'Check that requests to proxies are' 'absolute uris'
20testsuccess --nomsg aptget update
21
22testsuccessequal '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