X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/b53c9cea2902572822bbbece5bac236c1bbf846e..9e4464914bcc5c896d81f7ca1948f9bfbfb50886:/test/integration/test-apt-update-ims diff --git a/test/integration/test-apt-update-ims b/test/integration/test-apt-update-ims index 33b4ed1b9..80ef28093 100755 --- a/test/integration/test-apt-update-ims +++ b/test/integration/test-apt-update-ims @@ -25,7 +25,7 @@ runtest() { $TEST aptget update if [ "$1" = 'failure' ]; then # accept the outdated Release file so we can check Hit behaviour - "test${2:-success}" aptget update -o Acquire::Min-ValidTime=99999999999 + "test${2:-success}" aptget update -o Acquire::Min-ValidTime=9999999 fi listcurrentlistsdirectory > listsdir.lst testsuccess grep '_Packages\(\.gz\)\?$' listsdir.lst @@ -97,6 +97,7 @@ signreleasefiles msgmsg 'expired InRelease' EXPECT='Hit:1 http://localhost:8080 unstable InRelease +Reading package lists... E: Release file for http://localhost:8080/dists/unstable/InRelease is expired (invalid since). Updates for this repository will not be applied.' echo 'Acquire::GzipIndexes "0";' > rootdir/etc/apt/apt.conf.d/02compressindex runtest 'failure' @@ -107,6 +108,7 @@ msgmsg 'expired Release/Release.gpg' EXPECT='Ign:1 http://localhost:8080 unstable InRelease 404 Not Found Hit:2 http://localhost:8080 unstable Release +Reading package lists... E: Release file for http://localhost:8080/dists/unstable/Release is expired (invalid since). Updates for this repository will not be applied.' find aptarchive -name 'InRelease' -delete echo 'Acquire::GzipIndexes "0";' > rootdir/etc/apt/apt.conf.d/02compressindex @@ -120,6 +122,7 @@ EXPECT="Ign:1 http://localhost:8080 unstable InRelease Hit:2 http://localhost:8080 unstable Release Ign:3 http://localhost:8080 unstable Release.gpg 404 Not Found +Reading package lists... W: The data from 'http://localhost:8080 unstable Release' is not signed. Packages from that repository can not be authenticated. E: Release file for http://localhost:8080/dists/unstable/Release is expired (invalid since). Updates for this repository will not be applied." find aptarchive -name 'Release.gpg' -delete