aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* [Test] Add tests for CDB mapsvstakhov-cdb-mapsVsevolod Stakhov2025-03-152-0/+18
|
* [Fix] Use bundled libfmt everywherevstakhov-fmt-embeddingVsevolod Stakhov2025-03-101-2/+2
| | | | Issue: #5258
* [Test] RBL: test more URL extraction scenariosAndrew Lewis2025-01-204-0/+72
|
* [Test] Add some unit testsvstakhov-universal-hashing-luaVsevolod Stakhov2024-12-201-0/+176
|
* [Test] Breaking: dynamic symbols also require `score` to be setVsevolod Stakhov2024-12-101-0/+1
| | | | Issue: #5247
* [Test] Fix testsVsevolod Stakhov2024-11-291-51/+33
|
* [Fix] Sigh, another fixvstakhov-fix-2047-encodeVsevolod Stakhov2024-11-181-1/+1
|
* [Test] Fix some tests againVsevolod Stakhov2024-11-181-2/+4
|
* [Test] Test encode with decodeVsevolod Stakhov2024-11-181-156/+39
|
* [Test] Rework tests structureVsevolod Stakhov2024-11-181-6/+24
|
* [Fix] More fixes to rfc2047 encodingVsevolod Stakhov2024-11-181-14/+15
|
* [Minor] Some more fixesVsevolod Stakhov2024-11-161-27/+20
|
* [Fix] Some more fixesVsevolod Stakhov2024-11-162-3/+216
|
* [Test] Add more testVsevolod Stakhov2024-11-041-1/+2
|
* [Fix] Another story about char signVsevolod Stakhov2024-11-041-33/+34
| | | | | | | Ragel still produces a wrong state machine if `const char *` is used for characters representation that are actually utf8. This PR changes all types to `unsigned char *` for consistency.
* [Test] A workaround for brain-damaged libstdc++ from prehistoric agesVsevolod Stakhov2024-10-311-11/+27
|
* [Test] Add some specific unit tests for Rspamd x25519 DHVsevolod Stakhov2024-10-311-0/+52
|
* [CritFix] Fix ARC-Seal signingJan Schär2024-10-202-10/+19
| | | | | | | | | | | | | | | | | Signing of ARC-Seal headers was recently broken; the created signatures failed to validate. Most likely, this was caused by commit 1e661a2fc6e3, which changed the way signatures are created in lua_rsa_sign_memory without adding the calls to EVP_PKEY_CTX_set_rsa_padding and EVP_PKEY_CTX_set_signature_md needed with the new interface. After fixing this, some existing tests failed, because the test values passed to the hash parameter did not have the correct size for a sha256 hash. I fixed these by adjusting the length of the test values. Additionally, I extended the "RSA sign" unit test to compare the created signature against the expected one. This is possible because RSA signing is deterministic, and should prevent the same bug from occuring again. Fixes: https://github.com/rspamd/rspamd/issues/5173
* [Test] Trying to understand what's up with robotVsevolod Stakhov2024-09-271-0/+2
|
* [Feature] Add rspamadm secretbox commandIvan Stakhov2024-09-182-4/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [Minor] Small fix for error messages * [Feature] Create rspamadm util to decrypt header * [Feature] Create python example to encrypt/decrypt header * [Minor] Small clean up * [Minor] Change c-rspamadm util to lua-rspamadm util * [Minor] Small clean up * [Minor] Add some debug * [Feature] Add secretbox command * [Minor] Debug * [Minor] Add additional return for encrypted string(noce + encrypted string * [Minor] Small debug * [Minor] Add a way to provide encrypted text concatenated with nonce * [Minor] Add nonce to encrypt text * [Minor] Clean up * [Minor] Clean up unused variable * [Minor] Small fix * [Minor] Fix return issue * [Minor] Add blake2b for key derivation * [Minor] Small upgrade to debug * [Minor] Small clean up * [Minor] Change return to more convenient form * [Minor] Change print to test form * [Test] Provide tests for encrypt/decrypt with rspamadm util and python script * [Minor] Change python to python3 * [Minor] Add stderr check * [Minor] Make the function return nonce+text * [Minor] Change unit tests to new return format * [Minor] Add flag to manage encodings * [Minor] Add --encoding argument to manage encodings * [Minor] Change tests for new input format * [Minor] Fix lua format * [Minor] Small fix * [Minor] Provide full support for new return format of maybe_encrypt_header * [Test] Test small fix * [Test] Small fix * [Minor] Clean up * [Minor] Small fix for name of variable * [Minor] Small clean up * [Minor] Change format of command to a mre convenient * [Minor] Change tests to be same as a format of a command * [Minor] Change description of flags * [Minor] Small fix --------- Co-authored-by: Ivan Stakhov <50211739+LeftTry@users.noreply.github.com>
* [Feature] Add tooling to encrypt strings in LuaIvan Stakhov2024-09-051-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [Fix] Provide support for OpenSSL 3.0 * [Feature] Provide function to encode header with configured public key * [Feature] Provide function to decode header with configured public key * [Test] Add tests for maybe encode/decode header * [Minor] Fix tests for encode/decode header * [Minor] Small clean up * [Minor] Small clean up * [Minor] Small fix for OpenSSL 3.0 support * [Minor] Provide logging * [Minor] Small fix * [Fix] Fix typo error * [Fix] Another typo * [Minor] Little clean up * [Minor] Little fix * [Minor] Small fix * [Minor] Small fix * [Minor] Rewrite the arguments of secretbox:encrypt/decrypt functions to a more understandable format * [Fix] Fix problem with nonce was not provided * [Test] Add test for nonce * [Minor] Little clean up * [Minor] Little clean up * [Test] Test * [Test] Test * [Test] Test * [Minor] Little fix * [Minor] Small fix * [Minor] Small fix * [Test] Small fix * [Test] Test * [Test] Test * [Test] Test * [Test] Test * [Minor] Small fix for fips provider * [Minor] Change provider apply logic * [Test] Little fix for provider * [Minor] Provide OpenSSL <3.0 support * [Test] Possible provider fix * [Test] Possible provider fix * [Test] Little fix * [Minor] Fix provider issue * [Minor] Small clean up * [Minor] Change logging errors * Update lualib/lua_util.lua --------- Co-authored-by: Vsevolod Stakhov <vsevolod@rspamd.com>
* Merge branch 'master' into robot_startupAndrew Lewis2024-08-263-16/+37
|\
| * [Test] Improve grow_factor testsAndrew Lewis2024-08-203-16/+37
| |
* | [Test] Improve on previous changesAndrew Lewis2024-08-261-4/+4
| | | | | | | | | | - Remove unnecessary process waiting - Relax retry time
* | [Test] Improve startup error handlingAndrew Lewis2024-08-231-1/+16
|/
* Provide OpenSSL 3.0 support for lua_rsa (#5101)Ivan Stakhov2024-08-171-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | * [Fix] Provide OSSL 3.0 support for lua_rsa (not working) * [Fix] Provide full OpenSSL 3.0 for lua_rsa * [Minor] Little clean up * [Minor] Clean up code from debug * [Test] Replace for fixed size fstring allocation * [Test] Add rsa padding and signature md for pctx * [Test] Little changes * [Fix] Little fix for rsa_sign_memory work correctly * [Minor] Little clean up * [Minor] Small fix * [Minor] Little clean up * [Test] Add signature verification test for rsa2048
* [Test] Add more unit testsVsevolod Stakhov2024-08-161-10/+25
|
* [Test] Fix broken testVsevolod Stakhov2024-08-161-0/+4
|
* [Minor] Slight cleanupVsevolod Stakhov2024-08-151-3/+3
|
* [Test] Add unit tests for ucl functionsVsevolod Stakhov2024-08-131-0/+60
|
* [Test] Add test for keypairs encrypt/decryptVsevolod Stakhov2024-08-091-0/+26
|
* [Project] Remove NIST mode from everywhereVsevolod Stakhov2024-08-092-91/+26
|
* [Test] Use proper keypairsVsevolod Stakhov2024-08-071-6/+6
|
* [Test] Fix some testVsevolod Stakhov2024-08-071-6/+45
|
* [Test] Fix unit testsVsevolod Stakhov2024-08-071-54/+52
|
* Merge branch 'master' into masterVsevolod Stakhov2024-08-078-2/+214
|\
| * Merge pull request #5083 from fatalbanana/test_milter_headersVsevolod Stakhov2024-08-023-0/+106
| |\ | | | | | | [Test] Add tests for milter_headers
| | * [Test] Add more tests for milter_headersAndrew Lewis2024-07-303-2/+52
| | |
| | * [Test] Add tests for milter_headersAndrew Lewis2024-07-303-0/+56
| | |
| * | [Test] Add tests for group score limitsVsevolod Stakhov2024-08-015-2/+108
| |/
* | [Feature] Add tests for rspamd_cryptoboxLeftTry2024-07-241-1/+1
| |
* | [Feature] Add rspamd_cxx_unit_cryptobox for unit testingLeftTry2024-07-241-1/+1
| |
* | Added unit tests for rspamd_cryptoboxLeftTry2024-07-241-0/+1
| |
* | Added unit tests for rspamd_cryptoboxLeftTry2024-07-241-0/+161
|/
* [Test] Add test for SPF +allVsevolod Stakhov2024-07-182-0/+11
|
* [Test] Add missingVsevolod Stakhov2024-07-111-0/+1
|
* [Test] Fix ratelimit testsAndrew Lewis2024-07-113-54/+60
|
* [Test] Add tests for ratelimit moduleAndrew Lewis2024-07-102-0/+64
|
* [Rework] Update fmt to version 11Vsevolod Stakhov2024-07-011-4/+4
|
* Fixed bug with task:inject() function according to the issue #5010 (#5021)Ivan Stakhov2024-06-253-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [Fix] Fix issue with task:inject_url * [Minor] Code clean up * [Minor] Clean up * [Minor] Small fix * [Minor] Fix small typo * [Test] Debug * [Test] Debug * [Test] Debug inject_url * [Test] Debugging * [Test] Debugging task:inject test * [Test] Debugging task:inject test * [Test] Debugging task:inject test * [Minor] Debug task:inject_url test * [Minor] Small fix * [Minor] Debug task:inject_url test * [Test] Test base task:inject * [Test] Test updated task:inject * [Test] Test updated task:inject * [Test] Test updated task:inject * [Test] Test updated task:inject * [Test] Test updated task:inject * [Test] Test fixed task:inject * [Test] Test fixed task:inject * [Test] Testing task:inject * [Test] Testing task:inject * [Test] Fix task:inject * [Test] Fix task:inject * [Test] Fix task:inject * [Test] Fix task:inject * [Test] Fix task:inject * [Test] Fix task:inject * [Test] Fix task:inject * [Test] Fix task:inject * [Test] Test base task:inject * [Test] Test base task:inject * [Test] Test base task:inject * [Test] Fix task:inject * [Test] Fix task:inject * [Test] Fix task:inject * [Test] Fix task:inject * [Minor] Clean up code in task:inject * [Minor] Updated test for task:inject * [Test] Debug test for task:inject_url * [Test] Debug test for task:inject_url * [Test] Fix task:inject_url * [Test] Fix task:inject_url * [Test] Fix task:inject_url * [Test] Fix task:inject_url * [Test] Fix task:inject_url * [Test] Fix task:inject_url * [Test] Fix task:inject_url * [Test] Fix task:inject_url * [Test] Fix task:inject_url * [Test] Fix task:inject_url * [Test] Fix task:inject_url * [Test] Fix task:inject_url * [Test] Fix task:inject_url * [Test] Fix task:inject_url * [Test] Fix task:inject_url * [Test] Check task:inject_url * [Test] Check task:inject_url * [Test] Check task:inject_url * [Test] Check task:inject_url * [Test] Check task:inject_url * [Test] Check task:inject_url * [Minor] Clean up code * [Minor] Clean up code * [Minor] Little fix for error messages in url.create function * [Test] Change way to inject url * [Test] Fix inject url * [Test] Fix inject url * [Test] Fix inject url * [Test] Fix inject url * [Test] Fix inject url * [Minor] Clean up code * [Test] Without fake mime_part * [Test] Without fake mime_part * [Minor] Clean up * [Test] Mime part of the task * [Test] Mpart should exist * [Test] Mpart should exist * [Test] Mpart should exist * [Test] Another check for mpart->urls * [Minor] Clean up * [Minor] Clean up * [Fix] Fixing OpenSSL 3.0 compatibility * [Fix] Reverted