109 Commits

Author SHA1 Message Date
Felipe Zimmerle
5f996d45f0 Adds regression test to SecRequestBodyLimitAction
This commits adds the following regiression test to SecRequestBodyLimitAction:
* config - SecRequestBodyLimitAction Reject (multipart/greater - chunked): passed
* config - SecRequestBodyLimitAction Reject (plain/greater): passed
* config - SecRequestBodyLimitAction ProcessPartial (multipart/greater - chunked): passed
* config - SecRequestBodyLimitAction ProcessPartial (plain/greater): passed
2014-02-28 13:33:49 -08:00
Felipe Zimmerle
5d2e3d4321 test: 10-misc-directives.t is not considering log anymore
In this case the new server name is expected to be logged, only in the Apache
version or the debug version of Nginx. The test is still valid, in the sense
that it is checking for the server response, expecting the new "Server:"
header.
2014-01-17 13:02:48 -08:00
Felipe Zimmerle
8804b55cdd test: Makes regression test mac friendly
Apache configuration was updated and the configure script is using
an alternative way to discovery the libexecdir.
2014-01-17 11:24:53 -08:00
Felipe Zimmerle
8314791c9e test: nginx: Adds timeout while listening for a socket. 2014-01-16 20:22:38 -08:00
Felipe Zimmerle
215042af21 test: nginx: Points the !# to envoriment.
Instead of using a hardcoded path to Perl, using what is provided by the
environment. Avoiding problems with MacOS, where two different
versions of Perl are expected. One provided by the system and other
by MacOS ports.
2014-01-16 10:31:59 -08:00
Felipe Zimmerle
d26e639512 test: nginx: Speeds up regression test in nginx.
Instead of use `sleep` it nows parser the nginx logs to figure out
whenever it start or stop. Audit log timeout was reduced to 8 seconds.
2014-01-16 10:30:23 -08:00
Felipe Zimmerle
9bf1f6a2b3 test: removes uncessary ifDefine at 10-tfn-cache.t
IfDefines such as: <IfDefine MODSEC_2.5> are just compatible with Apache a
solution to check if some resource is available or not have to be developed
to be used in situations like that. This commit just removes the IfDefine.
2014-01-13 08:11:42 -08:00
Felipe Zimmerle
94097103c8 test: nginx: Adds missing environment variables.
Added the following environment variables:
 - DATA_DIR
 - TEMP_DIR
 - UPLOAD_DIR
These were needed by the testing framework, as the name explains.
2014-01-13 05:44:28 -08:00
Felipe Zimmerle
6c106b1fd7 test: disabling: SecAuditLogType Concurrent
The test is making usage of a custom script, which is not functional in
in Nginx due to timing issues. Disabling it for now until we came up
with a solution that works for every port/version.
2014-01-13 05:44:28 -08:00
Felipe Zimmerle
8e390899e0 test: nginx: Increses the timeout while reading the audit log.
Audit logs are taking too long to be written on the disk. One of the
consequence of that is to have tests that demands to read from audit
log failing. Increase the timeout makes it wait a little bit more for
the logs before gave up.
2014-01-13 05:44:14 -08:00
Felipe Zimmerle
3cf1701794 test: Adds loading tests also to nginx.
It was trying to match "ModSecurity for Apache.* configured". This patch
makes it expect for "ModSecurity for nginx.* configured" while nginx
version is being used/tested.
2014-01-09 12:13:47 -08:00
Felipe Zimmerle
795d6a64d2 nginx: Warn about not workable 'proxy'
Proxy is not yet ready for nginx. Instead of give a generic error, this patch
adds a clean message explains that such functionality is not available on the
nginx port. This patch also modifies the test cases to reflect this changes.
2014-01-09 11:12:28 -08:00
Felipe Zimmerle
7478faa5ce test: Adds support to handle different content in log depending on the version
Some functionalities are just enabled on Apache, not part of nginx or IIS. As
example we have the "proxy", currently just supported in Apache. This patches
add to our regression test suite the ability to expect different contents
based on the targert platform.
2014-01-09 09:40:06 -08:00
Felipe Zimmerle
21e25c50af test: nginx: Adds missing files
This commit is just to circunvent a problem, there is no need to have
those files duplicated in our repository, that will be fixed soon.
2014-01-06 19:52:10 -08:00
Felipe Zimmerle
176396ddc1 tests: nginx: Allow POSTs in static files
By default Nginx does not allow POST in static files, which is very
used by the regression test. This is a ugly hack just to make possible
to gather some numbers. Better solution will arrive soon.
2014-01-06 19:22:27 -08:00
Felipe Zimmerle
445783d067 tests: Sleeps over 20 seconds if nginx failed to exit immediately
Sometimes nginx failed to exit cleanly in the expected time. This patch adds
the capability to wait for more 20 seconds.
2014-01-03 13:09:44 -08:00
Felipe Zimmerle
fb4e1f1b6b tests: Adds random data to a post making it workable in nginx
For some reason nginx fails in a post with no body. This patch adds some random
data here. Other platforms should not be affected.
2014-01-03 09:36:25 -08:00
Felipe Zimmerle
450d621ca9 tests: adds test-regression-nginx to the makefile
This patch adds the nginx regression test entry to project makefile.
2014-01-03 09:26:30 -08:00
Felipe Zimmerle
96ad8267ee tests: Marks the run-regression-tests-nginx.pl script as executable.
This patch just add +x to  run-regression-tests-nginx.pl.
2014-01-03 09:25:27 -08:00
Felipe Zimmerle
0ad390d12d Tests: fixes tests/regression/rule/10-xml.t
SecXmlExternalEntity was not informed. By default its value is Off. This patch
set the SecXmlExternalEntity to On in order to load the external resources
needed for this test case.
2014-01-01 20:56:06 -08:00
Felipe Zimmerle
ba0818ca32 tests: cleans up the apache configuration file
Simplified the apache configuration file, so that, we can handle easily
different Apaches versions
2014-01-01 16:09:21 -08:00
Felipe Zimmerle
6325ed8d41 Tests: fixes regression/misc/10-tfn-cache.t
Tests were failing because they were writing wrong/outdated.
2014-01-01 11:49:08 -08:00
Felipe Zimmerle
ddb4fceb63 Tests: fixes regression/rule/20-exceptions.t
Tests were failing because they were writing wrong/outdated.
2014-01-01 11:21:37 -08:00
Felipe Zimmerle
0c99063aae Tests: fixes regression/rule/00-basics.t
Tests were failing because they were writing wrong/outdated.
2014-01-01 11:02:20 -08:00
Felipe Zimmerle
7c9ebfeb20 Tests: fixes regression/action/10-logging.t
Tests were failing because they were writing wrong/outdated.
2014-01-01 10:52:44 -08:00
Felipe Zimmerle
11287a6b95 test: fixes regression/misc/00-multipart-parser.t
Tests were failing because they were writing wrong/outdated.
2014-01-01 10:29:21 -08:00
Felipe Zimmerle
b0025c88fa tests: fixes regression/config/10-request-directives.t
Tests were failing because they were writing wrong/outdated.
2014-01-01 10:28:56 -08:00
Felipe Zimmerle
e5560a6a43 tests: fixes regression/config/10-misc-directives.t
SecDefaultAction was failing due to a wrong written test.
2014-01-01 10:00:08 -08:00
Felipe Zimmerle
1cde4d2dd9 Organizes all Makefile.am
Now using one file per line (sorted). This is the better way
to handle it, since it reduces the possibility of merge conflicts.
2013-12-13 09:44:51 -08:00
Felipe Zimmerle
ae252ee876 Regression tests: makes configuration compatible with 2.2 and 2.4 (try 2) 2013-12-12 14:53:49 -08:00
Felipe Zimmerle
6fc4cac37a regression-tests: makes configuration compatible with 2.2 and 2.4 2013-12-12 14:53:49 -08:00
Felipe Zimmerle
e9813cd0d9 Regression test: get it working with apache 2.4
Changes in httpd.conf.in to get it working with apache 2.4
2013-12-12 14:53:49 -08:00
Felipe Zimmerle
f70f6f4281 Redefines unixd_set_global_mutex_perms on tests
Avoding conflicts with the standalone implementation
2013-12-04 19:56:54 -08:00
Felipe Zimmerle
cef72855e4 test: Avoids conflict of fuctions definition 2013-12-04 18:53:03 -08:00
Felipe Zimmerle
cc982ae42e test: Makes the unit tests to work again
The unit tests was not working due to lack update. This patch adds
the necessary stuff to have it work again.
2013-12-12 11:44:41 -08:00
Breno Silva
8b6efc013d Fix make (rx regex) test 2013-07-16 13:25:47 -07:00
Nick Galbreath
69b1095947 fix makefiles 2013-06-04 11:12:45 +09:00
Breno Silva
aa18ec7f45 Updated copyright dates 2013-04-19 03:20:46 -04:00
Breno Silva
835661964c Fixed: tests for detectSQLi 2013-04-19 02:18:37 -04:00
Breno Silva
c5e4605046 Added Libjection tests 2013-04-18 23:05:24 -04:00
chaizhenhua
e9af8a3ab1 Added Nginx regression test 2013-03-31 15:25:24 +08:00
Breno Silva
ca78eba855 Fixed: Regression tests with no ID present 2013-03-24 03:07:21 -04:00
Breno Silva
6d9327f4a8 Fix error_message type 2012-10-30 21:14:51 -04:00
brenosilva
14156d831b Add ipmatchFromfile 2012-06-01 20:26:51 +00:00
brenosilva
f0fab2a803 Fix apache 2.4 compilation issue during make test 2012-05-14 23:08:11 +00:00
brenosilva
a4f0957b0c Revert hexDecode and add new sqlHexDecode 2011-10-10 16:24:07 +00:00
brenosilva
a16c002f39 Fix make test 2011-09-29 14:22:37 +00:00
brenosilva
3d69126de0 Build and code fixes 2011-06-14 18:16:55 +00:00
brenosilva
c41c3cee26 Fixed building with LUA 2011-06-06 14:53:21 +00:00
brenosilva
f3f7d64888 Delete useless files 2011-04-19 18:47:49 +00:00