From 7994d1b3bdaaef1351872f13054d1ed9d645f65a Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sat, 26 Apr 2025 00:26:05 +0200 Subject: test: Do not use host's sequoia config Make the test suite independent of the host sequoia config. --- test/integration/framework | 4 ++++ test/integration/test-releasefile-verification | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/integration/framework b/test/integration/framework index 3f0290569..37f09c678 100644 --- a/test/integration/framework +++ b/test/integration/framework @@ -591,6 +591,10 @@ EOF echo 'quiet::NoSolver3Explanation "true";' > rootdir/etc/apt/apt.conf.d/disable-solver3-context + + export APT_SEQUOIA_CRYPTO_POLICY="$PWD/sequoia.config" + touch "$APT_SEQUOIA_CRYPTO_POLICY" + # most tests just need one signed Release file, not both export APT_DONT_SIGN='Release.gpg' diff --git a/test/integration/test-releasefile-verification b/test/integration/test-releasefile-verification index f467eae7d..dcc162a75 100755 --- a/test/integration/test-releasefile-verification +++ b/test/integration/test-releasefile-verification @@ -376,11 +376,11 @@ Signed-By: ${SEBASTIAN}" rootdir/var/lib/apt/lists/*Release if [ -z "$GPGV" ] && test -e "${METHODSDIR}/sqv"; then msgmsg 'Warm archive with ahead-policy-rejected subkey signing' 'Sebastian Subkey' - cat > sequoia.config << EOF + cat > test-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.*: Policy will reject signature within a year, see --audit for details" + APT_SEQUOIA_CRYPTO_POLICY=$PWD/test-sequoia.config updatewithwarnings "W: http://localhost:${APTHTTPPORT}/.*Release.*: Policy will reject signature within a year, see --audit for details" fi msgmsg 'Warm archive with wrong exact subkey signing' 'Sebastian Subkey' -- cgit v1.2.3-70-g09d2