]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-bug-596498-trusted-unsigned-repo
Merge remote-tracking branch 'mvo/feature/hash-stats' into debian/experimental
[apt.git] / test / integration / test-bug-596498-trusted-unsigned-repo
index 5c643c40e1af3f64a0bfe916fe956779a67e8817..06c9c82854e09a198a5aceffa86ef103c7489347 100755 (executable)
@@ -21,6 +21,9 @@ DEBFILE='rootdir/etc/apt/sources.list.d/apt-test-unstable-deb.list'
 testequal "$PKGTEXT
 Download complete and in download only mode" aptget install cool --assume-no -d
 
+testequal "$PKGTEXT
+Download complete and in download only mode" aptget install cool --assume-no -d --allow-unauthenticated
+
 sed -i -e 's#deb#deb [trusted=no]#' $DEBFILE
 aptgetupdate
 
@@ -40,6 +43,12 @@ WARNING: The following packages cannot be authenticated!
 Install these packages without verification? [y/N] N
 E: Some packages could not be authenticated" aptget install cool --assume-no -d
 
+testequal "$PKGTEXT
+WARNING: The following packages cannot be authenticated!
+  cool
+Authentication warning overridden.
+Download complete and in download only mode" aptget install cool --assume-no -d --allow-unauthenticated
+
 sed -i -e 's#deb#deb [trusted=yes]#' $DEBFILE
 aptgetupdate