]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-releasefile-verification
Add new configallowinsecurerepositories to the test framework
[apt.git] / test / integration / test-releasefile-verification
index 9d34a521a45fe972e1e415147988c08e2e80102f..3765a4b1f42071a40c552789649d40705e62c770 100755 (executable)
@@ -11,7 +11,7 @@ buildaptarchive
 setupflataptarchive
 changetowebserver
 
-downloadfile "http://localhost:8080/_config/set/aptwebserver::support::range/false" '/dev/null' >/dev/null
+webserverconfig 'aptwebserver::support::range' 'false'
 
 prepare() {
        local DATE="${2:-now}"
@@ -235,10 +235,21 @@ runtest2() {
 " 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"
+msgmsg "Running test with deletion of $DELETEFILE"
 runtest
+
 DELETEFILE="Release.gpg"
+msgmsg "Running test with deletion of $DELETEFILE"
 runtest