diff options
author | Julian Andres Klode <jak@debian.org> | 2021-10-18 14:34:42 +0000 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2021-10-18 14:34:42 +0000 |
commit | 9d8cad64f03b47576ea0fd22f7d963c031faec3b (patch) | |
tree | ea9ffa6160ee3d4c13c8727d56735684387c83c4 /test | |
parent | ad7bae309a827592aa228af9470c1aa7abdd189e (diff) | |
parent | dcbae505308758df2870c0424e3f5a1dfebcb5ec (diff) |
Merge branch 'pu/signed-by-embedded-key' into 'main'
Add support for embedding PGP keys into Signed-By in deb822 sources
See merge request apt-team/apt!176
Diffstat (limited to 'test')
-rwxr-xr-x | test/integration/test-signed-by-option | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/integration/test-signed-by-option b/test/integration/test-signed-by-option index faa7dec44..986088bce 100755 --- a/test/integration/test-signed-by-option +++ b/test/integration/test-signed-by-option @@ -31,3 +31,38 @@ Signed-By: CDE5618B8805FD6E202CE9C2D73C39E56580B386! AAAAAAAAAAAAAAAAAAAAA , , BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB EOF testsuccess --nomsg aptcache policy + +buildsimplenativepackage "coolstuff" "all" "1.0" "stable" +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----- + . + mQENBExsGNYBCADNVx+TQ6h1tEyUP11f7ihfta3ZePkW1rIdkdHgA3Fw/TeLnTEq + mWuhMw2pL4zy1vQhU8efNrRaNUrUS7kV3LIdSjd5K4Aizqtsdy/gLKFoTcO8LFIm + KAXPg5hZBZ1B1HWvw7Npe4nkIj0Ar+bUyMfyCBUeqoaNeIy31a4IiNo8LdD73DOh + 4APKcp+pXh2s2DOmWOnTI8Z+WZ9W2ZurtdZl8g04hszGatwVKrNc6p5wK0wAvJ+X + M0HaIVt/+90GVLCMb/Gjf66At73BS19BdRDPi54PPK5N+Q9HZAYq0zPPNySB3l4A + vGjZtCqljkSqiaL1C0ZKf8c5ey/FoAviyS7TABEBAAG0M0pvZSBTaXhwYWNrIChB + UFQgVGVzdGNhc2VzIER1bW15KSA8am9lQGV4YW1wbGUub3JnPokBNwQTAQoAIQIb + AwIeAQIXgAUCV7L5PQULCQgHAwUVCgkICwUWAgMBAAAKCRBakNFB26yNri5RB/sF + xRzAFAwwp6TQNeZk3L2zsHD2ZPKaoWzi1l+nD4grfP1enuAnwcLR3HG4zouN3nCg + M0PgZEUo2yOAnKK4D5XWkcZjhcoCj133bTW807e+aM6d08ns+piIGJ8VdUVYlNZ2 + Tnr8eunkUQVkWQGjtHicIJFtjbokIKXzlJtVSklF/kDQ+v93kyj1SNM7Tm57Q01i + ZtB2jCXNYvqdlHaZw1oXdVd1R6u0+SSb4wtjHuTeYG76JaCnWKBnvexWhIEN1MxK + xNHhRHzEPTYZ4PCCyaRX4YRAwsEMFsscsghpQgqRDhGSWq+jUVI+Aay7FTnd+1UA + 1snsGpB0o9qxx8JpGMXI + =c/k4 + -----END PGP PUBLIC KEY BLOCK----- +EOF +testfailure apt update -o Debug::Acquire::gpgv=1 +testsuccess grep "NO_PUBKEY 5A90D141DBAC8DAE" 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 |