]>
git.saurik.com Git - apt.git/blob - test/integration/test-bug-623443-fail-on-bad-proxies
4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
7 configarchitecture 'amd64'
9 buildsimplenativepackage 'unrelated' 'all' '0.5~squeeze1' 'unstable'
11 setupaptarchive --no-update
14 testsuccess apt update
15 rm -rf rootdir/var/lib/apt/lists
17 export http_proxy=enrico:password@proxy-cache.localnet:3128
18 testfailure apt update
20 testsuccess grep 'Unsupported proxy configured' rootdir/tmp/testfailure.output
22 changetohttpswebserver
24 testsuccess apt update
25 rm -rf rootdir/var/lib/apt/lists
27 export http_proxy=enrico:password@proxy-cache.localnet:3128
28 testfailure apt update
30 testsuccess grep 'Unsupported proxy configured' rootdir/tmp/testfailure.output
32 echo 'Acquire::http::Proxy "foo
://example.org
";
33 Acquire::https::Proxy "DIRECT
";' > rootdir/etc/apt/apt.conf.d/proxy.conf
34 testsuccess apt update