Felipe Zimmerle
52bef20ce5
Adds unit test to the JSON parser
...
Unit test to test whenever the JSON parser is enabled
2014-03-31 16:22:09 -07:00
Felipe Zimmerle
d75e443b9b
Adds regression test to SecStatusEngine
...
Just checking the error log while have SecStatusEngine set to On in a first
test and Off in a second.
2014-03-31 07:14:55 -07:00
Felipe Zimmerle
d93ce9ceee
Adds REQUEST_FULL and REQUEST_FULL_LENGTH variables
...
This variable is a combination from REQUEST_LINE, REQUEST_HEADERS and
REQUEST_BODY (if any). Expects for \n\n in between each of those values.
2014-03-31 07:14:55 -07:00
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
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
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
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
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
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
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
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
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
b1v1r
8553cab4a7
Moved api examples to "ext" dir and hooked them into autotools for building with "--enable-extentions".
...
Upgraded to autoconf 2.65.
2010-05-05 23:00:48 +00:00
b1v1r
eb6b9274af
Redo build system to properly use autotools and avoid compilation with apxs util.
2010-04-25 23:24:09 +00:00