Commit Graph

453 Commits

Author SHA1 Message Date
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
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
Vsevolod Stakhov
a171bcffba [Fix] Perform policy downgrade on sample out, add tests 2018-11-28 13:39:23 +00:00
Vsevolod Stakhov
71499b6811 [Test] Add tests for pct=0 case 2018-11-28 12:39:48 +00:00
Vsevolod Stakhov
dda2df85a2 [Test] Add tests for broken richtext case 2018-11-27 15:29:17 +00:00
Vsevolod Stakhov
4a8f084697 [Test] Remove broken tests 2018-11-16 17:42:44 +00:00
Vsevolod Stakhov
cf6ff4df42 [Test] Add tests for #2584 and #2349 2018-11-13 18:08:22 +00:00
Vsevolod Stakhov
29e1d556d9 [Test] Fix broken tests 2018-11-12 11:48:07 +00:00
Vsevolod Stakhov
58f485c785 [Minor] Improve logic of parts selection and fix some corner cases 2018-11-06 17:48:01 +00:00
Alexander Moisseev
1fdff2d983 [Test] Add test for composites with symbol groups 2018-10-30 22:55:41 +03:00
Alexander Moisseev
046e1b263a [Test] Add composites test 2018-10-30 18:58:19 +03:00
Anton Yuzhaninov
3ebf458996 Speedup lua coverage collecting for functional test
luacov-coveralls merge mode (-j flag) was created to join reports
containing coverage for different source files (e.g. C and Lua code).
Coverage for the same file in two report is not merged, instead one
source file is added several times to source_files array in JSON. As
a result if we use luacov-coveralls -j on report for same source files
it ends up spending a lot of time on parsing and dumping big JSON files.

This change reduces functional test time from 7+ minutes to 4+ minutes.
2018-10-27 13:36:52 -04:00
Anton Yuzhaninov
43ceedc68f TCP Connect robot keyword
* reduce timeout to a reasonable value
* explicitly close socket, don't wait for GC
2018-10-24 21:28:47 -04:00
Anton Yuzhaninov
7ed06f8104 Fix race in Cases.210 Clickhouse.001
Clickhouse test sometimes fails with an error:
ConnectionError: HTTPConnectionPool(host='localhost', port=18123): Max retries exceeded with url: /?default_format=JSONEachRow (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f40ad96fdd0>: Failed to establish a new connection: [Errno 111] Connection refused',))

Fix this by waiting for TCP port instead pid file.
2018-10-24 20:10:14 -04:00
Anton Yuzhaninov
701419544d Add variable for clickhouse port 2018-10-24 19:23:46 -04:00
Vsevolod Stakhov
aacb706648 [Fix] Use proper syntax for making DNS requests 2018-10-21 09:42:22 +01:00
Anton Yuzhaninov
97a9de3854 Fix coverage (#2603)
* Add utility to prepare C coverage for upload to coveralls.io

It turned out that it is more easy to write own script then debug
and fix coveralls utility (https://github.com/eddyxu/cpp-coveralls).

gcov-coveralls.py can be used as a replacement for coveralls.

* Save coverage data from .gcda files only once

Coverage data in .gcda files is merged after each binary invocation,
so we can run all test and then gather coverage data.

If we dump them two times execution counts will be more then they be.

* Switch from coveralls (cpp-coveralls) to own script

Problem with coveralls was, that coverage for source files outside build
directory was not added to the report.

* Add tool to dump info from json for coveralls.io

* Add debug

* Fix: don't die if there is no service_job_id in json

* Debug

* Fix dump_coveralls.py

* Rename to gcov_coveralls.py (s/-/_/)

For most files in this repo '_' is used as separator.

* Don't add source code to coveralls JSON

According to https://docs.coveralls.io/api-introduction
Coverals don't need source code, only MD5 digest to tracks changes.

Anyway source code is already added by luacov-coveralls and source_digest
is added by cpp-coveralls and gcov_coveralls.py
Both options seems to work for now.

* Provide path to source directory to merge_coveralls.py

merge_coveralls.py has code to filter files and remove prefixes.
When --root points to source directory merge_coveralls.py can strip
prefix from absolute path in JSONs generated by luacov-coveralls.

* Style

Don't add parameters with default values.

* Make --output optional

It useful mainly for debugging. We can send report without saving it.

* Log CI_COMMIT_AUTHOR env var

It is not clear from drone.io source how CI_COMMIT_AUTHOR variable is
set. Log it to see what it means.

* Move merge_coveralls.py to test/tools

This script is used not only for funcional test coverage, but for
rspamd-test coverage too.

* Remove debug

* Style

Use more compact formatting.

* Write comment about parallel tests running [SKIP CI]

Document why running tests in parallel may be bad idea (but still do so).

* Fix typo [SKIP CI]
2018-10-20 09:15:40 +01:00
Anton Yuzhaninov
82976843d7 Cleanup unused imports 2018-10-16 11:39:06 -04:00
Anton Yuzhaninov
33016c62b7 [functional test] Fix races in shutdown_process
Currently functional test sometimes fails with and error:
Teardown failed: NoSuchProcess: psutil.NoSuchProcess process no longer exists (pid=2259)

Rewrite process termination - there is no need to send signals in a loop
many times.
2018-10-16 11:37:59 -04:00
Anton Yuzhaninov
f866b85dd2 Add git repo info to coveralls payload
Again other implementations were used as reference, because API is not
fully documented.
2018-10-15 21:01:58 -04:00
Anton Yuzhaninov
ee0de90803 Drone coverage fix (#2592)
* Build as nobody

This showld fix coverage files writing. At least some coverage files
(*.gcda, *.gcno) are written by rspamd running as nobody.

* Comment luacov-coveralls

* Run rspamd-test as nobody too

* Run coveralls from build root (/rspamd/build)

It need to find all `.gcda` files.

* Hack for coveralls was moved to Docker image

* Add test debug

* More debug

* Workaround to writing *.gcda from different users

*.gcda files written in parallel by root and by nobody

* Remove debug

* Use current build number instead of previous

* Remove unused variable

* Add more parameters

- If CI detected we don't need to check if service_job_id and other
fields in json already filled - this info anyway comes from environment

- coveralls.io API is not documented. Code from:
https://github.com/lemurheavy/coveralls-ruby/
and
https://github.com/coveralls-clients/coveralls-python/
was used as an example.

* In case of error there is no url in json respnse

Print message field anyway - it can contain useful error message.

* Add debug

* Simplify

* Fix: for pull request CI_BUILD_EVENT set to 'pull_request'

* Remove debug
2018-10-14 09:38:57 +01:00
Vsevolod Stakhov
b8447825ac [Minor] Python... 2018-10-13 15:35:59 +01:00
Vsevolod Stakhov
96385ea4e6 [Minor] Python... 2018-10-13 15:24:34 +01:00
Vsevolod Stakhov
901f84c357 [Minor] Fucking python 2018-10-13 14:59:48 +01:00
Vsevolod Stakhov
581ce37bc8 [Minor] Another try to fix bloody python 2018-10-13 14:48:01 +01:00
Vsevolod Stakhov
7a58e9057c [Minor] Further try to fix bloody python 2018-10-13 14:33:28 +01:00
Vsevolod Stakhov
feff3ee1e9 [Minor] Use python3 2018-10-13 14:19:14 +01:00
Anton Yuzhaninov
f1223526c7 Drone speedup (#2588)
* Start switchind test to custom Docker images

Using Docker images with pre-installed delendencies will speedup
testing.

* Debug build in drone.io

* Use variable instead hardcoded path to the source

* Debug variable substitution by drone

Also according to comments in code DRONE_WORKSPACE is deprecated and
CI_WORKSPACE is a new form.

* One more try to use variables.

It looks like drone uses same rules as docker-compose:
https://docs.docker.com/compose/compose-file/#variable-substitution

* Cleanup debug

* Less verbose make output

* Be consistent in variable escaping

It works without escaping only becuse ${VAR} currently expanded by
drone, but $VAR is not.

* Use alpine base image for nodejs

It is smaller.

* Return rspamd-test

* Revert variable escaping

Wihtout escaping it is more easy to copy-past command for testing.
Just don't use ${var} when var should be expanded by shell and not
drone.

* Add debug

* Fix yaml parsing error

* Fix exit code capture

It should be done on the same line, because drone insert 'echo + cmd'
between commands.

* Remove debug

* Readability

No functional changes.

* Return functional tests

* Be consistent

* Add git stub for coveralls

* Send coverage

* Fix yaml parsing error

* Add links to Dockerfiles

* Send test log in case of test failure

XXX if rspamd-test failed, but functional was successful robot log will be
attached (but not useful).

* Don't run rspamd-test and functional tests in parallel

It looks like there is a race condition in writing coverage files.

* Try to run tests in parallel

* Add debug

* Fix parallel test run

test/rspamd-test and functional test both use luacov.stats.out file
in current directory. Run ./rspamd-test from anther directory.

* Use drone condition for sending coveralls report

Also don't send report if empty tocken was provided.

* Add mininal python3 compatibility
2018-10-13 11:16:34 +01:00
Vsevolod Stakhov
c5a97182d9 [Test] Fix tests that are not RFC conformant 2018-10-12 17:33:20 +01:00
Mikhail Galanin
1805dfc619 [Minor] Adopted merger to work with drone 2018-10-09 17:17:25 +01:00
Mikhail Galanin
592159d973 [Test] Collect coverage in all functional tests 2018-10-08 16:28:55 +01:00
Mikhail Galanin
394787e0a3 [Test] Coverage merge/push script 2018-10-08 08:59:23 +01:00
Mikhail Galanin
ec5ddd086c [Test] Collect coverage from rspamd workers 2018-10-08 08:58:50 +01:00
Mikhail Galanin
3440e3a862 [Test] use the coverage collector in tests 2018-10-05 12:35:31 +01:00
Mikhail Galanin
69b45a2214 [Test] added Lua test coverage collector for functional tests 2018-10-05 12:34:37 +01:00
Vsevolod Stakhov
c03f12c4c9 [Test] Fix reload test 2018-10-02 12:09:24 +01:00
Vsevolod Stakhov
647986d925 [Test] Fix and extend whitelist tests 2018-10-01 18:17:07 +01:00
Vsevolod Stakhov
c9ecda5cf9 [Test] Add more test messages 2018-10-01 18:16:51 +01:00
Vsevolod Stakhov
154b6993f1 [Test] Add more fake domains 2018-10-01 18:16:32 +01:00
Mikhail Galanin
4dfe49bc16 [Minor] Fixed sync redis connection with default arguments in rspamadm 2018-10-01 10:41:51 +01:00
Vsevolod Stakhov
80e19bd185 [Test] Fix AV tests 2018-09-29 17:26:14 +01:00
Vsevolod Stakhov
4cf94ce549
Merge pull request #2540 from negram/dns-sync-rspamadm
Dns sync rspamadm
2018-09-27 19:06:18 +01:00
Mikhail Galanin
023a17c1da [Test] fixed config path 2018-09-27 15:07:17 +01:00
Mikhail Galanin
13a1ea4afb [Test] Fixed undefined variable usage 2018-09-27 14:56:02 +01:00
Mikhail Galanin
48e23c6397 [Test] Add output logging 2018-09-27 14:40:00 +01:00
Mikhail Galanin
b00b1fd844 [Test] Added test for dns request from rspamadm 2018-09-27 14:24:32 +01:00
Mikhail Galanin
e3fc01dad3 [Minor] Close file once it is not needed 2018-09-27 10:24:03 +01:00
Mikhail Galanin
1d07d1445e [Test] Actually the functional test 2018-09-24 13:24:27 +01:00
Mikhail Galanin
31270b9fa0 [Test] Final cases for selectors - register_* and functional for regexps 2018-09-24 13:23:17 +01:00
Vsevolod Stakhov
549b34b197 [Minor] Fix test cases 2018-09-23 18:34:04 +01:00
Mikhail Galanin
5aaa0cdfad [Test] Input data for the last test case 2018-09-18 11:22:52 +01:00
Mikhail Galanin
5ec5204446 [Test] Added test for case "hello.\nagain" 2018-09-18 11:12:28 +01:00
Mikhail Galanin
b1543ef5c4 [Test] Forgotten config 2018-09-18 11:05:33 +01:00
Mikhail Galanin
247bc030c0 [Test] Test for regexps in {sa_body} and urls with newlines 2018-09-18 10:41:21 +01:00
Vsevolod Stakhov
c05c2b3b82 [Fix] Fix more issues with watching of async events 2018-09-12 17:29:15 +01:00
Vsevolod Stakhov
88689d7be5
Merge pull request #2485 from negram/dns-api-test
[Test] Added test for DNS api
2018-09-12 12:00:34 +01:00
Mikhail Galanin
9ea7effc33 [Minor] Removed extra whitespace 2018-09-12 09:23:55 +01:00
Mikhail Galanin
7f6873b541 [Minor] Removed unused variable 2018-09-12 09:22:18 +01:00
Mikhail Galanin
22aeb02b7a [Test] Added test for DNS api 2018-09-12 09:01:31 +01:00
Mikhail Galanin
f57f764849 [Test] Added test for new version of Redis API 2018-09-12 08:57:23 +01:00
Mikhail Galanin
09551bcf6a Merge branch 'master' into redis-coroutines 2018-09-11 11:07:58 +01:00
Mikhail Galanin
352bf6f96a [Test] Mark error with symbol in response 2018-09-10 15:35:52 +01:00
Mikhail Galanin
a77f6d5515 [Test] Added test for Redis API 2018-09-10 15:19:16 +01:00
Mikhail Galanin
6abc2ca8d9 [Test] Added test case for error handling check 2018-09-10 14:50:13 +01:00
Vsevolod Stakhov
819de7eed4
Merge pull request #2476 from negram/fix-milter-test
Fix milter test
2018-09-10 11:22:12 +01:00
Vsevolod Stakhov
374f1a04be
Merge pull request #2475 from negram/dnssec-mock
[Test] One more domain to faking records
2018-09-10 11:17:53 +01:00
Mikhail Galanin
6990ef3daa Merge branch 'master' into rspamadm-coroutines 2018-09-10 11:02:47 +01:00
Mikhail Galanin
2a29cf229e [Test] More fake recors
to fix "SPF DNSFAIL FAILED A" and "SPF DNSFAIL FAILED MX" cases
2018-09-10 11:00:41 +01:00
Mikhail Galanin
60b2f09394 [Test] More debug info 2018-09-10 10:38:36 +01:00
Mikhail Galanin
0b49102df9 [Test] Mark "connection" resource as freed
mt.disconnect() performs free(). If we call it twice with the same argument, we will get double free()
2018-09-10 10:37:59 +01:00
Mikhail Galanin
65b03cd7e7 [Test] Use dofile instead of require
require implies module loading via standard mechanism (which is have to present in LUA_PATH). Here we just load the specific files.
2018-09-10 10:36:47 +01:00
Mikhail Galanin
4b237a7e75 [Test] And another fake domain
Used in "Blacklist" test and slows it down when no connection
2018-09-10 09:44:56 +01:00
Mikhail Galanin
d3ecbb2cc6 [Test] One more domain to faking records 2018-09-10 09:23:10 +01:00
Mikhail Galanin
8f30094140 [Test] Small refactoring in dummy services test
Moved code for pid writing and terminating into a separated module.
Also added cleanup: in some cases, processes remained in the system after test is done. It should not happen anymore
2018-09-07 17:59:28 +01:00
Mikhail Galanin
4e96718ad3 [Test] Added check if there was no segfault during the test run 2018-09-06 17:43:59 +01:00
Mikhail Galanin
ed1c0fe1f5 [Minor] It's too early to test rspamadm with redis 2018-09-06 09:30:25 +01:00
Mikhail Galanin
49fb6ed4d6 [Test] Added more test for rspamadm and test for lua tcp client invoked via rspamadm 2018-09-05 13:43:21 +01:00
Mikhail Galanin
ee6aa02264 [Test] Read the whole response from dummy http 2018-08-31 10:12:36 +01:00
Mikhail Galanin
c392c868b5 [Minor] test 2018-08-30 17:20:31 +01:00
Mikhail Galanin
b4d4cff669 [Test] Test for TCP library 2018-08-30 16:51:55 +01:00
Mikhail Galanin
2d492871cd [Test] Use new routines in test, just for test (manual one) :) 2018-08-24 09:20:48 +01:00
Mikhail Galanin
213ba86aaa [Test] More test cases for ClickHouse 2018-08-24 09:20:06 +01:00
Mikhail Galanin
a4b08ac566 [Test] More test cases for HTTP API 2018-08-23 13:49:59 +01:00
Mikhail Galanin
170a4c4a04 [Test] Improved process termination in tests 2018-08-22 16:00:30 +01:00
Mikhail Galanin
9ee6b0c059 [Test] Added test for HTTP API 2018-08-22 15:59:44 +01:00
Mikhail Galanin
5d8ce4565d [Test] Added test for clickhouse migration vNONE -> v2 2018-08-21 17:00:23 +01:00
Mikhail Galanin
533f9e950d [Test] Added few more fake records 2018-08-14 16:33:23 +01:00
Vsevolod Stakhov
1ccdf4e9a6
Merge pull request #2418 from negram/save-logs-and-configs-in-tests
[Test] Save logs and config once a test has been done
2018-08-13 11:23:37 +01:00
Mikhail Galanin
ca8bf2132d [Test] Save logs and config once a test has been done 2018-08-13 08:52:35 +01:00
Mikhail Galanin
e4be0b2cfa [Test] Fake Lua test suite 2018-08-10 15:07:17 +01:00
Mikhail Galanin
0df3aa4809 [Test] Cover "102 Multimap" suite with faked records 2018-08-10 13:10:36 +01:00
Mikhail Galanin
279e042afe [Fix] Use fake dns records in tests 2018-08-08 15:49:47 +01:00
Vsevolod Stakhov
9b09189ee8 [Test] Add more gtube parts to test 2018-08-01 12:47:57 +01:00
Vsevolod Stakhov
fc5ca304fb [Test] Remove broken test 2018-07-31 11:55:11 +01:00
Vsevolod Stakhov
30b6627f1f [Test] Disable broken test 2018-07-28 13:50:29 +01:00
Vsevolod Stakhov
bdcff1f42e [Test] Log rspamc output 2018-07-28 13:36:56 +01:00
Mikhail Galanin
6a1a93fffc [Fix] Detect empty text part as text, not HTML
Issue: #2367
2018-07-27 16:57:32 +01:00
Vsevolod Stakhov
4a5f7b6cae [Conf] Add fallback maps 2018-07-18 14:26:25 +01:00
Vsevolod Stakhov
03acc9d2ac [Conf] Use remote maps 2018-07-17 16:58:47 +01:00
Vsevolod Stakhov
c8e35d1204 [Test] Remove delay 2018-06-26 17:42:21 +01:00
Vsevolod Stakhov
1c5687a9d6 [Test] Another blind try to fix 2018-06-22 10:49:43 +01:00
Vsevolod Stakhov
823b80c804 [Test] Sigh... another try to fix tests config 2018-06-22 10:32:39 +01:00
Vsevolod Stakhov
1055b0c096 [Test] Use the proper config 2018-06-22 10:21:02 +01:00
Vsevolod Stakhov
6d7b5754df [Test] Restore test 2018-06-22 10:00:03 +01:00
Vsevolod Stakhov
47ba92ab5c [Test] Try to disable test 2018-06-21 18:55:44 +01:00
Vsevolod Stakhov
1c7074c76b [Test] Add a simple test for zerofont 2018-06-21 14:46:29 +01:00
Vsevolod Stakhov
96acdaae8b [Fix] Update ed25519 signing schema 2018-06-18 15:24:03 +01:00
Vsevolod Stakhov
de749fa7d1 [Test] Check legacy protocol more precisely 2018-06-15 16:17:04 +01:00
Vsevolod Stakhov
378a1f21a3 [Test] Fix config 2018-06-13 14:45:17 +01:00
Vsevolod Stakhov
d133232f34 [Test] Add nginx setup test 2018-06-13 14:37:55 +01:00
Vsevolod Stakhov
d34f545496 [Test] Add tests for strict pubkey checking 2018-06-12 17:34:42 +01:00
Vsevolod Stakhov
e29277ca20 [Feature] Add maps based on Top Level Domains 2018-06-12 15:42:58 +01:00
Vsevolod Stakhov
15a5ad7fa3 [Test] Add ed25519 tests 2018-06-11 17:30:05 +01:00
Vsevolod Stakhov
c48d090592 [Test] Remove url tags tests - they rely on broken functionality 2018-06-06 17:02:10 +01:00
Vsevolod Stakhov
1ce6f7f536 [Test] Disable broken tests 2018-05-17 14:59:30 +01:00
Alexander Moisseev
ae738eea40 [Minor] Check for archive cloaking
like .zip.gz
2018-05-17 11:36:30 +03:00
Vsevolod Stakhov
8329774d43 [Test] Try to fix AV tests 2018-04-30 20:01:55 +01:00
Vsevolod Stakhov
93c8d14a6b [Minor] Fix various minor issues 2018-03-03 13:48:22 +00:00
Andrew Lewis
e17a40203e [Test] Extend & enable combined milter test 2018-02-27 19:21:20 +02:00
Andrew Lewis
f608f7d32a [Test] Extend milter tests 2018-02-12 13:43:21 +02:00
Vsevolod Stakhov
fc32c386a2
Merge pull request #2007 from fatalbanana/miltertest
Beginnings of tests for milter
2018-01-30 18:38:00 +00:00
Andrew Lewis
77e0862c9e [Test] Beginning of tests for milter 2018-01-30 17:06:35 +02:00
Andrew Lewis
4a070b96c0 [Test] Try really improve test stability
- Drop tests involving sqlite
 - Also drop tests for old mmap stats backend
 - Relax relearn test
 - Wait longer for fuzzy sync
2018-01-29 11:27:46 +02:00
Andrew Lewis
54b527ee1e [Minor] Fix previous commit 2018-01-24 13:52:10 +02:00
Andrew Lewis
662b20a3db [Test] Try improve test stability 2018-01-09 12:53:26 +02:00
Vsevolod Stakhov
a6c14bd4d0
Merge pull request #1950 from moisseev/mime_types
[Fix] mime_types: fix next-to-last extension length check
2017-12-08 18:14:53 +00:00
Vsevolod Stakhov
a3f2359011
Merge pull request #1951 from fatalbanana/exim_rcvd
Fix Exim Received header protocol parsing
2017-12-08 18:14:02 +00:00
Andrew Lewis
03cf7aff97 [Test] Redis key expansion & antivirus ordered patterns 2017-12-08 15:40:21 +02:00
Andrew Lewis
ae72c0999e [Test] Multimap received header flags 2017-12-08 15:11:16 +02:00
Alexander Moisseev
4d9a038f4e [Test] Add tests for MIME_DOUBLE_BAD_EXTENSION FPs 2017-12-08 10:25:49 +03:00
Alexander Moisseev
c0b636ed17 [Test] Add test for date followed by bad extension 2017-12-06 23:22:27 +03:00
Andrew Lewis
0e7f792831 [Test] e-Mail detection 2017-10-21 21:01:26 +02:00
Alexander Moisseev
48be9f7649 [Test] Add test for next-to-last double bad extension 2017-10-03 09:54:51 +03:00
Andrew Lewis
fea677fcbf [Test] Relax controller errors check 2017-09-13 22:17:44 +02:00
Andrew Lewis
b51ce98889 [Minor] Fix tests 2017-09-11 16:05:51 +02:00
Andrew Lewis
aaadc566ea [Test] SPF PTR macro 2017-09-08 20:57:07 +02:00
Andrew Lewis
745bc065bb [Test] Some tests for whitelist module 2017-09-05 15:14:22 +02:00
Andrew Lewis
fa724a4603 [Test] Settings: few more tests 2017-08-28 12:43:13 +02:00
Andrew Lewis
af4c44e361 [Test] Fix tests 2017-08-16 22:26:39 +02:00
Andrew Lewis
fc6155ae6b [Minor] Tests: don't try bind ports 2017-06-30 14:02:40 +02:00
Andrew Lewis
c07a20097f [Test] Check controller's error buffer 2017-06-01 16:36:51 +02:00
Andrew Lewis
e7c48b947f [Test] Phishing 2017-05-26 14:04:05 +02:00
Andrew Lewis
3c1cad1ced [Minor] Fix previous commit 2017-05-19 14:22:41 +02:00
Andrew Lewis
8976d8ff4e [Minor] Fix tests 2017-05-19 14:07:59 +02:00
Andrew Lewis
93a5203173 [Minor] Add timeouts to dummy socket servers 2017-05-19 13:07:21 +02:00
Vsevolod Stakhov
82c3c3a5ef [Minor] Fix tests 2017-05-19 11:00:22 +01:00
Andrew Lewis
d814a76a7c [Minor] Fix test 2017-05-15 12:58:01 +02:00
Andrew Lewis
7b0d411739 [Test] Multimap: Received IP filters with Redis 2017-05-09 14:20:39 +02:00
Andrew Lewis
734d16e1f4 [Test] Test dkim_signing with redis 2017-05-09 12:56:34 +02:00
Andrew Lewis
1ca24ef406 [Test] Some tests for settings 2017-04-26 16:35:20 +02:00
Andrew Lewis
dfd336d4e9 [Test] Test option order 2017-03-23 13:07:38 +02:00
Andrew Lewis
83b5732cda [Test] Test rspamadm confighelp doesn't yield an error 2017-03-14 16:04:00 +02:00
Andrew Lewis
6bd2691f9c [Test] Fix F-Prot/ClamAV test stability 2017-03-10 16:23:23 +02:00
Andrew Lewis
14223b81a9 [Test] Basic tests for DKIM signing module 2017-03-06 18:41:34 +02:00
Andrew Lewis
b88b679dd7 [Test] Some tests for antivirus module 2017-03-06 16:45:21 +02:00
Andrew Lewis
eaa7e99d39 [Test] Test URL tag persistence 2017-02-28 15:33:25 +02:00
Andrew Lewis
a2e7253038 [Test] Test map key values 2017-02-27 18:11:44 +02:00
Andrew Lewis
b031412b16 [Test] Add tests for multimap received maps 2017-02-13 18:33:17 +02:00
Andrew Lewis
6e75ceff2f [Minor] Fix tests 2017-02-10 16:31:56 +02:00
Andrew Lewis
3205e92fb8 [Test] Additional tests for multimap 2017-02-10 15:53:19 +02:00
Andrew Lewis
e9230a0211 [Test] Fix tests 2017-01-11 16:20:47 +02:00
Andrew Lewis
f9a95289d5 [Minor] Avoid reusing GError 2016-12-30 16:19:34 +02:00
Andrew Lewis
77c4f85c9e [Test] Improve SpamAssassin dependencies tests 2016-12-01 16:21:48 +02:00
Andrew Lewis
e217a37d76 [Minor] Trim whitespace 2016-11-18 20:06:22 +02:00
Andrew Lewis
e42c3953ab [Test] Some basic tests for hashes in Lua 2016-11-18 11:59:32 +02:00
Andrew Lewis
3a303cdda9 [Test] Integrate luacheck into test suite 2016-11-17 13:56:31 +02:00
Andrew Lewis
da83f5296a [Minor] Lint rspamadm & test suite scripts 2016-11-15 17:30:39 +02:00
Andrew Lewis
98fece257a [Test] Enable Redis shingles test 2016-11-07 09:14:13 +02:00
Andrew Lewis
e08efcba4a [Test] Add tests for Redis fuzzy backend and fix fuzzy fuzzy test 2016-11-04 11:32:04 +02:00
Andrew Lewis
36d11e2e6f [Minor] Get rid of some global variables
- Also fix some bugs along the way
2016-11-01 13:33:56 +02:00
Andrew Lewis
f60059e314 [Test] Try improve reliability of fuzzy tests 2016-10-26 09:23:34 +02:00
Andrew Lewis
145ca18232 [Test] Increase DNS retransmits 2016-10-20 12:31:27 +02:00
Andrew Lewis
edcc2ad4e1 [Test] Add map reload test 2016-10-19 18:04:01 +02:00
Vsevolod Stakhov
f4acd9ba6f Merge pull request #1044 from fatalbanana/ports
[Test] Wait for ports to be confirmed-free inbetween runs
2016-10-17 16:45:51 +01:00
Andrew Lewis
b4173ec515 [Test] Wait for ports to be confirmed-free inbetween runs 2016-10-17 14:37:58 +02:00
Andrew Lewis
b92c0cd6bf [Test] Fix password tests post-changes 2016-10-17 12:06:23 +02:00
Vsevolod Stakhov
5b116694ef Merge pull request #1031 from fatalbanana/test
[Test] Wait until size of PIDfiles is > 0
2016-10-14 14:41:41 +01:00
Andrew Lewis
e917569079 [Test] Wait until size of PIDfiles is > 0 2016-10-14 15:39:34 +02:00
Vsevolod Stakhov
551fa5f1b2 Merge pull request #1028 from fatalbanana/fuzzy
Test for fuzzy replication
2016-10-14 14:12:51 +01:00
Andrew Lewis
50ef6c7161 [Test] Try improve test stability 2016-10-14 15:08:18 +02:00
Andrew Lewis
f738c01a45 [Test] Test fuzzy replication 2016-10-13 19:19:24 +02:00
Andrew Lewis
07ce6c516a [Test] More testcases for SPF 2016-10-06 11:19:11 +02:00
Andrew Lewis
6069b96370 [Test] Add some missing testcases for DKIM/DMARC 2016-10-04 16:29:45 +02:00
Andrew Lewis
6d183977c8 [Minor] Fix a SPF_DNSFAIL case 2016-10-03 12:16:21 +02:00
Andrew Lewis
ebd2a08ccc [Minor] SPF: Make (almost) all unresolveable records PERMFAIL 2016-09-30 12:36:25 +02:00
Andrew Lewis
8f6dc30fef [Test] Extend SPF tests 2016-09-27 15:28:25 +02:00
Andrew Lewis
18b3d06674 [Minor] Fix SPF PERMFAIL/DNSFAIL behaviour on failed redirect 2016-09-26 11:39:25 +02:00
Andrew Lewis
baf74ba8c1 [Feature] Add R_SPF_PERMFAIL symbol
- Also yield R_SPF_DNSFAIL on bogus redirect
 - Also grow SPF tests
2016-09-23 15:03:41 +02:00
Andrew Lewis
9c76079a32 [Test] Some tests for SPF 2016-09-21 17:37:24 +02:00
Andrew Lewis
4a09a0c772 [Test] Test DKIM permfail 2016-09-19 15:03:05 +02:00