diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2025-04-26 00:26:05 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2025-05-06 10:12:31 +0000 |
| commit | 7994d1b3bdaaef1351872f13054d1ed9d645f65a (patch) | |
| tree | 714057ef1b69253b70bd1239cfd1a3ac486a8b1b | |
| parent | 3e261cb940955cadaff58e90a27af8dc882cb3b1 (diff) | |
test: Do not use host's sequoia config
Make the test suite independent of the host sequoia config.
| -rw-r--r-- | test/integration/framework | 4 | ||||
| -rwxr-xr-x | 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' |
