|
|
@@ -166,3 +166,30 @@ insecureaptgetupdate
|
|
|
everythingfails
|
|
|
everythingfails -t stable
|
|
|
everythingfails -t testing
|
|
|
+
|
|
|
+# same as the one further above, but this time testing is unsigned
|
|
|
+find aptarchive/ \( -name 'InRelease' -o -name 'Release.gpg' \) -delete
|
|
|
+signreleasefiles 'Joe Sixpack' 'aptarchive/dists/stable'
|
|
|
+
|
|
|
+msgmsg 'Test without trusted option and unsigned and good sources'
|
|
|
+cp -a rootdir/etc/apt/sources.list.d.bak/* rootdir/etc/apt/sources.list.d/
|
|
|
+insecureaptgetupdate
|
|
|
+everythingfails
|
|
|
+everythingsucceeds -t stable
|
|
|
+everythingfails -t testing
|
|
|
+
|
|
|
+msgmsg 'Test with trusted=yes option and unsigned and good sources'
|
|
|
+cp -a rootdir/etc/apt/sources.list.d.bak/* rootdir/etc/apt/sources.list.d/
|
|
|
+sed -i 's#^deb\(-src\)\? #deb\1 [trusted=yes] #' rootdir/etc/apt/sources.list.d/*
|
|
|
+aptgetupdate
|
|
|
+everythingsucceeds
|
|
|
+everythingsucceeds -t stable
|
|
|
+everythingsucceeds -t testing
|
|
|
+
|
|
|
+msgmsg 'Test with trusted=no option and unsigned and good sources'
|
|
|
+cp -a rootdir/etc/apt/sources.list.d.bak/* rootdir/etc/apt/sources.list.d/
|
|
|
+sed -i 's#^deb\(-src\)\? #deb\1 [trusted=no] #' rootdir/etc/apt/sources.list.d/*
|
|
|
+insecureaptgetupdate
|
|
|
+everythingfails
|
|
|
+everythingfails -t stable
|
|
|
+everythingfails -t testing
|