summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-10-01 14:06:01 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-10-01 14:06:01 +0200
commite8b1db38cca29cbdc0116e567f0aa7a28034287b (patch)
treea1e5750ed9f6b12185365472d99e7a4c22ca47a9 /test
parentc99fe2e169243fc6e1a3278ce3768f0f521e260b (diff)
update test/integration/test-releasefile-verification
Diffstat (limited to 'test')
-rwxr-xr-xtest/integration/test-releasefile-verification13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/integration/test-releasefile-verification b/test/integration/test-releasefile-verification
index e558b83e8..3765a4b1f 100755
--- a/test/integration/test-releasefile-verification
+++ b/test/integration/test-releasefile-verification
@@ -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