Commit Graph

689 Commits

Author SHA1 Message Date
Miecio Za
cd08c8845f [Minor] Fix performance issue with is_utf_outside_range
Fix performace issue, add some checking and add few tests
2019-03-18 14:06:56 +01:00
Alexander Moisseev
b481d7992e [Test] Use non-ASCII file name
to cover rfc2047 decoding (7d8bdf6)
2019-03-07 09:34:47 +03:00
Vsevolod Stakhov
eda5cfa386 [Minor] Fix broken test 2019-03-04 18:17:41 +00:00
Vsevolod Stakhov
1f1984f76b [Test] Fix DNS tests 2019-03-01 10:12:54 +00:00
Vsevolod Stakhov
0d434c6ce3 [Test] Revert tests changes 2019-03-01 10:00:10 +00:00
Vsevolod Stakhov
1ac38c4015 [Test] Remove more broken tests 2019-02-28 20:18:37 +00:00
Vsevolod Stakhov
8c44b93430 [Test] Remove more broken tests 2019-02-28 20:07:12 +00:00
Vsevolod Stakhov
e837c9b7b5 [Test] Fix http tests - remove coroutines tests 2019-02-28 20:00:27 +00:00
Vsevolod Stakhov
1dcc9a69cc [Minor] Disable broken http bench 2019-02-19 18:04:03 +00:00
Vsevolod Stakhov
cfc4b20f73 [Fix] Fix HTTP headers signing case 2019-02-18 20:30:33 +00:00
Vsevolod Stakhov
c399ca466f [Minor] Fix tests 2019-02-18 20:19:13 +00:00
Vsevolod Stakhov
12a9552a9c [Test] Add test for http headers signing 2019-02-18 20:07:30 +00:00
Vsevolod Stakhov
0f32df6f44 [Fix] Core: Fix address rotation bug
Previously, upstream.get_addr function returned the new address of the
upstream. Unfortunately, it was used for printing addresses. It caused
the following situation: let's imagine we have A1 and A2 where A1 was
initially selected. So the connection was performed to A1:

                           Current addr   Selected addr

   Connect+---------+      A2+------>A1   A1
                    |
+-+Print failure<---+      A1+------>A2   A2
|                        +----+
+->Mark failure+-------->+ A2 |
                         +----+

But the failure OP as well as log message told about `A2` where the real
problem happened with `A1`.

This commit adds distinguishing between getting the next and the current
address of the upstream resolving this issue.
2019-02-18 12:58:57 +00:00
Vsevolod Stakhov
81bc945a76 [Rework] Start rework of the HTTP library 2019-02-15 16:41:24 +00:00
Vsevolod Stakhov
6ede0320dd
Merge pull request #2758 from moisseev/mid
[Test] Add tests for MID module
2019-02-15 11:56:13 +00:00
Alexander Moisseev
1156a22fa8 [Test] Add tests for MID module 2019-02-15 11:53:31 +03:00
Vsevolod Stakhov
e550b8e7db [Minor] Try to fix linking hell 2019-02-14 11:22:07 +00:00
Vsevolod Stakhov
76fafe01df [Minor] Oops, add dependency 2019-02-13 18:15:28 +00:00
Vsevolod Stakhov
0436aa53c3 [Rework] Convert rspamd-server to a shared library 2019-02-13 18:09:43 +00:00
Vsevolod Stakhov
9389d491a3 [Test] Disable it, it is doomed 2019-02-13 12:12:38 +00:00
Vsevolod Stakhov
e99c9c207e [Test] Sigh, another monkey patch 2019-02-13 10:14:04 +00:00
Vsevolod Stakhov
b3656cc8c1 [Test] Another try to fix test 2019-02-13 09:37:34 +00:00
Vsevolod Stakhov
5ada2d7cf4 [Test] Another try to fix migration test 2019-02-12 17:34:04 +00:00
Vsevolod Stakhov
8afd2d3ab5 [Test] Try to fix schema version in the test 2019-02-12 16:47:56 +00:00
Vsevolod Stakhov
462ab60be8 [Minor] Oops, fix memory drainage 2019-02-08 17:47:01 +00:00
Vsevolod Stakhov
2cd6a29fda [Test] Improve received tests 2019-02-08 12:56:05 +00:00
Vsevolod Stakhov
bd59acda6a [Test] Fix tests relying on the broken behaviour 2019-02-07 21:58:39 +00:00
Vsevolod Stakhov
841dbfe275 [Minor] Fix with parsing 2019-02-07 17:24:51 +00:00
Vsevolod Stakhov
c5e2e9babb [Test] Try to fix bloody ambiguity in IPv6 notations... 2019-02-07 15:51:34 +00:00
Vsevolod Stakhov
5d3795649e [Project] Attach new received parser 2019-02-07 13:57:24 +00:00
John McKay
161184eb72 add tests for dkim signatures with milter 2019-02-02 11:26:14 +00:00
John McKay
76731569b0 mark cache tests as broken until can fix for ci 2019-02-02 05:41:41 +00:00
John McKay
abd1d3b74a don't use 3.6+ python re syntax in multiple test 2019-02-02 05:41:41 +00:00
John McKay
a92c5d43ef Add tests for multiple signatures 2019-02-02 05:41:41 +00:00
John McKay
04b5bfde88 Add tests for key cache invalidation 2019-02-02 05:30:00 +00:00
John McKay
ebc58cba8f Add ed25519 signing tests 2019-02-02 05:30:00 +00:00
Carsten Rosenberg
4e00e9f139 [Minor] mime_types - add filename whitelist 2019-01-29 20:22:41 +01:00
Alexander Moisseev
41dab157a0 [Test] Add tests for mime_types 2019-01-25 11:00:59 +03:00
Vsevolod Stakhov
b29c55a194 [Test] Add testing for dynamic conf 2019-01-24 13:37:06 +00:00
Vsevolod Stakhov
6f72e868f5 [Test] Add tests for lua_udp 2019-01-21 17:04:05 +00:00
Vsevolod Stakhov
7957fc516a [Test] Add dummy udp client 2019-01-21 16:26:41 +00:00
Carsten Rosenberg
ee587bdf28 [Fix] tests - antivirus - fprot symbols 2019-01-19 08:02:51 +01:00
Carsten Rosenberg
968d92d048 [Minor] test - adjust antivirus symbols 2019-01-17 20:26:00 +01:00
Alexander Moisseev
e481f8514a [Test] Add task:get_from(['mime']) test 2019-01-17 11:32:00 +03:00
Vsevolod Stakhov
4595a80f9c [Test] Write test name to queue id 2019-01-14 17:59:06 +00:00
Vsevolod Stakhov
f9d5c7051d [Test] Fix broken test 2018-12-28 09:23:43 +00:00
Vsevolod Stakhov
de3ffd985f [Test] Unit: Fix hash value (due to mime parsing error) 2018-12-17 16:54:30 +00:00
Vsevolod Stakhov
3f83c2f80c [Test] Rbl: Add received and whitelists tests 2018-12-16 17:10:50 +00:00
Vsevolod Stakhov
7048dc0475 [Test] Rbl: Add some tests for RBL module 2018-12-15 20:18:55 +00:00
Vsevolod Stakhov
450314bcae [Test] Add some tests for greylist module 2018-12-08 09:47:27 +00:00