tests/signed-commit: fix the test of well-known places
Commit e474033e removed the redirection of incorrect public keys
aimed to generate a lot of files without correct public signature.
Fix the test by returning back the creation of files containing
incorrect public keys for ed25519.
Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
This commit is contained in:
parent
388c3033bc
commit
40a2fb3b07
|
|
@ -182,7 +182,7 @@ echo "ok sign with ed25519 keys file"
|
||||||
mkdir -p ${test_tmpdir}/{trusted,revoked}.ed25519.d
|
mkdir -p ${test_tmpdir}/{trusted,revoked}.ed25519.d
|
||||||
for((i=0;i<100;i++)); do
|
for((i=0;i<100;i++)); do
|
||||||
# Generate some key files with random public signatures
|
# Generate some key files with random public signatures
|
||||||
gen_ed25519_random_public
|
gen_ed25519_random_public > ${test_tmpdir}/trusted.ed25519.d/signature_$i
|
||||||
done
|
done
|
||||||
# Check no valid public keys are available
|
# Check no valid public keys are available
|
||||||
if ${CMD_PREFIX} ostree --repo=${test_tmpdir}/repo sign --verify --sign-type=ed25519 --keys-dir=${test_tmpdir} ${COMMIT}; then
|
if ${CMD_PREFIX} ostree --repo=${test_tmpdir}/repo sign --verify --sign-type=ed25519 --keys-dir=${test_tmpdir} ${COMMIT}; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue