Repository navigation
[2.4.x] Merge changes to tests (sync with trunk) - #1161
Merged
Merged
Conversation
DSA certificates to ECDSA certificates. Remove dependency on the legacy provider in OpenSSL. Ported from perl test suite (cherry picked from commit 6f23dbd)
…env.py): mod_session checks the session expiry time before decoding the session, causing session expiry to be ignored for mod_session_cookie sessions. (apache#802) * mod_session checks the session expiry time before decoding the session, causing session expiry to be ignored for mod_session_cookie sessions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Updated test naming --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> (cherry picked from commit ff9f2cd)
Added TLS 1.3 cipher and version tests Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> (cherry picked from commit d545f13)
(cherry picked from commit 4efb44f)
…env.py): Add mod_brotli compression tests (apache#840) * Add mod_brotli compression tests * Refactored so that the tests are now in the correct module * Removed build-win.bat updates for brotli, moved to another PR --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> (cherry picked from commit f48aba8)
* The tests verify RewriteCond/RewriteRule-based redirects: - www.domain -> non-www domain (strip www prefix) - non-www domain -> www.domain (prepend www prefix) Rewrite escape sequence test Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> (cherry picked from commit eb42f09)
(cherry picked from commit 86245b0)
New parametrized test of each SSLVHostSNIPolicy, and the default, against each class of vhost difference, gated on the server version. (TestVhostCompatAuthonly, TestVhostCompatAuthonlyAuth): Remove, covered by the above. * test/pyhttpd/env.py (HttpdTestEnv.has_directive): Remove; it only saw the directives of statically linked modules. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> (cherry picked from commit 459e11e)
…py and files not on 2.4.x omitted): Fix the warnings pytest reports for the test suites: * test/modules/*/test_*.py, test/modules/arch/linux/test_*.py: Make class-scoped fixtures class methods. * test/modules/http2/test_800_websockets.py (TestWebSockets.ws_check_alive, TestWebSockets._mkpath, TestWebSockets._rmrf), test/modules/md/test_801_stapling.py (TestStapling.configure_httpd): Make static methods. * test/pytest_suite/tests/t/modules/test_proxy_beacon_input.py: Pass lists to parametrize. * test/pytest_suite/tests/t/apache/test_http_strict.py: Send "@" rather than "\@" in the userinfo request, as the Perl original did. * test/pytest_suite/tests/t/modules/test_access.py: Drop invalid escape from docstring. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> (cherry picked from commit 15181bb)
* Add forward proxy long hostname tests * Updated test and file naming --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> (cherry picked from commit a56d39a)
Cache tests: create CacheRoot dir, remove conflicting Cache-Control header, add CacheIgnoreNoLastMod, add cache cleanup between tests Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> (cherry picked from commit e539392)
…py): * test/modules/aaa/test_016_authn_socache.py: New test. (TestAuthnSocache.test_authn_socache_173_files_share_directory_context, TestAuthnSocache.test_authn_socache_174_files_context): Based on tests by Hafiar <289389248+0xABCD01 users.noreply.github.com> in GitHub PR apache#930. * test/modules/aaa/env.py (AAATestSetup.__init__): Load mod_authn_socache. (AAATestEnv.__init__): Log mod_authn_socache. (AAATestEnv.write_basic_pwfile, AAATestEnv.write_digest_pwfile, AAATestEnv.preserved_test_conf): New. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> (cherry picked from commit 4c0de9e)
…env.py): Add mod_substitute, ext_filter, SSI, and deflate tests (apache#815) * Add mod_substitute, ext_filter, SSI, and deflate tests * Refactored test and file naming to follow source code pattern --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> (cherry picked from commit 4e32ddc)
…st_03_uwsgi.py): Consolidate the uwsgi tests from test_003 and test_005 into a single file (apache#786) (cherry picked from commit a3cb166)
) aaa test: Check a malformed Digest header does not leak anything Two checks not covered by the existing suite: no valgrind malloc-fill bytes may appear in the error log, and the challenge must stay printable ASCII, when a malformed Digest Authorization header is processed. Co-authored-by: Claude Code <noreply@anthropic.com> (cherry picked from commit 8434951)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit f3bb083)
in 2.4.72. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> (cherry picked from commit fc91138)
…ttp3 changes omitted, conflicts resolved in test/modules/filters/env.py): test: Make mod_brotli and mod_deflate optional (apache#1123) A build without zlib or libbrotli lacks mod_deflate or mod_brotli, and listing them in add_modules() (deflate in the base set for every package) stopped setup with "Unable to find modules", failing every test in the package. * test/modules/filters/env.py: Load brotli and deflate as optional modules, and only set a LogLevel for brotli and proxy_html when they are there, since a LogLevel for an unloaded module is a config error. * test/modules/filters/test_007_brotli_compression.py, test/modules/filters/test_009_mod_deflate.py: Skip when the module is missing. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 0956b89)
…ts (apache#1095) mod_cache_socache had no test coverage, and an empty Content-Type response through mod_cache_disk was untested Co-authored-by: Claude Code <noreply@anthropic.com> (cherry picked from commit 4aae8b7)
* Add DeflateAlterETag and mod_sed large input filter tests - test_010_deflate_alter_etag: verifies that DeflateAlterETag AddSuffix, NoChange, and Remove modes handle ETags correctly when mod_deflate compression is applied. - test_011_sed_large_input: verifies that mod_sed handles a large (8 MB) request body through InputSed without crashing. - Removed unneeded assert --------- Co-authored-by: Claude Code <noreply@anthropic.com> (cherry picked from commit 816d033)
metadata test: Cover malformed PROXY protocol headers Oversized v1 lines are refused, a PROXY v2 header whose address length does not match the family is refused (regression test for r1936357, which landed without one), and LOCAL or UNSPEC commands with no address block are handled without reading past the header. Co-authored-by: Claude Code <noreply@anthropic.com> (cherry picked from commit 3b04bc1)
… download (apache#1131) TestEmptyHeaderValues class in test_200_header_invalid.py (sending the empty values with curl -H "X;" and asserting their arrival via hecho.py), a client cancellation test in test_105_timeout.py, and a throttled download in test_008_ranges.py next to the existing --limit-rate use. Co-authored-by: Claude Code <noreply@anthropic.com> (cherry picked from commit 440c287)
…padding (apache#1153) Renumber to 003/004 behind trunk session module and follow its conventions (htdocs/test1/cgi, add_vhost_test1, classmethod fixtures). A request header named after the session cookie must not override the session data, and forged session_crypto cookies with manipulated padding must be rejected. Co-authored-by: Claude Code <noreply@anthropic.com> (cherry picked from commit 366aa81)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge 6f23dbd, ff9f2cd, d545f13, 4efb44f, f48aba8, eb42f09, 86245b0, 459e11e, 15181bb, a56d39a, e539392, 4c0de9e, 4e32ddc, a3cb166, 8434951, f3bb083, fc91138, 0956b89, 4aae8b7, 816d033, 3b04bc1, 6ebce6c, 440c287, 366aa81 from trunk:
Notes:
test/is still not identical to trunk afterwards. Tests tied to fixes not yet on 2.4.x, the mod_http3 and mpm_motorz tests, and the CI script changes are left out.test_108_goaway.pyandtest_09_hcheck_log_uri.pyhunks of 15181bb ([2.4.x] mod_http2: Send HTTP/2 error codes in GOAWAY frames #1156, [2.4.x] mod_proxy_beacon: Backport the module and the mod_proxy changes it needs from trunk #994).test/modules/session/env.py(ff9f2cd),test/modules/filters/env.py(f48aba8, 4e32ddc, 0956b89),test/modules/aaa/env.py(4c0de9e) andtest/modules/proxy/test_03_uwsgi.py(a3cb166); the last three files now match trunk. Only the filters part of 0956b89 is new here, the rest came with [2.4.x] Merge changes to test venv and optional modules #1126.🤖 Generated with Claude Code