summaryrefslogtreecommitdiff
path: root/test/integration/test-apt-update-failure-propagation
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-11-19 16:00:33 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2015-11-19 17:13:56 +0100
commit87d6947d51717e8b0e975d913986161598a7259a (patch)
treeaa7dfd6a63cbfffd75ace2bafc00589449aa02e6 /test/integration/test-apt-update-failure-propagation
parentbc7a59dded57338e9b5e523726b246dbdd4e0935 (diff)
tests: use quiet level 0 by default in tests
Git-Dch: Ignore
Diffstat (limited to 'test/integration/test-apt-update-failure-propagation')
-rwxr-xr-xtest/integration/test-apt-update-failure-propagation9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/integration/test-apt-update-failure-propagation b/test/integration/test-apt-update-failure-propagation
index f144e9968..b68d85044 100755
--- a/test/integration/test-apt-update-failure-propagation
+++ b/test/integration/test-apt-update-failure-propagation
@@ -28,7 +28,7 @@ done
pretest() {
rm -rf rootdir/var/lib/apt/lists
- testsuccessequal 'N: Unable to locate package foo' aptcache policy foo -q=0
+ testsuccessequal 'N: Unable to locate package foo' aptcache policy foo
}
pretest
testsuccess aptget update
@@ -43,8 +43,10 @@ testsuccessequal "foo:
pretest
mv aptarchive/dists/stable aptarchive/dists/stable.good
-testfailuremsg "E: The repository 'https://localhost:${APTHTTPSPORT} stable Release' does not have a Release file." apt update
-testfailure aptget update -q=0 --no-allow-insecure-repositories
+testfailuremsg "E: The repository 'https://localhost:${APTHTTPSPORT} stable Release' does not have a Release file.
+N: Updating such a repository securily is impossible and therefore disabled by default.
+N: See apt-secure(8) manpage for repository creation and user configuration details." apt update
+testfailure aptget update --no-allow-insecure-repositories
testequalor2 "Hit:1 http://localhost:${APTHTTPPORT} sid InRelease
Ign:2 https://localhost:${APTHTTPSPORT} stable InRelease
404 Not Found
@@ -77,6 +79,7 @@ posttest
pretest
rm "${NEWMETHODS}/https"
testfailuremsg "E: The method driver ${TMPWORKINGDIRECTORY}/rootdir/usr/lib/apt/methods/https could not be found.
+N: Is the package apt-transport-https installed?
W: Failed to fetch https://localhost:${APTHTTPSPORT}/dists/stable/InRelease
E: Some index files failed to download. They have been ignored, or old ones used instead." aptget update
posttest