summaryrefslogtreecommitdiffstats
path: root/regress/usr.sbin/relayd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* test HEAD requests, from niklas@benno2021-03-242-9/+56
|
* Remove echo headlines.bluhm2020-12-171-3/+1
|
* Set TCP option NODELAY in relayd and in client and server. Thisbluhm2020-11-073-5/+10
| | | | | | | speeds up transferring data and avoids to run into timeout. The test was broken since switching to TLS 1.3 if running relayd on a remote machine. With no delay in tcp, https-multi using TLS 1.3 is slightly faster than TLS 1.2 on i386.
* Test should also run if there is no obj directory. Name regressbluhm2019-07-121-2/+2
| | | | targets consistently with a run- prefix.
* Put some padding in Perl pack of struct timeval. On armv7 structbluhm2019-07-051-2/+2
| | | | | | timeval is 16 bytes, on i386 only 12 bytes were needed. The additional space makes setsockopt(2) succeed in armv7 regress. from Moritz Buhl
* update to reflect changes introduced with relayd r1.227denis2018-10-201-2/+4
|
* Simplify regress tests by using the new setup and cleanup feature.bluhm2018-10-061-7/+6
|
* Add more tests that check the timeout behavior of relayd.bluhm2018-01-0416-0/+348
|
* Avoid race in relayd test that uses an invalid chunked header. Waitbluhm2017-09-181-1/+5
| | | | until server has started, then expect error message in server log.
* Do not mix Perl read() with sysread(). Data could get stuck in thebluhm2017-07-145-55/+74
| | | | | | | buffered IO and test run-regress-args-http-chunked.pl would fail on slow hardware. Limit debug output to one line per 1% of data. Improve function write_syswrite(). Sync with httpd regress. Fix whitespace.
* Mark the IO::Socket::SSL server socket with SSL_server to avoidbluhm2017-01-311-1/+2
| | | | OCSP error messages.
* Check wether sudo or doas is working once at the beginning of thebluhm2016-09-231-2/+10
| | | | test.
* Call setsockopt(2) before listen(2) in relayd tests and adjust somebluhm2016-09-222-12/+13
| | | | error messages.
* Print SKIPPED if a regress test cannot be executed for some reason.bluhm2016-09-021-1/+2
| | | | This allows to identify such tests by looking at their output.
* Set relayd socket buffer size to reasonable value to make test passbluhm2016-08-251-1/+1
| | | | in different environments.
* Make relayd test slow-consumer more reliable. Set SO_SNDTIMEObluhm2016-08-255-13/+30
| | | | | | sockopt correctly with Perl pack on i386. Make it possible to grep in each others client and server logfile. Client does not simply sleep but waits for short write at server.
* Improve parsing of the Host by following RFC 7230 Section 5.4 more strictly:reyk2016-07-274-0/+144
| | | | | | | | | | | | | | | - Respond with a 400 (Bad Request) if there is more than one Host: header to prevent ambiguities. - Make sure that the host in the optional absolute form of request-target (eg. GET http://www.target.com/ HTTP/1.1) matches the Host: value. Proxies are supposed to ignore the Host: value if the request-target exists, but relayd used to ignore the absolute request-target form instead. In HTTP terminology, relayd is a gateway and not a proxy, but it has to make sure that the host is validated consistently. OK benno@ bluhm@
* add a regression testbenno2016-07-221-0/+33
|
* s/sudo/doas/benno2016-07-201-1/+1
|
* Fix some Perl statements perlcritic was bitching about: Variablebluhm2016-05-035-17/+21
| | | | declared in conditional statement.
* Keep relayd test certificate names in sync with syslogd.bluhm2015-10-093-4/+4
|
* Fix white spaces.bluhm2015-07-202-21/+21
|
* Allow to use $curdir, $objdir, $host, $hostname in the test configbluhm2015-07-201-1/+6
| | | | | file. They are substituted automatically, to avoid this in each single test.
* add relayd regression test args-http-slow-consumer.plbenno2015-07-184-3/+175
| | | | ok reyk@, bluhm@
* Align the three variants of Remote.pm.bluhm2015-06-251-5/+6
|
* Add tests for relayd TLS inspection with plain SSL and HTTPS.bluhm2015-05-228-8/+76
|
* Add test cases for a crash reported by Bertrand PROVOST. When abluhm2015-05-1711-26/+478
| | | | | | | | | | | | | | HTTP client writes multiple requests or chunks in a single transfer, relayd invokes the libevent callback manually for the next data. If the callback closes the session, this results in an use after free. Test an invalid second request method, test an invalid header line in the second PUT request, test an invalid second chunked length for a PUT request. Also test multiple valid HTTP 1.1 PUT requests with chunked body. To detect crashes of relayd, start it with "prefork 1" and grep for "lost child" log messages. Unfortunately only the first child is monitored by the parent.
* Make some regular expressions more strict. This allows the testsbluhm2015-04-293-3/+3
| | | | to pass also if relayd is compiled with DEBUG.
* Let the HTTP client close the connection within an incomplete headerbluhm2015-04-272-0/+64
| | | | | | line. Check that the session in relayd gets closes and it does not result in a file descriptor leak. Bug in relayd found by claudio@.
* Fix relayd http regression tests. If http response is not ok, thebluhm2015-01-051-3/+7
| | | | | response's content length may be an unexpected value as an error page is shown.
* Create CA and certificates for TLS tests consistently. Betterbluhm2014-12-313-17/+24
| | | | logging of SSL errors. Do not import unneeded Socket constants.
* Update test - the hashkey log message disappeared.reyk2014-12-181-1/+0
|
* By now relayd expects tls in its config file and writes tls intobluhm2014-12-142-7/+7
| | | | its log file. Change regression tests form ssl to tls.
* Make the perl modules consistent for the multiple regression tests.bluhm2014-08-187-68/+52
| | | | | This includes coding style, better error messages and variable naming.
* Add a description of what the relayd and sosplice regression testsbluhm2014-08-181-1/+23
| | | | do. Also explain the optional environment variables.
* Add test cases for multiple small HTTP requests. Many PUT requestsbluhm2014-08-184-0/+108
| | | | | with ony byte content length triggered relayd to hang. This has been fixed already.
* Sync regress/usr.sbin/relayd with recent http.h changesdoug2014-08-171-2/+2
|
* A HTTP connection may have multiple requests with content. Allowbluhm2014-07-2011-19/+170
| | | | | | to specify an array of md5 hashes in the test arguments and check all of them in the client and server log files. So test that relayd does not modify the http body.
* Now that the relayd timeouts have been fixed, make the http timeoutbluhm2014-07-141-2/+2
| | | | test more strict again. Backout rev 1.2 of args-timeout-http.pl.
* fix regress tests after log changes. noticed by bluhm@.benno2014-07-132-2/+2
| | | | everybody stand back. i know regular expressions.
* improve log output for relays. adjust regress testsbenno2014-07-132-2/+2
| | | | ok reyk
* repair matching of headers, add regress test for this errorbenno2014-07-131-0/+43
| | | | ok reyk
* fix relay "append header" action, add regression test for appendbenno2014-07-121-0/+40
| | | | ok reyk
* Test filtering by methodreyk2014-07-121-0/+27
| | | | ok bluhm@ benno@
* Put a license file into the test directories with multiple argumentbluhm2014-07-111-0/+14
| | | | | files. We do not want to put a license header into each subtest. suggested by reyk@
* Limit HTTP header length to about 8K (based on the default of 4-8K inreyk2014-07-111-0/+26
| | | | | | common web servers). Add a related regress test. OK benno@
* Make the test output easier to read by splitting the test casesbluhm2014-07-111-1/+2
| | | | with an empty line and a header line.
* Fix dryrun for remote relayd test.bluhm2014-07-111-2/+2
|
* Add a time.log file that accumulates timing information about thebluhm2014-07-118-7/+31
| | | | | executed tests. This allows to micro benchmark relayd. based on a diff from andre@; OK reyk@
* Simplify the code that handles the HTTP headers by using an RB treereyk2014-07-113-3/+3
| | | | | | | | | | with associated lists instead of the complicated lookup table and "others" list. This might add a little malloc overhead for common headers but also fixes some issues like the handling of repeated headers - for example, handling of multiple "Set-Cookie" headers. ok bluhm@ (regress part) ok benno@