summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2025-03-14 08:29:50 +0000
committerJulian Andres Klode <jak@debian.org>2025-03-14 08:29:50 +0000
commitd010239daab81ca027be332f1b5372eaf9dbbeb6 (patch)
tree7e85a693b39feb8a58c0232d7920c1e0eed1b598 /test/integration
parentdb5267cc17b3b2e6ded25da60adc030124950ae4 (diff)
parentf866dac363c6a22fe1b35baddf126b39a405410e (diff)
Merge branch 'indextargets-signed-by' into 'main'
apt-pkg/solver3.h: avoid static_assert(false) and signed-by in apt-get indextargets See merge request apt-team/apt!464
Diffstat (limited to 'test/integration')
-rwxr-xr-xtest/integration/test-signed-by-option19
1 files changed, 10 insertions, 9 deletions
diff --git a/test/integration/test-signed-by-option b/test/integration/test-signed-by-option
index e6a3fbb86..62081eb06 100755
--- a/test/integration/test-signed-by-option
+++ b/test/integration/test-signed-by-option
@@ -40,13 +40,7 @@ setupaptarchive --no-update
rm -f rootdir/etc/apt/sources.list.d/* rootdir/etc/apt/sources.list
rm -f rootdir/etc/apt/trusted.gpg.d/* rootdir/etc/apt/trusted.gpg
-cat > rootdir/etc/apt/sources.list.d/deb822.sources << EOF
-Types: deb
-URIs: file://$PWD/aptarchive
-Suites: stable
-Components: main
-xSigned-By:
- -----BEGIN PGP PUBLIC KEY BLOCK-----
+GPGKEYBLOCK='-----BEGIN PGP PUBLIC KEY BLOCK-----
.
mQENBExsGNYBCADNVx+TQ6h1tEyUP11f7ihfta3ZePkW1rIdkdHgA3Fw/TeLnTEq
mWuhMw2pL4zy1vQhU8efNrRaNUrUS7kV3LIdSjd5K4Aizqtsdy/gLKFoTcO8LFIm
@@ -63,15 +57,22 @@ xSigned-By:
xNHhRHzEPTYZ4PCCyaRX4YRAwsEMFsscsghpQgqRDhGSWq+jUVI+Aay7FTnd+1UA
1snsGpB0o9qxx8JpGMXI
=c/k4
- -----END PGP PUBLIC KEY BLOCK-----
+ -----END PGP PUBLIC KEY BLOCK-----'
+cat > rootdir/etc/apt/sources.list.d/deb822.sources << EOF
+Types: deb
+URIs: file://$PWD/aptarchive
+Suites: stable
+Components: main
+xSigned-By:
+ $GPGKEYBLOCK
EOF
testfailure apt update -o Debug::Acquire::gpgv=1
testsuccess grep -E "(NO_PUBKEY 5A90D141DBAC8DAE|no keyring is specified)" rootdir/tmp/testfailure.output
sed -i s/^xSigned-By/Signed-By/ rootdir/etc/apt/sources.list.d/deb822.sources
testsuccess apt update -o Debug::Acquire::gpgv=1
+testsuccessequal "$(echo "$GPGKEYBLOCK" | sed 's/^ \+/ /')\n$(echo "$GPGKEYBLOCK" | sed 's/^ \+/ /')" aptget indextargets --format '$(SIGNED_BY)'
# make sure we did not leave leftover files (LP: #1995247)
testsuccessequal "" ls "${TMPDIR}"
-
rm -f rootdir/etc/apt/sources.list.d/*
msgtest 'Check that a repository with' 'only the fisrt entry has no Signed-By value works'