robosats/tests
Reckless_Satoshi 9e442c386a
fix verify_signed_message (#1371)
verify_signed_message was not checking for the validity of the
signature. The documentation of python-gnupg is not clear about this, it
says that the fiels are set just if the signature is valid.
In this case tests/robots/1/signed_message was signed with the correct
key but with the wrong digest-algo (SHA256 instead of SHA512) as
expressed on the signature.
Running gpg --verify tests/robots/1/signed_message returned:
gpg: WARNING: signature digest conflict in message
gpg: Can't check signature: General error
and a non zero error code, but verify_signed_message was not catching
this because verified.fingerprint was set even though verified.valid was
False.

Co-authored-by: jerryfletcher21 <jerryfletcher@cock.email>
2024-10-19 18:04:50 +02:00
..
bitcoind Feat: fix CLN and reactivate cln integration tests (#1336) 2024-06-17 21:33:49 +00:00
robots fix verify_signed_message (#1371) 2024-10-19 18:04:50 +02:00
utils Revert "Store status notifications" 2024-10-01 19:35:57 +00:00
__init__.py Add robot creation tests 2023-11-06 14:18:37 +00:00
compose.env Feat: fix CLN and reactivate cln integration tests (#1336) 2024-06-17 21:33:49 +00:00
README.md feat: add tests readme 2024-06-16 21:58:44 +01:00
test_api_info.py Add ticks test 2023-11-20 14:54:04 +00:00
test_api_limits.py Add ticks test 2023-11-20 14:54:04 +00:00
test_api.py Add LN payout test 2023-11-20 14:54:04 +00:00
test_frontend_fetch.py new integration test pipeline 2024-09-18 09:18:11 +02:00
test_trade_pipeline.py Revert "Store status notifications" 2024-10-01 19:35:57 +00:00

Run e2e tests

docker compose -f docker-tests.yml --env-file tests/compose.env up -d
docker exec coordinator coverage run manage.py test
docker exec coordinator coverage report