]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-releasefile-verification
trusted=yes sources are secure, we just don't know why
[apt.git] / test / integration / test-releasefile-verification
index e558b83e8384fa639a3fd9666b7c6fc197aa8368..3765a4b1f42071a40c552789649d40705e62c770 100755 (executable)
@@ -235,10 +235,21 @@ runtest2() {
 " aptcache show apt
        failaptnew
 }
 " aptcache show apt
        failaptnew
 }
-runtest2
 
 
+# diable some protection by default and ensure we still do the verification
+# correctly
+cat > rootdir/etc/apt/apt.conf.d/weaken-security <<EOF
+Acquire::AllowInsecureRepositories "1";
+Acquire::AllowDowngradeToInsecureRepositories "1";
+EOF
+
+msgmsg "Runing base test"
+runtest2
 
 DELETEFILE="InRelease"
 
 DELETEFILE="InRelease"
+msgmsg "Running test with deletion of $DELETEFILE"
 runtest
 runtest
+
 DELETEFILE="Release.gpg"
 DELETEFILE="Release.gpg"
+msgmsg "Running test with deletion of $DELETEFILE"
 runtest
 runtest