Skip to content

tests/gold_tests/headers tests: use ATSReplayTest#13033

Open
bneradt wants to merge 1 commit intoapache:masterfrom
bneradt:headers-atsreplay
Open

tests/gold_tests/headers tests: use ATSReplayTest#13033
bneradt wants to merge 1 commit intoapache:masterfrom
bneradt:headers-atsreplay

Conversation

@bneradt
Copy link
Copy Markdown
Contributor

@bneradt bneradt commented Mar 28, 2026

This converts the headers autests to use the ATSReplayTest format.

@bneradt bneradt added this to the 11.0.0 milestone Mar 28, 2026
@bneradt bneradt self-assigned this Mar 28, 2026
@bneradt bneradt force-pushed the headers-atsreplay branch from 2435315 to b529275 Compare March 28, 2026 03:59
@bneradt bneradt changed the title Convert header tests to ATSReplayTest tests/gold_tests/headers tests: use ATSReplayTest Mar 28, 2026
@zwoop zwoop requested a review from Copilot March 30, 2026 14:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Converts several tests/gold_tests/headers autests from bespoke Python orchestration to the ATSReplayTest (Proxy Verifier replay YAML) format.

Changes:

  • Replaced multiple header-related gold tests’ Python setup/traffic generation with Test.ATSReplayTest(...).
  • Added new replay YAML files (and related config assets) to encode the same scenarios in replay format.
  • Added header_rewrite rule files and a regex_remap map file to support replay-driven configuration.

Reviewed changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/gold_tests/headers/rewrite_rules/header_rewrite_rules_308.conf New header_rewrite rules file used by replay-based redirect coverage.
tests/gold_tests/headers/rewrite_rules/header_rewrite_rules_307.conf New header_rewrite rules file used by replay-based redirect coverage.
tests/gold_tests/headers/rewrite_rules/header_rewrite_rules_302.conf New header_rewrite rules file used by replay-based redirect coverage.
tests/gold_tests/headers/rewrite_rules/header_rewrite_rules_301.conf New header_rewrite rules file used by replay-based redirect coverage.
tests/gold_tests/headers/rewrite_rules/header_rewrite_rules_0.conf New header_rewrite rules file for the unsupported redirect status case.
tests/gold_tests/headers/replays/range.replay.yaml New replay converting the Range request test to ATSReplayTest format.
tests/gold_tests/headers/replays/normalized_ae_varied_transactions.replay.yaml Adds autest configuration to run this replay via ATSReplayTest.
tests/gold_tests/headers/replays/invalid_range_request.replay.yaml Adds autest configuration and replay-side proxy-response validation for 416.
tests/gold_tests/headers/replays/hsts.replay.yaml New replay converting the HSTS test to ATSReplayTest format.
tests/gold_tests/headers/replays/domain-blacklist-30x.replay.yaml New replay converting redirect/blacklist behavior to ATSReplayTest format.
tests/gold_tests/headers/replays/cached_ims_range.replay.yaml New replay converting cached IMS/INM/range and regex_remap 304 handling to ATSReplayTest format.
tests/gold_tests/headers/replays/cache-test.replay.yaml Adds autest configuration to run this replay via ATSReplayTest.
tests/gold_tests/headers/replays/accept_webp.replay.yaml New replay converting accept-webp alternate behavior to ATSReplayTest format.
tests/gold_tests/headers/range.test.py Simplified to invoke Test.ATSReplayTest with the new range replay.
tests/gold_tests/headers/normalized_ae_match_vary_cache.test.py Simplified to invoke Test.ATSReplayTest with the normalized AE replay.
tests/gold_tests/headers/maps.reg New regex_remap rules file used by the cached IMS/range replay.
tests/gold_tests/headers/invalid_range_header.test.py Simplified to invoke Test.ATSReplayTest with the invalid-range replay.
tests/gold_tests/headers/hsts.test.py Simplified to invoke Test.ATSReplayTest with the HSTS replay.
tests/gold_tests/headers/domain-blacklist-30x.test.py Simplified to invoke Test.ATSReplayTest with the redirects replay.
tests/gold_tests/headers/cachedIMSRange.test.py Simplified to invoke Test.ATSReplayTest with the cached IMS/range replay.
tests/gold_tests/headers/cachedDuplicateHeaders.test.py Simplified to invoke Test.ATSReplayTest with the cached duplicate headers replay.
tests/gold_tests/headers/accept_webp.test.py Simplified to invoke Test.ATSReplayTest with the accept-webp replay.

@bryancall bryancall requested a review from masaori335 March 30, 2026 22:11
.format(ts.Variables.port),
ts=ts)
tr.Processes.Default.ReturnCode = 0
tr.Processes.Default.Streams.stderr = "gold/accept_webp.gold"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is moving these gold file checks to replay.yaml. We need to delete this old gold files?

Copy link
Copy Markdown
Contributor Author

@bneradt bneradt Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the orphaned gold files in 16bb850 and reran the focused headers ATSReplayTest batch in the fix_tickets_4 container.

Move the replay-friendly headers gold tests to ATSReplayTest
wrappers and describe their ATS, origin, and client setup in
replay YAML.

This keeps the cache, range, redirect, HSTS, and alternate
handling coverage while making the tests easier to read and
maintain, and removes the old gold files left orphaned by the
conversion.
@bneradt bneradt force-pushed the headers-atsreplay branch from a153b84 to 16bb850 Compare April 2, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants