testsuccess --nomsg aptget update
# check that I-M-S header is kept in redirections
- testsuccessequal "Hit $1 unstable InRelease
+ testsuccessequal "Hit:1 $1 unstable InRelease
Reading package lists..." aptget update
msgtest 'Test redirection works in' 'package download'
testsuccess --nomsg aptget install unrelated --download-only -y
}
-testrun 'http://localhost:8080'
+testrun "http://localhost:${APTHTTPPORT}"
rm -rf rootdir/var/lib/apt/lists rootdir/var/cache/apt/archives
changetohttpswebserver
-testrun 'https://localhost:4433'
+testrun "https://localhost:${APTHTTPSPORT}"