summaryrefslogtreecommitdiffstats
path: root/test/pyhttpd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *) mod_md: update to version 2.4.28Stefan Eissing2024-09-171-23/+60
| | | | | | | | | | | | | | | | | - When the server starts, it looks for new, staged certificates to activate. If the staged set of files in 'md/staging/<domain>' is messed up, this could prevent further renewals to happen. Now, when the staging set is present, but could not be activated due to an error, purge the whole directory. [icing] - Fix certificate retrieval on ACME renewal to not require a 'Location:' header returned by the ACME CA. This was the way it was done in ACME before it became an IETF standard. Let's Encrypt still supports this, but other CAs do not. [icing] - Restore compatibility with OpenSSL < 1.1. [ylavic] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1920747 13f79535-47bb-0310-9956-ffa450edef68
* Add jxl mime typeJoe Orton2024-09-121-0/+1
| | | | | | | | Submitted by: printfn <printfn users.noreply.github.com> Github: closes #478 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1920589 13f79535-47bb-0310-9956-ffa450edef68
* sync test code with mod-h2Stefan Eissing2024-07-101-0/+11
| | | | | | | | | | | | - shutdown server at end of h2 tests - adapt minimum httpd versions for some tests - add test_700_20 for load on blocked connections, disabled for now until mpm_event improves - build websocket client automatically git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919087 13f79535-47bb-0310-9956-ffa450edef68
* pytest: fix asset list extraction from nghttp outputRainer Jung2024-06-251-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918576 13f79535-47bb-0310-9956-ffa450edef68
* Add avif mime typeJoe Orton2024-06-031-0/+1
| | | | | | | | Submitted by: Adam Silverstein <adamsilverstein earthboundhosting.com> Github: closes #451 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918129 13f79535-47bb-0310-9956-ffa450edef68
* Arrange pytest to run with mod_ssl, still skipping some tests.Jean-Frederic Clere2024-04-161-3/+84
| | | | | | | this closes #433 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1917039 13f79535-47bb-0310-9956-ffa450edef68
* Fix failing pytest modules/http2/test_712_buffering.py:48.Rainer Jung2024-04-051-1/+1
| | | | | | | | Do not count lines like "00:12:26.578220 <= Recv data, 0 bytes (0x0)" (which happen before the final close) as receiving a real chunk. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1916806 13f79535-47bb-0310-9956-ffa450edef68
* Fix a typo (missing "t")Christophe Jaillet2023-12-231-1/+1
| | | | | | | | s/redisribution/redistribution/ PR 67018 [<hanskrentel yahoo.de>] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1914884 13f79535-47bb-0310-9956-ffa450edef68
* Tests: update pytest for curl 8.1.x bugsStefan Eissing2023-08-161-0/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1911718 13f79535-47bb-0310-9956-ffa450edef68
* pytest: Fine tuning for LogLevel vs -v^n.Yann Ylavic2023-07-071-3/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910848 13f79535-47bb-0310-9956-ffa450edef68
* pytests: Ignore log errors/warnings per function.Yann Ylavic2023-07-072-88/+84
| | | | | | | | | | | | It's easier to control errors at the function scope and it avoids ignored errors/warnings to propagate to the following tests (i.e. mask further unexpected errors). github: closes #371 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910844 13f79535-47bb-0310-9956-ffa450edef68
* test h2: be more generous in stutter step jittering.Stefan Eissing2023-07-061-3/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910810 13f79535-47bb-0310-9956-ffa450edef68
* pyhttpd: Generate core dumps on crash and show them in the ci eventually.Yann Ylavic2023-06-281-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910668 13f79535-47bb-0310-9956-ffa450edef68
* *) mod_http2: added support for bootstrapping WebSockets via HTTP/2, asStefan Eissing2023-06-203-2/+152
| | | | | | | | | | | | | | | described in RFC 8441. A new directive 'H2WebSockets on|off' has been added. The feature is by default not enabled. As also discussed in the manual, this feature should work for setups using "ProxyPass backend-url upgrade=websocket" without further changes. Special server modules for WebSockets will have to be adapted, most likely, as the handling if IO events is different with HTTP/2. HTTP/2 WebSockets are supported on platforms with native pipes. This excludes Windows. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910507 13f79535-47bb-0310-9956-ffa450edef68
* tests: synch with recent changes from mod_h2 repositoryStefan Eissing2023-06-012-16/+32
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910156 13f79535-47bb-0310-9956-ffa450edef68
* *) mod_http2: v2.0.15 with the following fixes and improvementsStefan Eissing2023-05-122-1/+21
| | | | | | | | | | | | | | | | | | | | | | | - New directive 'H2EarlyHint name value' to add headers to a response, picked up already when a "103 Early Hints" response is sent. 'name' and 'value' must comply to the HTTP field restrictions. This directive can be repeated several times and header fields of the same names add. Sending a 'Link' header with 'preload' relation will also cause a HTTP/2 PUSH if enabled and supported by the client. - Fixed an issue where requests were not logged and accounted in a timely fashion when the connection returns to "keepalive" handling, e.g. when the request served was the last outstanding one. This led to late appearance in access logs with wrong duration times reported. - Accurately report the bytes sent for a request in the '%O' Log format. This addresses #203, a long outstanding issue where mod_h2 has reported numbers over-eagerly from internal buffering and not what has actually been placed on the connection. The numbers are now the same with and without H2CopyFiles enabled. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909769 13f79535-47bb-0310-9956-ffa450edef68
* *) test: check for recent curl version in proxy testsStefan Eissing2023-05-021-0/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909560 13f79535-47bb-0310-9956-ffa450edef68
* make test cases for mod_tls work, do not clear gen directory on every invocationStefan Eissing2023-04-271-3/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909454 13f79535-47bb-0310-9956-ffa450edef68
* make the http2 test suite working againStefan Eissing2023-04-272-19/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909452 13f79535-47bb-0310-9956-ffa450edef68
* pytests: test_tls_04_double_get does not want stdout separator for multiple ↵Yann Ylavic2023-03-201-3/+3
| | | | | | | | | | responses. Add no_stdout_list parameter to env.tls_get() thus to curl_raw() too. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908577 13f79535-47bb-0310-9956-ffa450edef68
* Support splitting mutiple outputs when using curl withRainer Jung2023-03-103-9/+35
| | | | | | | | multiple URLs. E.g. provide a JSON array with the individual JSON responses as items. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908229 13f79535-47bb-0310-9956-ffa450edef68
* Fix tests test_202_trailer.py::TestTrailers::test_h2_202_03bRainer Jung2023-03-091-1/+3
| | | | | | | | and test_202_trailer.py::TestTrailers::test_h2_202_04 by adding an explicit Content-Type header to the nghttp call. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908220 13f79535-47bb-0310-9956-ffa450edef68
* *) mod_http2: new directive 'H2MaxDataFrameLen n' to limit the maximumStefan Eissing2023-02-161-1/+4
| | | | | | | | | | | | | amount of response body bytes put into a single HTTP/2 DATA frame. Setting this to 0 places no limit (but the max size allowed by the protocol is observed). The module, by default, tries to use the maximum size possible, which is somewhat around 16KB. This sets the maximum. When less response data is available, smaller frames will be sent. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1907697 13f79535-47bb-0310-9956-ffa450edef68
* tests modules/http1: use "Header add" to produce response headers with ↵Stefan Eissing2022-10-191-1/+2
| | | | | | whitespace. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1904693 13f79535-47bb-0310-9956-ffa450edef68
* Sync with v2.0.10 from github:Stefan Eissing2022-10-115-11/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Extensive testing in production done by Alessandro Bianchi (@alexskynet) on the v2.0.x versions for stability. Many thanks! * refactored stream response handling to reflect the different phases (response/data/trailers) more clearly and help resolving cpu busy loops. * Adding more negative tests for handling of errored responses to cover edge cases. * mod_http2: fixed handling of response where neiter an EOS nor an ERROR was received as a cause to reset the stream. * mod_proxy_http2: generating error buckets for fault response bodies, to signal failure to fron when response header were already sent. v2.0.9 -------------------------------------------------------------------------------- * Fixed a bug where errors during reponse body handling did not lead to a proper RST_STREAM. Instead processing went into an infinite loop. Extended test cases to catch this condition. v2.0.8 -------------------------------------------------------------------------------- * Delaying input setup of a stream just before processing starts. This allows any EOS indicator arriving from the client before that to take effect. Without knowing that a stream has no input, internal processing has to simulate chunked encoding. This is not wrong, but somewhat more expensive and mod_security has been reported to be allergic to seeing 'chunked' on some requests. See <https://bz.apache.org/bugzilla/show_bug.cgi?id=66282>. * mod_proxy_http2: fixed #235 by no longer forwarding 'Host:' header when request ':authority' is known. Improved test case that did not catch that the previous 'fix' was incorrect. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1904522 13f79535-47bb-0310-9956-ffa450edef68
* *) tests: load the top-level mod_aptest in all test suites.Stefan Eissing2022-09-213-13/+115
| | | | | | | | | | | - aptest logs the test name from the header 'AP-Test-Name' with the request line. LogLevel aptest:info is switched on. - pytest sets 'AP-Test-Name' for all curl/nghttp invocation against the server. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1904188 13f79535-47bb-0310-9956-ffa450edef68
* *) test: improved nghttp client output parsing.Stefan Eissing2022-07-021-4/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1902407 13f79535-47bb-0310-9956-ffa450edef68
* *) mod_http: genereate HEADERS buckets for trailersStefan Eissing2022-04-042-29/+84
| | | | | | | | | mod_proxy: forward trailers on chunked request encoding test: add http/1.x test cases in pytest git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1899552 13f79535-47bb-0310-9956-ffa450edef68
* *) test: check for the mpm module used and disable http2 testsStefan Eissing2022-02-251-0/+1
| | | | | | | | for prefork. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1898417 13f79535-47bb-0310-9956-ffa450edef68
* *) test: assume that modules which do not appear in our list of DSO_MODULESStefan Eissing2022-02-252-8/+9
| | | | | | | | or MPM_MODULES from configure are statically linked and do not need a load. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1898411 13f79535-47bb-0310-9956-ffa450edef68
* *) test: capture and parse output from nghttp more reliably.Stefan Eissing2022-02-141-10/+13
| | | | | | | | add repeat param to certain proxy tests. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1898068 13f79535-47bb-0310-9956-ffa450edef68
* *) test casesStefan Eissing2022-02-011-2/+0
| | | | | | | | | | - disabling test_h2_105_02 due to handshake timeouts no longer working - adjusting some log levels - ignoring new handshake error AHLOGNOs git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897650 13f79535-47bb-0310-9956-ffa450edef68
* *) test: Stefan Eissing2022-01-201-3/+0
| | | | | | | | | | - modules/http2: ignore some SSL library error logs when using openssl 3.x - modules/tls: right now, we seem unable to force curl to use TLSv1.3, adjust test case expectations accordingly. Use --tls-max to force v1.2 where needed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897257 13f79535-47bb-0310-9956-ffa450edef68
* *) test: added first mod_proxy tests in test/modules/proxy thatStefan Eissing2021-12-151-3/+3
| | | | | | | | | check some variations on forward, reverse and mixed vhosts and also using a unix: domain socket backend. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1896002 13f79535-47bb-0310-9956-ffa450edef68
* * test: check the h2load version for test suite making useStefan Eissing2021-11-301-0/+17
| | | | | | | | of its --connect-to feature (available since 1.41.0). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1895434 13f79535-47bb-0310-9956-ffa450edef68
* * test: allow more flexibility in the ssl modules usedStefan Eissing2021-11-302-17/+42
| | | | | | | | | for a vhost. Adjust http2 and md test cases for working with modules other than mod_ssl. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1895429 13f79535-47bb-0310-9956-ffa450edef68
* * testsuite: possible now to issue client certificates and the chain file ↵Stefan Eissing2021-11-104-15/+97
| | | | | | | | | | | | for them * testsuite: handling of cert+key in same file improved * testsuite: using 'stop' configuration to terminate server in case test cases leave borked test configs lying around. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1894919 13f79535-47bb-0310-9956-ffa450edef68
* * test: just general cleanup and separationStefan Eissing2021-11-0832-5322/+94
| | | | | | | | | | - base modules loaded minimized - h2's htdocs/cgi setup now in test/modules/http2 - less args to constructors, more methods git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1894832 13f79535-47bb-0310-9956-ffa450edef68
* * test: update of python test framework after integration with mod_mdStefan Eissing2021-10-287-275/+554
| | | | | | | | test suite that should come here soonish. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1894599 13f79535-47bb-0310-9956-ffa450edef68
* * test/modules/http2: marking 3 test cases for skip as theyStefan Eissing2021-10-131-19/+19
| | | | | | | | fail on travis and need further analysis. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1894200 13f79535-47bb-0310-9956-ffa450edef68
* * mod_http2: fixing some compiler warnings.Stefan Eissing2021-10-122-1/+2
| | | | | | | | | | length of output written now correctly calculated after buckets have been read. test cases updated. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1894172 13f79535-47bb-0310-9956-ffa450edef68
* * test infrastruture:Stefan Eissing2021-10-1163-0/+8885
- moved common pytest code into test/pyhttpd - does basic setup for a list of host names and some htdocs - added modules/core and moved encoding tests from http2 there - all test methods have module name in in prefix now, so to test only core, run > pytest -k test_core git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1894134 13f79535-47bb-0310-9956-ffa450edef68