]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-602412-dequote-redirect
Merge branch 'debian/experimental-no-abi-break' into debian/sid
[apt.git] / test / integration / test-bug-602412-dequote-redirect
CommitLineData
7ea27d2a
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 -o aptwebserver::redirect::replace::/pool/=/newpool/ \
13 -o aptwebserver::redirect::replace::/dists/=/newdists/
14
15mv aptarchive/pool aptarchive/newpool
16mv aptarchive/dists aptarchive/newdists
17
18msgtest 'Test redirection works in' 'apt-get update'
0440d936 19testsuccess --nomsg aptget update
7ea27d2a
DK
20
21# check that I-M-S header is kept in redirections
22testequal 'Hit http://localhost:8080 unstable InRelease
23Hit http://localhost:8080 unstable/main Sources
24Hit http://localhost:8080 unstable/main amd64 Packages
25Hit http://localhost:8080 unstable/main Translation-en
26Reading package lists...' aptget update #-o debug::pkgacquire=1 -o debug::pkgacquire::worker=1
27
28msgtest 'Test redirection works in' 'package download'
ffcccd62 29testsuccess --nomsg aptget install unrelated --download-only -y