summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2025-04-25 21:08:05 +0000
committerJulian Andres Klode <jak@debian.org>2025-04-25 21:08:05 +0000
commitfd4ebe70225d6e2f9993514553bac7aa9eb1df7e (patch)
tree95190a341e6861d216bf45c2e45eb301f6c531da /test
parentccd3b00975f96a62835e02cd243f624d47812b56 (diff)
parent85c435f23718e168345ea60270b24a57061b54f4 (diff)
Merge branch 'policy-as-of' into 'main'
Update Sequoia crypto policy, implement year-ahead warning See merge request apt-team/apt!475
Diffstat (limited to 'test')
-rwxr-xr-xtest/integration/test-releasefile-verification10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/test-releasefile-verification b/test/integration/test-releasefile-verification
index 1e54cf0d5..e15752482 100755
--- a/test/integration/test-releasefile-verification
+++ b/test/integration/test-releasefile-verification
@@ -374,6 +374,16 @@ Signed-By: ${SEBASTIAN}" rootdir/var/lib/apt/lists/*Release
" aptcache show apt
installaptnew
+ if test -e "${METHODSDIR}/sqv"; then
+ msgmsg 'Warm archive with ahead-policy-rejected subkey signing' 'Sebastian Subkey'
+ cat > sequoia.config << EOF
+[asymmetric_algorithms]
+rsa3072 = $(date +%Y-%m-%d --date="now + 6 months")
+EOF
+ APT_SEQUOIA_CRYPTO_POLICY=$PWD/sequoia.config updatewithwarnings "W: http://localhost:${APTHTTPPORT}/Release.gpg: Policy will reject signature within a year, see --audit for details"
+ exit
+ fi
+
msgmsg 'Warm archive with wrong exact subkey signing' 'Sebastian Subkey'
rm -rf rootdir/var/lib/apt/lists
cp -a rootdir/var/lib/apt/lists-bak rootdir/var/lib/apt/lists