]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-623443-fail-on-bad-proxies
Merge commit 'e2073b0276226b625897ef475f225bf8f508719e' as 'triehash'
[apt.git] / test / integration / test-bug-623443-fail-on-bad-proxies
CommitLineData
ece81b75
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 --no-update
12changetowebserver
13
14testsuccess apt update
15rm -rf rootdir/var/lib/apt/lists
16
17export http_proxy=enrico:password@proxy-cache.localnet:3128
18testfailure apt update
19unset http_proxy
20testsuccess grep 'Unsupported proxy configured' rootdir/tmp/testfailure.output
21
22changetohttpswebserver
23
24testsuccess apt update
25rm -rf rootdir/var/lib/apt/lists
26
27export http_proxy=enrico:password@proxy-cache.localnet:3128
28testfailure apt update
29unset http_proxy
30testsuccess grep 'Unsupported proxy configured' rootdir/tmp/testfailure.output
31
d1bdb73a
DK
32echo 'Acquire::http::Proxy "foo://example.org";
33Acquire::https::Proxy "DIRECT";' > rootdir/etc/apt/apt.conf.d/proxy.conf
34testsuccess apt update