]> git.saurik.com Git - apt.git/blame - test/integration/test-releasefile-verification
tests: update self-sigs on our test keys
[apt.git] / test / integration / test-releasefile-verification
CommitLineData
fe0f7911
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
fe0f7911
DK
6
7setupenvironment
8configarchitecture "i386"
9
5a23c56d 10export APT_DONT_SIGN='Release.gpg'
fe0f7911
DK
11buildaptarchive
12setupflataptarchive
13changetowebserver
14
15prepare() {
16 local DATE="${2:-now}"
331e8396
DK
17 if [ "$DATE" = 'now' ]; then
18 if [ "$1" = "${PKGFILE}-new" ]; then
19 DATE='now - 1 day'
20 else
21 DATE='now - 7 day'
22 fi
fe0f7911
DK
23 fi
24 for release in $(find rootdir/var/lib/apt/lists 2> /dev/null); do
63c71412 25 touch -d 'now - 1 year' "$release"
fe0f7911 26 done
8de79b68 27 aptget clean
63c71412 28 cp "$1" aptarchive/Packages
fe0f7911 29 find aptarchive -name 'Release' -delete
331e8396 30 compressfile 'aptarchive/Packages' "$DATE"
89901946 31 generatereleasefiles "$DATE" 'now + 1 month'
fe0f7911
DK
32}
33
34installaptold() {
46e00c90 35 rm -rf rootdir/var/cache/apt/archives
6c0765c0 36 testsuccessequal "Reading package lists...
fe0f7911
DK
37Building dependency tree...
38Suggested packages:
9112f777 39 aptitude | synaptic | wajig dpkg-dev apt-doc bzip2 lzma python-apt
fe0f7911
DK
40The following NEW packages will be installed:
41 apt
420 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
43After this operation, 5370 kB of additional disk space will be used.
6c0765c0
DK
44Get:1 http://localhost:${APTHTTPPORT} apt 0.7.25.3
45Download complete and in download only mode" aptget install apt -dy
fe0f7911
DK
46}
47
48installaptnew() {
89901946 49 rm -rf rootdir/var/cache/apt/archives
6c0765c0 50 testsuccessequal "Reading package lists...
fe0f7911
DK
51Building dependency tree...
52Suggested packages:
9112f777 53 aptitude | synaptic | wajig dpkg-dev apt-doc bzip2 lzma python-apt
fe0f7911
DK
54The following NEW packages will be installed:
55 apt
560 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
57After this operation, 5808 kB of additional disk space will be used.
6c0765c0
DK
58Get:1 http://localhost:${APTHTTPPORT} apt 0.8.0~pre1
59Download complete and in download only mode" aptget install apt -dy
fe0f7911
DK
60}
61
62failaptold() {
25b86db1 63 testfailureequal 'Reading package lists...
fe0f7911
DK
64Building dependency tree...
65Suggested packages:
9112f777 66 aptitude | synaptic | wajig dpkg-dev apt-doc bzip2 lzma python-apt
fe0f7911
DK
67The following NEW packages will be installed:
68 apt
690 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
70After this operation, 5370 kB of additional disk space will be used.
71WARNING: The following packages cannot be authenticated!
72 apt
b381a482 73E: There were unauthenticated packages and -y was used without --allow-unauthenticated' aptget install apt -dy
fe0f7911
DK
74}
75
76failaptnew() {
25b86db1 77 testfailureequal 'Reading package lists...
fe0f7911
DK
78Building dependency tree...
79Suggested packages:
9112f777 80 aptitude | synaptic | wajig dpkg-dev apt-doc bzip2 lzma python-apt
fe0f7911
DK
81The following NEW packages will be installed:
82 apt
830 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
84After this operation, 5808 kB of additional disk space will be used.
85WARNING: The following packages cannot be authenticated!
86 apt
b381a482 87E: There were unauthenticated packages and -y was used without --allow-unauthenticated' aptget install apt -dy
fe0f7911
DK
88}
89
90# fake our downloadable file
91touch aptarchive/apt.deb
92
63c71412 93PKGFILE="${TESTDIR}/$(echo "$(basename "$0")" | sed 's#^test-#Packages-#')"
fe0f7911 94
6bf93605 95updatewithwarnings() {
4e03c47d 96 testwarning aptget update -o Debug::pkgAcquire::Worker=1 -o Debug::Acquire::gpgv=1
6bf93605 97 testsuccess grep -E "$1" rootdir/tmp/testwarning.output
331e8396
DK
98}
99
fe0f7911 100runtest() {
8fa99570 101 msgmsg 'Cold archive signed by' 'Joe Sixpack'
63c71412 102 prepare "${PKGFILE}"
fe0f7911
DK
103 rm -rf rootdir/var/lib/apt/lists
104 signreleasefiles 'Joe Sixpack'
8fa99570 105 successfulaptgetupdate
63c71412 106 testsuccessequal "$(cat "${PKGFILE}")
fe0f7911
DK
107" aptcache show apt
108 installaptold
109
8fa99570 110 msgmsg 'Good warm archive signed by' 'Joe Sixpack'
63c71412 111 prepare "${PKGFILE}-new"
fe0f7911 112 signreleasefiles 'Joe Sixpack'
8fa99570 113 successfulaptgetupdate
63c71412 114 testsuccessequal "$(cat "${PKGFILE}-new")
fe0f7911
DK
115" aptcache show apt
116 installaptnew
117
8fa99570 118 msgmsg 'Cold archive signed by' 'Rex Expired'
63c71412 119 prepare "${PKGFILE}"
29a59c46
DK
120 rm -rf rootdir/var/lib/apt/lists
121 cp keys/rexexpired.pub rootdir/etc/apt/trusted.gpg.d/rexexpired.gpg
122 signreleasefiles 'Rex Expired'
f13b413a 123 updatewithwarnings '^W: .* EXPKEYSIG'
63c71412 124 testsuccessequal "$(cat "${PKGFILE}")
29a59c46
DK
125" aptcache show apt
126 failaptold
fb7b11eb 127 rm -f rootdir/etc/apt/trusted.gpg.d/rexexpired.gpg
fe0f7911 128
1af227c2
DK
129 msgmsg 'Cold archive expired signed by' 'Joe Sixpack'
130 if dpkg --compare-versions "$(aptkey adv --version | head -n 2 | tail -n 1 | cut -d' ' -f 3)" '>=' '2.1' >/dev/null 2>&1; then
131 touch rootdir/etc/apt/apt.conf.d/99gnupg2
132 elif gpg2 --version >/dev/null 2>&1; then
133 echo 'Apt::Key::gpgcommand "gpg2";' > rootdir/etc/apt/apt.conf.d/99gnupg2
134 if ! dpkg --compare-versions "$(aptkey adv --version | head -n 2 | tail -n 1 | cut -d' ' -f 3)" '>=' '2.1' >/dev/null 2>&1; then
135 rm rootdir/etc/apt/apt.conf.d/99gnupg2
136 fi
137 fi
138 if [ -e rootdir/etc/apt/apt.conf.d/99gnupg2 ]; then
139 prepare "${PKGFILE}"
140 rm -rf rootdir/var/lib/apt/lists
141 signreleasefiles 'Joe Sixpack' 'aptarchive' --faked-system-time "20070924T154812" --default-sig-expire 2016-04-01
1af227c2
DK
142 updatewithwarnings '^W: .* EXPSIG'
143 testsuccessequal "$(cat "${PKGFILE}")
144" aptcache show apt
145 failaptold
146 rm -f rootdir/etc/apt/apt.conf.d/99gnupg2
147 else
148 msgskip 'Not a new enough gpg available providing --fake-system-time'
149 fi
150
fb7b11eb
DK
151 msgmsg 'Cold archive signed by' 'Joe Sixpack,Marvin Paranoid'
152 prepare "${PKGFILE}"
153 rm -rf rootdir/var/lib/apt/lists
154 signreleasefiles 'Joe Sixpack,Marvin Paranoid'
fb7b11eb
DK
155 successfulaptgetupdate 'NO_PUBKEY'
156 testsuccessequal "$(cat "${PKGFILE}")
157" aptcache show apt
158 installaptold
159
160 msgmsg 'Cold archive signed by' 'Joe Sixpack,Rex Expired'
161 prepare "${PKGFILE}"
162 rm -rf rootdir/var/lib/apt/lists
163 signreleasefiles 'Joe Sixpack,Rex Expired'
fb7b11eb
DK
164 cp keys/rexexpired.pub rootdir/etc/apt/trusted.gpg.d/rexexpired.gpg
165 successfulaptgetupdate 'EXPKEYSIG'
166 rm -f rootdir/etc/apt/trusted.gpg.d/rexexpired.gpg
167 testsuccessequal "$(cat "${PKGFILE}")
168" aptcache show apt
169 installaptold
170
8fa99570 171 msgmsg 'Cold archive signed by' 'Marvin Paranoid'
63c71412 172 prepare "${PKGFILE}"
fe0f7911
DK
173 rm -rf rootdir/var/lib/apt/lists
174 signreleasefiles 'Marvin Paranoid'
6bf93605 175 updatewithwarnings '^W: .* NO_PUBKEY'
63c71412 176 testsuccessequal "$(cat "${PKGFILE}")
fe0f7911
DK
177" aptcache show apt
178 failaptold
179
8fa99570 180 msgmsg 'Bad warm archive signed by' 'Joe Sixpack'
63c71412 181 prepare "${PKGFILE}-new"
fe0f7911 182 signreleasefiles 'Joe Sixpack'
8fa99570 183 successfulaptgetupdate
63c71412 184 testsuccessequal "$(cat "${PKGFILE}-new")
fe0f7911
DK
185" aptcache show apt
186 installaptnew
187
8fa99570 188 msgmsg 'Cold archive signed by' 'Joe Sixpack'
63c71412 189 prepare "${PKGFILE}"
fe0f7911
DK
190 rm -rf rootdir/var/lib/apt/lists
191 signreleasefiles 'Joe Sixpack'
8fa99570 192 successfulaptgetupdate
63c71412 193 testsuccessequal "$(cat "${PKGFILE}")
fe0f7911
DK
194" aptcache show apt
195 installaptold
196
8fa99570 197 msgmsg 'Good warm archive signed by' 'Marvin Paranoid'
63c71412 198 prepare "${PKGFILE}-new"
fe0f7911 199 signreleasefiles 'Marvin Paranoid'
6bf93605 200 updatewithwarnings '^W: .* NO_PUBKEY'
63c71412 201 testsuccessequal "$(cat "${PKGFILE}")
29a59c46
DK
202" aptcache show apt
203 installaptold
204
8fa99570 205 msgmsg 'Good warm archive signed by' 'Rex Expired'
63c71412 206 prepare "${PKGFILE}-new"
29a59c46
DK
207 cp keys/rexexpired.pub rootdir/etc/apt/trusted.gpg.d/rexexpired.gpg
208 signreleasefiles 'Rex Expired'
f13b413a 209 updatewithwarnings '^W: .* EXPKEYSIG'
63c71412 210 testsuccessequal "$(cat "${PKGFILE}")
fe0f7911
DK
211" aptcache show apt
212 installaptold
29a59c46
DK
213 rm rootdir/etc/apt/trusted.gpg.d/rexexpired.gpg
214
8fa99570 215 msgmsg 'Good warm archive signed by' 'Joe Sixpack'
63c71412 216 prepare "${PKGFILE}-new"
29a59c46 217 signreleasefiles
8fa99570 218 successfulaptgetupdate
63c71412 219 testsuccessequal "$(cat "${PKGFILE}-new")
29a59c46
DK
220" aptcache show apt
221 installaptnew
b0d40854 222
8fa99570 223 msgmsg 'Cold archive signed by good keyring' 'Marvin Paranoid'
63c71412 224 prepare "${PKGFILE}"
b0d40854
DK
225 rm -rf rootdir/var/lib/apt/lists
226 signreleasefiles 'Marvin Paranoid'
b0d40854
DK
227 local MARVIN="$(readlink -f keys/marvinparanoid.pub)"
228 sed -i "s#^\(deb\(-src\)\?\) #\1 [signed-by=$MARVIN] #" rootdir/etc/apt/sources.list.d/*
8fa99570 229 successfulaptgetupdate
63c71412 230 testsuccessequal "$(cat "${PKGFILE}")
b0d40854
DK
231" aptcache show apt
232 installaptold
233
8fa99570 234 msgmsg 'Cold archive signed by bad keyring' 'Joe Sixpack'
b0d40854
DK
235 rm -rf rootdir/var/lib/apt/lists
236 signreleasefiles 'Joe Sixpack'
b0d40854 237 updatewithwarnings '^W: .* NO_PUBKEY'
b0d40854 238 sed -i "s#^\(deb\(-src\)\?\) \[signed-by=$MARVIN\] #\1 #" rootdir/etc/apt/sources.list.d/*
46e00c90 239
b0d40854 240 local MARVIN="$(aptkey --keyring $MARVIN finger | grep 'Key fingerprint' | cut -d'=' -f 2 | tr -d ' ')"
46e00c90
DK
241 msgmsg 'Cold archive signed by bad keyid' 'Joe Sixpack'
242 rm -rf rootdir/var/lib/apt/lists
243 signreleasefiles 'Joe Sixpack'
46e00c90
DK
244 sed -i "s#^\(deb\(-src\)\?\) #\1 [signed-by=$MARVIN] #" rootdir/etc/apt/sources.list.d/*
245 updatewithwarnings '^W: .* be verified because the public key is not available: .*'
b0d40854 246
8fa99570 247 msgmsg 'Cold archive signed by good keyid' 'Marvin Paranoid'
b0d40854
DK
248 rm -rf rootdir/var/lib/apt/lists
249 signreleasefiles 'Marvin Paranoid'
b0d40854 250 cp keys/marvinparanoid.pub rootdir/etc/apt/trusted.gpg.d/marvinparanoid.gpg
8fa99570 251 successfulaptgetupdate
63c71412 252 testsuccessequal "$(cat "${PKGFILE}")
b0d40854
DK
253" aptcache show apt
254 installaptold
b0d40854 255
46e00c90
DK
256 msgmsg 'Cold archive signed by good keyid' 'Marvin Paranoid,Joe Sixpack'
257 rm -rf rootdir/var/lib/apt/lists
258 signreleasefiles 'Marvin Paranoid,Joe Sixpack'
46e00c90
DK
259 successfulaptgetupdate 'NoPubKey: GOODSIG'
260 testsuccessequal "$(cat "${PKGFILE}")
261" aptcache show apt
262 installaptold
263
264 local SIXPACK="$(aptkey --keyring keys/joesixpack.pub finger | grep 'Key fingerprint' | cut -d'=' -f 2 | tr -d ' ')"
265 msgmsg 'Cold archive signed by good keyids' 'Joe Sixpack'
b0d40854
DK
266 rm -rf rootdir/var/lib/apt/lists
267 signreleasefiles 'Joe Sixpack'
46e00c90
DK
268 sed -i "s#^\(deb\(-src\)\?\) \[signed-by=$MARVIN\] #\1 [signed-by=${SIXPACK},${MARVIN}] #" rootdir/etc/apt/sources.list.d/*
269 successfulaptgetupdate
270 testsuccessequal "$(cat "${PKGFILE}")
271" aptcache show apt
272 installaptold
273
274 local SIXPACK="$(aptkey --keyring keys/joesixpack.pub finger | grep 'Key fingerprint' | cut -d'=' -f 2 | tr -d ' ')"
275 msgmsg 'Cold archive signed by good keyids' 'Joe Sixpack'
276 rm -rf rootdir/var/lib/apt/lists
277 sed -i "s#^\(deb\(-src\)\?\) \[signed-by=${SIXPACK},${MARVIN}\] #\1 [signed-by=${MARVIN},${SIXPACK}] #" rootdir/etc/apt/sources.list.d/*
278 successfulaptgetupdate
279 testsuccessequal "$(cat "${PKGFILE}")
280" aptcache show apt
281 installaptold
282 rm -f rootdir/etc/apt/trusted.gpg.d/marvinparanoid.gpg
283 sed -i "s#^\(deb\(-src\)\?\) \[signed-by=${MARVIN},${SIXPACK}\] #\1 #" rootdir/etc/apt/sources.list.d/*
b0d40854 284
89901946
DK
285 rm -rf rootdir/var/lib/apt/lists-bak
286 cp -a rootdir/var/lib/apt/lists rootdir/var/lib/apt/lists-bak
287 prepare "${PKGFILE}-new"
288 signreleasefiles 'Joe Sixpack'
89901946
DK
289
290 msgmsg 'Warm archive with signed-by' 'Joe Sixpack'
291 sed -i "/^Valid-Until: / a\
292Signed-By: ${SIXPACK}" rootdir/var/lib/apt/lists/*Release
293 touch -d 'now - 1 year' rootdir/var/lib/apt/lists/*Release
294 successfulaptgetupdate
295 testsuccessequal "$(cat "${PKGFILE}-new")
296" aptcache show apt
297 installaptnew
298
299 msgmsg 'Warm archive with signed-by' 'Marvin Paranoid'
300 rm -rf rootdir/var/lib/apt/lists
301 cp -a rootdir/var/lib/apt/lists-bak rootdir/var/lib/apt/lists
302 sed -i "/^Valid-Until: / a\
303Signed-By: ${MARVIN}" rootdir/var/lib/apt/lists/*Release
304 touch -d 'now - 1 year' rootdir/var/lib/apt/lists/*Release
305 updatewithwarnings 'W: .* public key is not available: GOODSIG'
306 testsuccessequal "$(cat "${PKGFILE}")
307" aptcache show apt
308 installaptold
309
310 msgmsg 'Warm archive with outdated signed-by' 'Marvin Paranoid'
311 rm -rf rootdir/var/lib/apt/lists
312 cp -a rootdir/var/lib/apt/lists-bak rootdir/var/lib/apt/lists
313 sed -i "/^Valid-Until: / a\
314Valid-Until: $(date -u -d "now - 2min" '+%a, %d %b %Y %H:%M:%S %Z') \\
315Signed-By: ${MARVIN}" rootdir/var/lib/apt/lists/*Release
316 touch -d 'now - 1 year' rootdir/var/lib/apt/lists/*Release
317 successfulaptgetupdate
318 testsuccessequal "$(cat "${PKGFILE}-new")
319" aptcache show apt
320 installaptnew
321
322 msgmsg 'Warm archive with two signed-bys' 'Joe Sixpack'
323 rm -rf rootdir/var/lib/apt/lists
324 cp -a rootdir/var/lib/apt/lists-bak rootdir/var/lib/apt/lists
325 sed -i "/^Valid-Until: / a\
326Signed-By: ${MARVIN} ${MARVIN}, \\
327 ${SIXPACK}" rootdir/var/lib/apt/lists/*Release
328 touch -d 'now - 1 year' rootdir/var/lib/apt/lists/*Release
329 successfulaptgetupdate
330 testsuccessequal "$(cat "${PKGFILE}-new")
331" aptcache show apt
332 installaptnew
fe0f7911
DK
333}
334
43c1ca5d 335runtest2() {
8fa99570 336 msgmsg 'Cold archive signed by' 'Joe Sixpack'
63c71412 337 prepare "${PKGFILE}"
43c1ca5d
SR
338 rm -rf rootdir/var/lib/apt/lists
339 signreleasefiles 'Joe Sixpack'
8fa99570 340 successfulaptgetupdate
43c1ca5d
SR
341
342 # New .deb but now an unsigned archive. For example MITM to circumvent
343 # package verification.
8fa99570 344 msgmsg 'Warm archive signed by' 'nobody'
63c71412 345 prepare "${PKGFILE}-new"
761a5ad2 346 find aptarchive/ \( -name InRelease -o -name Release.gpg \) -delete
6bf93605 347 updatewithwarnings 'W: .* no longer signed.'
63c71412 348 testsuccessequal "$(cat "${PKGFILE}-new")
43c1ca5d
SR
349" aptcache show apt
350 failaptnew
351
352 # Unsigned archive from the beginning must also be detected.
6bf93605 353 msgmsg 'Cold archive signed by' 'nobody'
8fa99570 354 rm -rf rootdir/var/lib/apt/lists
6bf93605 355 updatewithwarnings 'W: .* is not signed.'
63c71412 356 testsuccessequal "$(cat "${PKGFILE}-new")
43c1ca5d
SR
357" aptcache show apt
358 failaptnew
359}
43c1ca5d 360
8fa99570 361runtest3() {
6a4958d3 362 echo "APT::Hashes::$APT_TESTS_DIGEST_ALGO::$1 \"yes\";" > rootdir/etc/apt/apt.conf.d/truststate
08b7761a 363 msgmsg "Running base test with $1 digest"
8fa99570
DK
364 runtest2
365
08b7761a 366 for DELETEFILE in 'InRelease' 'Release.gpg'; do
761a5ad2 367 export APT_DONT_SIGN="$DELETEFILE"
08b7761a 368 msgmsg "Running test with deletion of $DELETEFILE and $1 digest"
761a5ad2 369 runtest
5a23c56d 370 export APT_DONT_SIGN='Release.gpg'
08b7761a 371 done
8fa99570
DK
372}
373
e8b1db38
MV
374# diable some protection by default and ensure we still do the verification
375# correctly
376cat > rootdir/etc/apt/apt.conf.d/weaken-security <<EOF
377Acquire::AllowInsecureRepositories "1";
378Acquire::AllowDowngradeToInsecureRepositories "1";
379EOF
196d590a 380# the hash marked as configurable in our gpgv method
08b7761a 381export APT_TESTS_DIGEST_ALGO='SHA224'
e8b1db38 382
8fa99570
DK
383successfulaptgetupdate() {
384 testsuccess aptget update -o Debug::pkgAcquire::Worker=1 -o Debug::Acquire::gpgv=1
fb7b11eb
DK
385 if [ -n "$1" ]; then
386 cp rootdir/tmp/testsuccess.output aptupdate.output
387 testsuccess grep "$1" aptupdate.output
388 fi
8fa99570 389}
6a4958d3 390runtest3 'Trusted'
e8b1db38 391
8fa99570
DK
392successfulaptgetupdate() {
393 testwarning aptget update -o Debug::pkgAcquire::Worker=1 -o Debug::Acquire::gpgv=1
fb7b11eb
DK
394 if [ -n "$1" ]; then
395 testsuccess grep "$1" rootdir/tmp/testwarning.output
396 fi
8fa99570
DK
397 testsuccess grep 'uses weak digest algorithm' rootdir/tmp/testwarning.output
398}
6a4958d3 399runtest3 'Weak'
08b7761a
DK
400
401msgmsg "Running test with apt-untrusted digest"
6a4958d3 402echo "APT::Hashes::$APT_TESTS_DIGEST_ALGO::Untrusted \"yes\";" > rootdir/etc/apt/apt.conf.d/truststate
08b7761a
DK
403runfailure() {
404 for DELETEFILE in 'InRelease' 'Release.gpg'; do
761a5ad2 405 export APT_DONT_SIGN="$DELETEFILE"
08b7761a
DK
406 msgmsg 'Cold archive signed by' 'Joe Sixpack'
407 prepare "${PKGFILE}"
408 rm -rf rootdir/var/lib/apt/lists
409 signreleasefiles 'Joe Sixpack'
08b7761a
DK
410 testfailure aptget update --no-allow-insecure-repositories -o Debug::pkgAcquire::Worker=1 -o Debug::Acquire::gpgv=1
411 testsuccess grep 'The following signatures were invalid' rootdir/tmp/testfailure.output
412 testnopackage 'apt'
413 testwarning aptget update --allow-insecure-repositories -o Debug::pkgAcquire::Worker=1 -o Debug::Acquire::gpgv=1
414 failaptold
d03b947b
DK
415 rm -rf rootdir/var/lib/apt/lists
416 sed -i 's#^deb\(-src\)\? #deb\1 [allow-insecure=yes] #' rootdir/etc/apt/sources.list.d/*
417 testwarning aptget update --no-allow-insecure-repositories -o Debug::pkgAcquire::Worker=1 -o Debug::Acquire::gpgv=1
418 failaptold
419 sed -i 's#^deb\(-src\)\? \[allow-insecure=yes\] #deb\1 #' rootdir/etc/apt/sources.list.d/*
08b7761a
DK
420
421 msgmsg 'Cold archive signed by' 'Marvin Paranoid'
422 prepare "${PKGFILE}"
423 rm -rf rootdir/var/lib/apt/lists
424 signreleasefiles 'Marvin Paranoid'
08b7761a
DK
425 testfailure aptget update --no-allow-insecure-repositories -o Debug::pkgAcquire::Worker=1 -o Debug::Acquire::gpgv=1
426 testnopackage 'apt'
427 updatewithwarnings '^W: .* NO_PUBKEY'
428 testsuccessequal "$(cat "${PKGFILE}")
429" aptcache show apt
430 failaptold
5a23c56d 431 export APT_DONT_SIGN='Release.gpg'
08b7761a
DK
432 done
433}
434runfailure
435
436msgmsg "Running test with gpgv-untrusted digest"
437export APT_TESTS_DIGEST_ALGO='MD5'
438runfailure