summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-07-31 18:40:05 +0200
committerMichael Vogt <mvo@debian.org>2014-07-31 18:40:05 +0200
commitc5fced388848b967f0ce076656cad5366517f981 (patch)
treeb49be7020180323cc592f53c6c8b68ec21647b69 /test/integration
parent6d979490c13e9d8004942507c99d152c22184a27 (diff)
ensure InRelease->Release is transactional as well
Diffstat (limited to 'test/integration')
-rwxr-xr-xtest/integration/test-apt-update-rollback18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/integration/test-apt-update-rollback b/test/integration/test-apt-update-rollback
index 9771f0edc..c16e4f480 100755
--- a/test/integration/test-apt-update-rollback
+++ b/test/integration/test-apt-update-rollback
@@ -150,6 +150,22 @@ E: Some index files failed to download. They have been ignored, or old ones used
E: There are problems and -y was used without --force-yes" aptget install -qq -y old
}
+test_inrelease_to_unauth_inrelease() {
+ msgmsg "Test InRelease to InRelease without sig"
+ create_fresh_archive
+ signreleasefiles 'Marvin Paranoid'
+ avoid_ims_hit
+
+ testsuccess aptget update -qq
+
+ testequal "WARNING: The following packages cannot be authenticated!
+ old
+E: There are problems and -y was used without --force-yes" aptget install -qq -y old
+
+ testfailure ls rootdir/var/lib/apt/lists/*_InRelease
+ testsuccess ls rootdir/var/lib/apt/lists/*_Release
+}
+
TESTDIR=$(readlink -f $(dirname $0))
. $TESTDIR/framework
@@ -179,3 +195,5 @@ test_inreleae_to_valid_release
test_inreleae_to_release_reverts_all
test_unauthenticated_to_invalid_inrelease
+
+test_inrelease_to_unauth_inrelease