summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2023-07-11 13:47:13 +0000
committerJulian Andres Klode <jak@debian.org>2023-07-11 13:47:13 +0000
commit50efb65f339e715e04af114bca44c9b8c53ad3ad (patch)
treef7906cd23ce5be10b7170289b8aafb0fdf9631f1 /test
parent9ef79abd2f7942c4c5d789fd29b83f493626e440 (diff)
parentaba813975abb880f8b27d659147f7760c02f99e7 (diff)
Merge branch 'pu/missing-signed-by' into 'main'
update: Add notice about missing Signed-By in deb822 sources See merge request apt-team/apt!298
Diffstat (limited to 'test')
-rwxr-xr-xtest/integration/test-apt-get-update-sourceslist-warning12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/integration/test-apt-get-update-sourceslist-warning b/test/integration/test-apt-get-update-sourceslist-warning
index 02e1ccb29..3a3cb2e9f 100755
--- a/test/integration/test-apt-get-update-sourceslist-warning
+++ b/test/integration/test-apt-get-update-sourceslist-warning
@@ -38,6 +38,17 @@ testsuccessequal "$BOILERPLATE" apt update --no-download
echo 'deb-src http://example.org/debian bookworm main non-free' > rootdir/etc/apt/sources.list.d/example.list
testsuccessequal "$BOILERPLATE" apt update --no-download
+msgmsg 'Suggest Signed-By for deb822 sources.list(5) entries'
+rm rootdir/etc/apt/sources.list.d/example.list
+echo 'Types: deb
+URIs: http://example.org/debian
+Suites: bookworm
+Components: main
+' > rootdir/etc/apt/sources.list.d/example.sources
+testsuccessequal "$BOILERPLATE
+N: Missing Signed-By in the sources.list(5) entry for 'http://example.org/debian'" apt update --no-download
+rm rootdir/etc/apt/sources.list.d/example.sources
+
msgmsg 'Is non-free-firmware missing?'
echo 'deb http://example.org/debian bookworm main non-free' > rootdir/etc/apt/sources.list.d/example.list
cat >> rootdir/var/lib/apt/lists/example.org_debian_dists_bookworm_non-free_binary-amd64_Packages <<EOF
@@ -72,3 +83,4 @@ insertinstalledpackage 'firmware-linux-nonfree' 'all' '1'
testsuccessequal "$BOILERPLATE
N: Repository 'Debian bookworm' changed its 'firmware component' value from 'non-free' to 'non-free-firmware'
N: More information about this can be found online in the Release notes at: $NOTESURL" apt update --no-download
+