This is an automated email from the ASF dual-hosted git repository.
bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new bf36ea7b1f Assert absent proxy requests in replays (#13054)
bf36ea7b1f is described below
commit bf36ea7b1fce53b74889b79b3427999635a3a361
Author: Brian Neradt <[email protected]>
AuthorDate: Fri Apr 3 12:20:50 2026 -0500
Assert absent proxy requests in replays (#13054)
Proxy Verifier v3.1.2 can now assert that ATS does not send an
upstream request. Update replay transactions that serve from cache or
otherwise respond locally to use proxy-request.expect: absent.
This makes the no-origin cases explicit across the gold tests and
turns the old trap server responses into a direct expectation. Leave
the cache-control-basic miss transaction alone because it must still go
upstream to prime the cache, and fix one stale HEAD/GET cache comment
so the replay text matches the origin behavior.
Co-authored-by: bneradt <[email protected]>
---
.../cache/cache_volume_defaults.replay.yaml | 3 +
.../cache/replay/auth-s-maxage.replay.yaml | 7 +-
.../cache/replay/cache-control-basic.replay.yaml | 7 +-
.../cache/replay/cache-control-max-age.replay.yaml | 6 ++
.../replay/cache-control-s-maxage.replay.yaml | 3 +
.../cache/replay/cache-range-response.replay.yaml | 4 ++
.../replay/cache-read-retry-stale.replay.yaml | 3 +
.../cache/replay/cache-read-retry.replay.yaml | 3 +
.../cookie-all-but-text-with-excp.replay.yaml | 18 +++++
.../cache/replay/cookie-all-but-text.replay.yaml | 12 ++++
.../cache/replay/cookie-cache-img-only.replay.yaml | 6 ++
.../cache/replay/cookie-default.replay.yaml | 12 ++++
.../cache/replay/delete_cached.replay.yaml | 6 ++
.../cache/replay/get_then_post.replay.yaml | 9 +++
.../cache/replay/head_with_get_cached.replay.yaml | 19 ++++-
...negative-caching-300-second-timeout.replay.yaml | 3 +
.../replay/negative-caching-customized.replay.yaml | 3 +
.../replay/negative-caching-default.replay.yaml | 6 ++
.../replay/negative-caching-disabled.replay.yaml | 6 ++
.../negative-caching-malformed-cc.replay.yaml | 3 +
.../replay/negative-caching-no-timeout.replay.yaml | 3 +
.../replay/negative-caching-timeout.replay.yaml | 3 +
.../post_with_post_caching_disabled.replay.yaml | 9 +++
.../post_with_post_caching_enabled.replay.yaml | 12 ++++
.../post_with_post_caching_override.replay.yaml | 3 +
.../response-cache-control-ignored.replay.yaml | 3 +
.../replay/targeted-cache-control.replay.yaml | 15 ++++
.../cache/replay/varied_transactions.replay.yaml | 6 ++
.../gold_tests/dns/replay/server_error.replay.yaml | 3 +
.../normalized_ae_varied_transactions.replay.yaml | 84 ++++++++++++++++++++++
.../escalate/escalate_failover.replay.yaml | 10 +--
.../header_rewrite_bundle.replay.yaml | 6 ++
.../pluginTest/statichit/statichit.replay.yaml | 30 ++++++++
.../pluginTest/txn_box/prod/mTLS-alpha.replay.yaml | 4 ++
.../pluginTest/txn_box/prod/mTLS-bravo.replay.yaml | 6 ++
.../redirect_to_same_origin_on_cache.replay.yaml | 3 +
tests/gold_tests/remap/reload_3.replay.yaml | 3 +
tests/gold_tests/remap_yaml/reload_3.replay.yaml | 3 +
tests/gold_tests/url/uri.replay.yaml | 6 ++
39 files changed, 339 insertions(+), 12 deletions(-)
diff --git a/tests/gold_tests/cache/cache_volume_defaults.replay.yaml
b/tests/gold_tests/cache/cache_volume_defaults.replay.yaml
index b0ba798cf8..a828f8efd4 100644
--- a/tests/gold_tests/cache/cache_volume_defaults.replay.yaml
+++ b/tests/gold_tests/cache/cache_volume_defaults.replay.yaml
@@ -137,6 +137,9 @@ sessions:
- [X-Test-ID, "cache-hit-verify"]
- [uuid, default-hit]
+ proxy-request:
+ expect: absent
+
# Server should not be contacted for a cache hit
server-response:
status: 404
diff --git a/tests/gold_tests/cache/replay/auth-s-maxage.replay.yaml
b/tests/gold_tests/cache/replay/auth-s-maxage.replay.yaml
index 2cf1d36431..c0234d51f4 100644
--- a/tests/gold_tests/cache/replay/auth-s-maxage.replay.yaml
+++ b/tests/gold_tests/cache/replay/auth-s-maxage.replay.yaml
@@ -94,6 +94,9 @@ sessions:
- [Host, example.com]
- [Authorization, "Basic ZGVtbzphdHNAc3Ryb25ncHc="]
+ proxy-request:
+ expect: absent
+
# The server should NOT be reached because the cached response
# with s-maxage should be served. Return 400 to verify caching.
server-response:
@@ -141,6 +144,9 @@ sessions:
- [Host, example.com]
- [Authorization, "Basic ZGVtbzphdHNAc3Ryb25ncHc="]
+ proxy-request:
+ expect: absent
+
# The server should NOT be reached because the cached response
# with public should be served. Return 400 to verify caching.
server-response:
@@ -201,4 +207,3 @@ sessions:
# response.
proxy-response:
status: 404
-
diff --git a/tests/gold_tests/cache/replay/cache-control-basic.replay.yaml
b/tests/gold_tests/cache/replay/cache-control-basic.replay.yaml
index 58b4c974a8..02a6264256 100644
--- a/tests/gold_tests/cache/replay/cache-control-basic.replay.yaml
+++ b/tests/gold_tests/cache/replay/cache-control-basic.replay.yaml
@@ -102,6 +102,9 @@ sessions:
- [x-debug, "x-cache,x-cache-key,via"]
- [uuid, cache-hit]
+ proxy-request:
+ expect: absent
+
# Server should not receive this request (it's cached)
server-response:
status: 404
@@ -202,6 +205,9 @@ sessions:
- [x-debug, "x-cache,x-cache-key,via"]
- [uuid, only-if-cached]
+ proxy-request:
+ expect: absent
+
# Server should not be contacted for only-if-cached requests
server-response:
status: 200
@@ -215,4 +221,3 @@ sessions:
fields:
- [X-Cache, { value: "miss", as: equal }]
- [Cache-Control, { value: "no-store", as: equal }]
-
diff --git a/tests/gold_tests/cache/replay/cache-control-max-age.replay.yaml
b/tests/gold_tests/cache/replay/cache-control-max-age.replay.yaml
index 2a1fdec6fa..7024c57158 100644
--- a/tests/gold_tests/cache/replay/cache-control-max-age.replay.yaml
+++ b/tests/gold_tests/cache/replay/cache-control-max-age.replay.yaml
@@ -141,6 +141,9 @@ sessions:
- all: { headers: { fields: [[ uuid, 2 ]]}}
<<: *request_for_positive_max_age
+ proxy-request:
+ expect: absent
+
# This should not go through to the server. Return a non-200 response to
# verify it is served from cache.
server-response:
@@ -298,6 +301,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# This should be replied to out of the cache, therefore this 400 response
# should not make it to the client.
server-response:
diff --git a/tests/gold_tests/cache/replay/cache-control-s-maxage.replay.yaml
b/tests/gold_tests/cache/replay/cache-control-s-maxage.replay.yaml
index 6bab36d567..97ea21933a 100644
--- a/tests/gold_tests/cache/replay/cache-control-s-maxage.replay.yaml
+++ b/tests/gold_tests/cache/replay/cache-control-s-maxage.replay.yaml
@@ -137,6 +137,9 @@ sessions:
- all: { headers: { fields: [[ uuid, 2 ]]}}
<<: *request_for_positive_s_maxage
+ proxy-request:
+ expect: absent
+
# This should not go through to the server. Return a non-200 response to
# verify it is served from cache.
server-response:
diff --git a/tests/gold_tests/cache/replay/cache-range-response.replay.yaml
b/tests/gold_tests/cache/replay/cache-range-response.replay.yaml
index 1399f4f69d..cfebcd0d64 100644
--- a/tests/gold_tests/cache/replay/cache-range-response.replay.yaml
+++ b/tests/gold_tests/cache/replay/cache-range-response.replay.yaml
@@ -82,6 +82,8 @@ sessions:
- [ Host, example.com ]
- [ uuid, 2 ]
- [ Range, bytes=0-5 ]
+ proxy-request:
+ expect: absent
server-response:
status: 500
reason: OK
@@ -103,6 +105,8 @@ sessions:
fields:
- [ Host, example.com ]
- [ uuid, 3 ]
+ proxy-request:
+ expect: absent
server-response:
status: 500
reason: OK
diff --git a/tests/gold_tests/cache/replay/cache-read-retry-stale.replay.yaml
b/tests/gold_tests/cache/replay/cache-read-retry-stale.replay.yaml
index de28fe9648..61e36c6791 100644
--- a/tests/gold_tests/cache/replay/cache-read-retry-stale.replay.yaml
+++ b/tests/gold_tests/cache/replay/cache-read-retry-stale.replay.yaml
@@ -114,6 +114,9 @@ sessions:
- [uuid, cache-hit]
- [Host, example.com]
+ proxy-request:
+ expect: absent
+
# Should NOT reach origin (cache hit)
server-response:
status: 500
diff --git a/tests/gold_tests/cache/replay/cache-read-retry.replay.yaml
b/tests/gold_tests/cache/replay/cache-read-retry.replay.yaml
index 2d1f921577..a488418d74 100644
--- a/tests/gold_tests/cache/replay/cache-read-retry.replay.yaml
+++ b/tests/gold_tests/cache/replay/cache-read-retry.replay.yaml
@@ -207,6 +207,9 @@ sessions:
- [Host, example.com]
- [X-Request, fourth-verify]
+ proxy-request:
+ expect: absent
+
# Server should NOT receive this request (should be cache hit)
server-response:
status: 400
diff --git
a/tests/gold_tests/cache/replay/cookie-all-but-text-with-excp.replay.yaml
b/tests/gold_tests/cache/replay/cookie-all-but-text-with-excp.replay.yaml
index cbfe991837..b8fb5ba0b6 100644
--- a/tests/gold_tests/cache/replay/cookie-all-but-text-with-excp.replay.yaml
+++ b/tests/gold_tests/cache/replay/cookie-all-but-text-with-excp.replay.yaml
@@ -94,6 +94,9 @@ sessions:
- [Host, example.com]
- [Cookie, "tasty_cookie=strawberry"]
+ proxy-request:
+ expect: absent
+
server-response:
status: 200
reason: OK
@@ -151,6 +154,9 @@ sessions:
- [Host, example.com]
- [Cookie, "tasty_cookie=strawberry"]
+ proxy-request:
+ expect: absent
+
server-response:
status: 200
reason: OK
@@ -265,6 +271,9 @@ sessions:
- [Host, example.com]
- [Cookie, "tasty_cookie=strawberry"]
+ proxy-request:
+ expect: absent
+
server-response:
status: 200
reason: OK
@@ -322,6 +331,9 @@ sessions:
- [Host, example.com]
- [Cookie, "tasty_cookie=strawberry"]
+ proxy-request:
+ expect: absent
+
server-response:
status: 200
reason: OK
@@ -379,6 +391,9 @@ sessions:
- [Host, example.com]
- [Cookie, "tasty_cookie=strawberry"]
+ proxy-request:
+ expect: absent
+
server-response:
status: 200
reason: OK
@@ -436,6 +451,9 @@ sessions:
- [Host, example.com]
- [Cookie, "tasty_cookie=strawberry"]
+ proxy-request:
+ expect: absent
+
server-response:
status: 200
reason: OK
diff --git a/tests/gold_tests/cache/replay/cookie-all-but-text.replay.yaml
b/tests/gold_tests/cache/replay/cookie-all-but-text.replay.yaml
index a0390c52eb..8200564415 100644
--- a/tests/gold_tests/cache/replay/cookie-all-but-text.replay.yaml
+++ b/tests/gold_tests/cache/replay/cookie-all-but-text.replay.yaml
@@ -92,6 +92,9 @@ sessions:
- [Host, example.com]
- [Cookie, "tasty_cookie=strawberry"]
+ proxy-request:
+ expect: absent
+
server-response:
status: 200
reason: OK
@@ -148,6 +151,9 @@ sessions:
- [Host, example.com]
- [Cookie, "tasty_cookie=strawberry"]
+ proxy-request:
+ expect: absent
+
server-response:
status: 200
reason: OK
@@ -262,6 +268,9 @@ sessions:
- [Host, example.com]
- [Cookie, "tasty_cookie=strawberry"]
+ proxy-request:
+ expect: absent
+
server-response:
status: 200
reason: OK
@@ -319,6 +328,9 @@ sessions:
- [Host, example.com]
- [Cookie, "tasty_cookie=strawberry"]
+ proxy-request:
+ expect: absent
+
server-response:
status: 200
reason: OK
diff --git a/tests/gold_tests/cache/replay/cookie-cache-img-only.replay.yaml
b/tests/gold_tests/cache/replay/cookie-cache-img-only.replay.yaml
index e95cdc66f2..ac3502a034 100644
--- a/tests/gold_tests/cache/replay/cookie-cache-img-only.replay.yaml
+++ b/tests/gold_tests/cache/replay/cookie-cache-img-only.replay.yaml
@@ -149,6 +149,9 @@ sessions:
- [Host, example.com]
- [Cookie, "tasty_cookie=strawberry"]
+ proxy-request:
+ expect: absent
+
server-response:
status: 200
reason: OK
@@ -263,6 +266,9 @@ sessions:
- [Host, example.com]
- [Cookie, "tasty_cookie=strawberry"]
+ proxy-request:
+ expect: absent
+
server-response:
status: 200
reason: OK
diff --git a/tests/gold_tests/cache/replay/cookie-default.replay.yaml
b/tests/gold_tests/cache/replay/cookie-default.replay.yaml
index 0f1608f1c2..c07ac6a8db 100644
--- a/tests/gold_tests/cache/replay/cookie-default.replay.yaml
+++ b/tests/gold_tests/cache/replay/cookie-default.replay.yaml
@@ -90,6 +90,9 @@ sessions:
- [Host, example.com]
- [Cookie, "tasty_cookie=strawberry"]
+ proxy-request:
+ expect: absent
+
server-response:
status: 200
reason: OK
@@ -147,6 +150,9 @@ sessions:
- [Host, example.com]
- [Cookie, "tasty_cookie=strawberry"]
+ proxy-request:
+ expect: absent
+
server-response:
status: 200
reason: OK
@@ -203,6 +209,9 @@ sessions:
- [Host, example.com]
- [Cookie, "tasty_cookie=strawberry"]
+ proxy-request:
+ expect: absent
+
server-response:
status: 200
reason: OK
@@ -260,6 +269,9 @@ sessions:
- [Host, example.com]
- [Cookie, "tasty_cookie=strawberry"]
+ proxy-request:
+ expect: absent
+
server-response:
status: 200
reason: OK
diff --git a/tests/gold_tests/cache/replay/delete_cached.replay.yaml
b/tests/gold_tests/cache/replay/delete_cached.replay.yaml
index 186be1b8f1..f6cb62a422 100644
--- a/tests/gold_tests/cache/replay/delete_cached.replay.yaml
+++ b/tests/gold_tests/cache/replay/delete_cached.replay.yaml
@@ -82,6 +82,9 @@ sessions:
# Add a delay so ATS has time to finish any caching IO for the previous
transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# The request should be served out of cache, so this 403 should not be
# received.
server-response:
@@ -124,6 +127,9 @@ sessions:
- [ Host, example.com ]
- [ uuid, 4 ]
+ proxy-request:
+ expect: absent
+
# The request should be served out of cache, so this 403 should not be
# received.
server-response:
diff --git a/tests/gold_tests/cache/replay/get_then_post.replay.yaml
b/tests/gold_tests/cache/replay/get_then_post.replay.yaml
index 551559827e..7c3cc85aaf 100644
--- a/tests/gold_tests/cache/replay/get_then_post.replay.yaml
+++ b/tests/gold_tests/cache/replay/get_then_post.replay.yaml
@@ -57,6 +57,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# The request should be served out of cache, so this 403 should not be
# received.
server-response:
@@ -147,6 +150,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# This should be served out of cache, so we do not expect for the server
# to reply with this.
server-response:
@@ -209,6 +215,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# The server should not receive this request because ATS should reply out
# of the cache.
server-response:
diff --git a/tests/gold_tests/cache/replay/head_with_get_cached.replay.yaml
b/tests/gold_tests/cache/replay/head_with_get_cached.replay.yaml
index 6f1136ab3c..b109857ae9 100644
--- a/tests/gold_tests/cache/replay/head_with_get_cached.replay.yaml
+++ b/tests/gold_tests/cache/replay/head_with_get_cached.replay.yaml
@@ -82,6 +82,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# The request should be served out of cache, so this 403 should not be
# received.
server-response:
@@ -112,6 +115,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# The request should be served out of cache, so this 403 should not be
# received.
server-response:
@@ -143,6 +149,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# The server should not receive this request because ATS should reply out
# of the cache.
server-response:
@@ -232,8 +241,8 @@ sessions:
# transaction.
delay: 100ms
- # The server should not receive this request because ATS should reply out
- # of the cache.
+ # The HEAD responses above should not populate cache, so this GET must go
+ # to origin and establish the cached GET entry for later requests.
server-response:
status: 200
reason: OK
@@ -263,6 +272,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# The request should be served out of cache, so this 403 should not be
# received.
server-response:
@@ -293,6 +305,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# The request should be served out of cache, so this 403 should not be
# received.
server-response:
diff --git
a/tests/gold_tests/cache/replay/negative-caching-300-second-timeout.replay.yaml
b/tests/gold_tests/cache/replay/negative-caching-300-second-timeout.replay.yaml
index 7cb667b5ed..53c7d58b16 100644
---
a/tests/gold_tests/cache/replay/negative-caching-300-second-timeout.replay.yaml
+++
b/tests/gold_tests/cache/replay/negative-caching-300-second-timeout.replay.yaml
@@ -61,6 +61,9 @@ sessions:
- all: { headers: { fields: [[ uuid, 22 ]]}}
<<: *request_404_item
+ proxy-request:
+ expect: absent
+
# 404 responses should be cached when negative caching is enabled, so this
# should not get to the server. But if it does, return a 200 so the test
# knows that something went wrong.
diff --git
a/tests/gold_tests/cache/replay/negative-caching-customized.replay.yaml
b/tests/gold_tests/cache/replay/negative-caching-customized.replay.yaml
index bbdf572aa4..be84a14db0 100644
--- a/tests/gold_tests/cache/replay/negative-caching-customized.replay.yaml
+++ b/tests/gold_tests/cache/replay/negative-caching-customized.replay.yaml
@@ -191,6 +191,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# This should not go to the server since the 200 response is cached.
server-response:
status: 400
diff --git a/tests/gold_tests/cache/replay/negative-caching-default.replay.yaml
b/tests/gold_tests/cache/replay/negative-caching-default.replay.yaml
index 71d1f69919..b2c48d0a96 100644
--- a/tests/gold_tests/cache/replay/negative-caching-default.replay.yaml
+++ b/tests/gold_tests/cache/replay/negative-caching-default.replay.yaml
@@ -100,6 +100,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# 404 responses should be cached when negative caching is enabled, so this
# should not get to the server. But if it does, return a 200 so the test
# knows that something went wrong.
@@ -188,6 +191,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# This should not go to the server, but if it does return a 400 so we catch
# it.
server-response:
diff --git
a/tests/gold_tests/cache/replay/negative-caching-disabled.replay.yaml
b/tests/gold_tests/cache/replay/negative-caching-disabled.replay.yaml
index 364be65eee..7f91ee40f2 100644
--- a/tests/gold_tests/cache/replay/negative-caching-disabled.replay.yaml
+++ b/tests/gold_tests/cache/replay/negative-caching-disabled.replay.yaml
@@ -129,6 +129,9 @@ sessions:
- all: { headers: { fields: [[ uuid, 2 ]]}}
<<: *request_for_path_200
+ proxy-request:
+ expect: absent
+
# This should not go through to the server. Return a non-200 response to
# verify it is served from cache.
server-response:
@@ -231,6 +234,9 @@ sessions:
- all: { headers: { fields: [[ uuid, 8 ]]}}
<<: *request_for_404_with_cc
+ proxy-request:
+ expect: absent
+
# This should be served out of cache, therefore the origin server should
# not see this.
server-response:
diff --git
a/tests/gold_tests/cache/replay/negative-caching-malformed-cc.replay.yaml
b/tests/gold_tests/cache/replay/negative-caching-malformed-cc.replay.yaml
index c973aa14b7..dccee65e2b 100644
--- a/tests/gold_tests/cache/replay/negative-caching-malformed-cc.replay.yaml
+++ b/tests/gold_tests/cache/replay/negative-caching-malformed-cc.replay.yaml
@@ -207,6 +207,9 @@ sessions:
- [ Host, example.com ]
- [ uuid, proper_cc_verify ]
+ proxy-request:
+ expect: absent
+
# The server should not receive this request because it should be served
from cache.
server-response:
status: 200
diff --git
a/tests/gold_tests/cache/replay/negative-caching-no-timeout.replay.yaml
b/tests/gold_tests/cache/replay/negative-caching-no-timeout.replay.yaml
index 358e699a81..d5c4314094 100644
--- a/tests/gold_tests/cache/replay/negative-caching-no-timeout.replay.yaml
+++ b/tests/gold_tests/cache/replay/negative-caching-no-timeout.replay.yaml
@@ -43,6 +43,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# This should not go to the server. Verify we get the cached 404 response
# instead of this new 403 response.
server-response:
diff --git a/tests/gold_tests/cache/replay/negative-caching-timeout.replay.yaml
b/tests/gold_tests/cache/replay/negative-caching-timeout.replay.yaml
index 3d90a95ebc..e578db657a 100644
--- a/tests/gold_tests/cache/replay/negative-caching-timeout.replay.yaml
+++ b/tests/gold_tests/cache/replay/negative-caching-timeout.replay.yaml
@@ -78,6 +78,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# 403 responses should be cached when negative caching is enabled, so this
# should not get to the server. But if it does, return a 404 so the test
# knows that something went wrong.
diff --git
a/tests/gold_tests/cache/replay/post_with_post_caching_disabled.replay.yaml
b/tests/gold_tests/cache/replay/post_with_post_caching_disabled.replay.yaml
index 13beb51e5c..bd16681e34 100644
--- a/tests/gold_tests/cache/replay/post_with_post_caching_disabled.replay.yaml
+++ b/tests/gold_tests/cache/replay/post_with_post_caching_disabled.replay.yaml
@@ -86,6 +86,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# The request should be served out of cache, so this 403 should not be
# received.
server-response:
@@ -177,6 +180,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# This should be served out of cache, so we do not expect for the server
# to reply with this.
server-response:
@@ -239,6 +245,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# The server should not receive this request because ATS should reply out
# of the cache.
server-response:
diff --git
a/tests/gold_tests/cache/replay/post_with_post_caching_enabled.replay.yaml
b/tests/gold_tests/cache/replay/post_with_post_caching_enabled.replay.yaml
index b5d1d1a23e..e56e5cc01b 100644
--- a/tests/gold_tests/cache/replay/post_with_post_caching_enabled.replay.yaml
+++ b/tests/gold_tests/cache/replay/post_with_post_caching_enabled.replay.yaml
@@ -94,6 +94,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# The request should not go to the server, so this 500 response should not
# be served.
server-response:
@@ -158,6 +161,9 @@ sessions:
# transaction.
delay: 500ms
+ proxy-request:
+ expect: absent
+
# The request should be served out of cache, so this 403 should not be
# received.
server-response:
@@ -216,6 +222,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# The earlier response to the POST request should be returned, not this
403.
server-response:
status: 403
@@ -335,6 +344,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# The response should be served out of cache, not via this server response.
server-response:
status: 507
diff --git
a/tests/gold_tests/cache/replay/post_with_post_caching_override.replay.yaml
b/tests/gold_tests/cache/replay/post_with_post_caching_override.replay.yaml
index a50cf05a9f..0ee3b19416 100644
--- a/tests/gold_tests/cache/replay/post_with_post_caching_override.replay.yaml
+++ b/tests/gold_tests/cache/replay/post_with_post_caching_override.replay.yaml
@@ -97,6 +97,9 @@ sessions:
- [ Content-Length, 48 ]
- [ uuid, 12 ]
+ proxy-request:
+ expect: absent
+
# This should not go through to the server since the previous POST response
# should have been cached. Return a non-200 response to
# verify it is served from cache.
diff --git
a/tests/gold_tests/cache/replay/response-cache-control-ignored.replay.yaml
b/tests/gold_tests/cache/replay/response-cache-control-ignored.replay.yaml
index 17fa5d5c40..f97c54bd96 100644
--- a/tests/gold_tests/cache/replay/response-cache-control-ignored.replay.yaml
+++ b/tests/gold_tests/cache/replay/response-cache-control-ignored.replay.yaml
@@ -150,6 +150,9 @@ sessions:
- [uuid, response-cc-no-store-verify]
- [Host, example.com]
+ proxy-request:
+ expect: absent
+
server-response:
status: 200
reason: OK
diff --git a/tests/gold_tests/cache/replay/targeted-cache-control.replay.yaml
b/tests/gold_tests/cache/replay/targeted-cache-control.replay.yaml
index fd6e1bfcb9..bd51379e89 100644
--- a/tests/gold_tests/cache/replay/targeted-cache-control.replay.yaml
+++ b/tests/gold_tests/cache/replay/targeted-cache-control.replay.yaml
@@ -293,6 +293,9 @@ sessions:
- [Host, default.com]
- [uuid, default-test1-request2]
+ proxy-request:
+ expect: absent
+
# Should not reach the origin.
server-response:
status: 404
@@ -318,6 +321,9 @@ sessions:
- [Host, example.com]
- [uuid, targeted-test1-request2]
+ proxy-request:
+ expect: absent
+
# Should not reach the origin.
server-response:
status: 404
@@ -340,6 +346,9 @@ sessions:
- [Host, example.com]
- [uuid, targeted-test2-request2]
+ proxy-request:
+ expect: absent
+
# Should not reach the origin.
server-response:
status: 404
@@ -385,6 +394,9 @@ sessions:
- [Host, example.com]
- [uuid, targeted-test4-request2]
+ proxy-request:
+ expect: absent
+
# Should not reach the origin.
server-response:
status: 404
@@ -406,6 +418,9 @@ sessions:
- [Host, acme.com]
- [uuid, acme-test1-request2]
+ proxy-request:
+ expect: absent
+
# The origin should not receive the request since ATS will reply out of
cache.
server-response:
status: 404
diff --git a/tests/gold_tests/cache/replay/varied_transactions.replay.yaml
b/tests/gold_tests/cache/replay/varied_transactions.replay.yaml
index bb7c45bcd6..31e13279e2 100644
--- a/tests/gold_tests/cache/replay/varied_transactions.replay.yaml
+++ b/tests/gold_tests/cache/replay/varied_transactions.replay.yaml
@@ -306,6 +306,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -372,6 +375,9 @@ sessions:
# transaction.
delay: 100ms
+ proxy-request:
+ expect: absent
+
# This should be served out of the cache and not reach the origin.
server-response:
<<: *404_response
diff --git a/tests/gold_tests/dns/replay/server_error.replay.yaml
b/tests/gold_tests/dns/replay/server_error.replay.yaml
index b5203a511e..32c13417f6 100644
--- a/tests/gold_tests/dns/replay/server_error.replay.yaml
+++ b/tests/gold_tests/dns/replay/server_error.replay.yaml
@@ -29,5 +29,8 @@ sessions:
- [ X-Request, request ]
- [ uuid, 1 ]
+ proxy-request:
+ expect: absent
+
proxy-response:
status: 500
diff --git
a/tests/gold_tests/headers/replays/normalized_ae_varied_transactions.replay.yaml
b/tests/gold_tests/headers/replays/normalized_ae_varied_transactions.replay.yaml
index ed560a291a..f69edb718f 100644
---
a/tests/gold_tests/headers/replays/normalized_ae_varied_transactions.replay.yaml
+++
b/tests/gold_tests/headers/replays/normalized_ae_varied_transactions.replay.yaml
@@ -274,6 +274,9 @@ sessions:
- [ uuid, 12 ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -297,6 +300,9 @@ sessions:
- [ Accept-Encoding, deflate ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -320,6 +326,9 @@ sessions:
- [ Accept-Encoding, "br, compress" ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -378,6 +387,9 @@ sessions:
- [ Accept-Encoding, "br, compress, gzip" ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -434,6 +446,9 @@ sessions:
- [ uuid, 22 ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -457,6 +472,9 @@ sessions:
- [ Accept-Encoding, deflate ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -550,6 +568,9 @@ sessions:
- [ Accept-Encoding, "br, compress, gzip" ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -573,6 +594,9 @@ sessions:
- [ Accept-Encoding, "compress, gzip" ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -629,6 +653,9 @@ sessions:
- [ uuid, 32 ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -652,6 +679,9 @@ sessions:
- [ Accept-Encoding, deflate ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -779,6 +809,9 @@ sessions:
- [ Accept-Encoding, "compress, gzip" ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -802,6 +835,9 @@ sessions:
- [ Accept-Encoding, "br;q=1.1" ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -824,6 +860,9 @@ sessions:
- [ Accept-Encoding, "br, gzip;q=0.8" ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -880,6 +919,9 @@ sessions:
- [ uuid, 42 ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -903,6 +945,9 @@ sessions:
- [ Accept-Encoding, deflate ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -1046,6 +1091,9 @@ sessions:
- [ Accept-Encoding, "zstd, br, compress, gzip" ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -1069,6 +1117,9 @@ sessions:
- [ Accept-Encoding, "br, compress, gzip" ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -1092,6 +1143,9 @@ sessions:
- [ Accept-Encoding, "compress, zstd" ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -1115,6 +1169,9 @@ sessions:
- [ Accept-Encoding, "compress, gzip" ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -1171,6 +1228,9 @@ sessions:
- [ uuid, 52 ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -1194,6 +1254,9 @@ sessions:
- [ Accept-Encoding, deflate ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -1454,6 +1517,9 @@ sessions:
- [ Accept-Encoding, "compress, zstd" ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -1477,6 +1543,9 @@ sessions:
- [ Accept-Encoding, "compress, br" ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -1500,6 +1569,9 @@ sessions:
- [ Accept-Encoding, "compress, gzip" ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -1523,6 +1595,9 @@ sessions:
- [ Accept-Encoding, "zstd;q=1.1" ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -1546,6 +1621,9 @@ sessions:
- [ Accept-Encoding, "br;q=1.1" ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -1568,6 +1646,9 @@ sessions:
- [ Accept-Encoding, "zstd, br;q=0.8" ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
@@ -1590,6 +1671,9 @@ sessions:
- [ Accept-Encoding, "zstd, gzip;q=0.8" ]
delay: 100ms
+ proxy-request:
+ expect: absent
+
server-response:
<<: *404_response
diff --git a/tests/gold_tests/pluginTest/escalate/escalate_failover.replay.yaml
b/tests/gold_tests/pluginTest/escalate/escalate_failover.replay.yaml
index 04fabbb7a7..c2e6fce7dc 100644
--- a/tests/gold_tests/pluginTest/escalate/escalate_failover.replay.yaml
+++ b/tests/gold_tests/pluginTest/escalate/escalate_failover.replay.yaml
@@ -31,10 +31,7 @@ sessions:
- [ uuid, GET ]
proxy-request:
- method: "GET"
- headers:
- fields:
- - [ X-Request, { value: first, as: equal } ]
+ expect: absent
server-response:
# The failover server should not receive this request since the original
@@ -57,10 +54,7 @@ sessions:
- [ uuid, GET_chunked ]
proxy-request:
- method: "GET"
- headers:
- fields:
- - [ X-Request, { value: second, as: equal } ]
+ expect: absent
server-response:
# The failover server should not receive this request since the original
diff --git
a/tests/gold_tests/pluginTest/header_rewrite/header_rewrite_bundle.replay.yaml
b/tests/gold_tests/pluginTest/header_rewrite/header_rewrite_bundle.replay.yaml
index b3c057d07a..a4517c82b2 100644
---
a/tests/gold_tests/pluginTest/header_rewrite/header_rewrite_bundle.replay.yaml
+++
b/tests/gold_tests/pluginTest/header_rewrite/header_rewrite_bundle.replay.yaml
@@ -535,6 +535,9 @@ sessions:
- [ Host, www.example.com ]
- [ uuid, 14 ]
+ proxy-request:
+ expect: absent
+
server-response:
status: 200
reason: OK
@@ -591,6 +594,9 @@ sessions:
- [ Host, www.example.com ]
- [ uuid, 16 ]
+ proxy-request:
+ expect: absent
+
# The server-response should not be served.
server-response:
status: 500
diff --git a/tests/gold_tests/pluginTest/statichit/statichit.replay.yaml
b/tests/gold_tests/pluginTest/statichit/statichit.replay.yaml
index 4dbb3b10de..e8d680882b 100644
--- a/tests/gold_tests/pluginTest/statichit/statichit.replay.yaml
+++ b/tests/gold_tests/pluginTest/statichit/statichit.replay.yaml
@@ -31,6 +31,9 @@ sessions:
- [ Host, fqdn1 ]
- [ uuid, 1 ]
+ proxy-request:
+ expect: absent
+
proxy-response:
status: 200
headers:
@@ -54,6 +57,9 @@ sessions:
- [ Host, fqdn1 ]
- [ uuid, 2 ]
+ proxy-request:
+ expect: absent
+
proxy-response:
status: 404
headers:
@@ -75,6 +81,9 @@ sessions:
- [ Host, fqdn2 ]
- [ uuid, 3 ]
+ proxy-request:
+ expect: absent
+
proxy-response:
status: 200
headers:
@@ -98,6 +107,9 @@ sessions:
- [ Host, fqdn3 ]
- [ uuid, 4 ]
+ proxy-request:
+ expect: absent
+
proxy-response:
status: 200
headers:
@@ -121,6 +133,9 @@ sessions:
- [ Host, fqdn4 ]
- [ uuid, 5 ]
+ proxy-request:
+ expect: absent
+
proxy-response:
status: 412
headers:
@@ -136,6 +151,9 @@ sessions:
- [ Host, fqdn5 ]
- [ uuid, 6 ]
+ proxy-request:
+ expect: absent
+
proxy-response:
status: 200
headers:
@@ -158,6 +176,9 @@ sessions:
- [ Host, fqdn6 ]
- [ uuid, 7 ]
+ proxy-request:
+ expect: absent
+
proxy-response:
status: 200
headers:
@@ -176,6 +197,9 @@ sessions:
- [ Host, fqdn7 ]
- [ uuid, 8 ]
+ proxy-request:
+ expect: absent
+
proxy-response:
status: 200
headers:
@@ -199,6 +223,9 @@ sessions:
- [ Host, fqdn8 ]
- [ uuid, 8 ]
+ proxy-request:
+ expect: absent
+
proxy-response:
status: 200
headers:
@@ -222,6 +249,9 @@ sessions:
- [ Host, fqdn9 ]
- [ uuid, 9 ]
+ proxy-request:
+ expect: absent
+
proxy-response:
status: 200
headers:
diff --git a/tests/gold_tests/pluginTest/txn_box/prod/mTLS-alpha.replay.yaml
b/tests/gold_tests/pluginTest/txn_box/prod/mTLS-alpha.replay.yaml
index 3e86fc0280..86d43585a3 100644
--- a/tests/gold_tests/pluginTest/txn_box/prod/mTLS-alpha.replay.yaml
+++ b/tests/gold_tests/pluginTest/txn_box/prod/mTLS-alpha.replay.yaml
@@ -14,6 +14,8 @@ sessions:
fields:
- [ Host, "base.ex" ]
- [ UUID , "alpha clean" ]
+ proxy-request:
+ expect: absent
proxy-response:
status: 200
@@ -25,5 +27,7 @@ sessions:
- [ Host, "base.ex" ]
- [ UUID , "alpha auth" ]
- [ Authorization , "invalid" ]
+ proxy-request:
+ expect: absent
proxy-response:
status: 200
diff --git a/tests/gold_tests/pluginTest/txn_box/prod/mTLS-bravo.replay.yaml
b/tests/gold_tests/pluginTest/txn_box/prod/mTLS-bravo.replay.yaml
index 68eadbba17..fd9d9e4b06 100644
--- a/tests/gold_tests/pluginTest/txn_box/prod/mTLS-bravo.replay.yaml
+++ b/tests/gold_tests/pluginTest/txn_box/prod/mTLS-bravo.replay.yaml
@@ -14,6 +14,8 @@ sessions:
fields:
- [ Host, "base.ex" ]
- [ UUID , "bravo clean" ]
+ proxy-request:
+ expect: absent
proxy-response:
status: 200
@@ -25,6 +27,8 @@ sessions:
- [ Host, "base.ex" ]
- [ UUID , "bravo auth" ]
- [ Authorization , "alpha" ]
+ proxy-request:
+ expect: absent
proxy-response:
status: 200
@@ -35,5 +39,7 @@ sessions:
fields:
- [ Host, "base.ex" ]
- [ UUID , "bravo propfind" ]
+ proxy-request:
+ expect: absent
proxy-response:
status: 418
diff --git
a/tests/gold_tests/redirect/replay/redirect_to_same_origin_on_cache.replay.yaml
b/tests/gold_tests/redirect/replay/redirect_to_same_origin_on_cache.replay.yaml
index 0603121d6a..c157f55dcc 100644
---
a/tests/gold_tests/redirect/replay/redirect_to_same_origin_on_cache.replay.yaml
+++
b/tests/gold_tests/redirect/replay/redirect_to_same_origin_on_cache.replay.yaml
@@ -75,6 +75,9 @@ sessions:
- [ Content-Length, 0 ]
- [ x-debug, x-cache ]
+ proxy-request:
+ expect: absent
+
# should no request to origin server
server-response:
status: 503
diff --git a/tests/gold_tests/remap/reload_3.replay.yaml
b/tests/gold_tests/remap/reload_3.replay.yaml
index ac49c7b654..f4ca866e6f 100644
--- a/tests/gold_tests/remap/reload_3.replay.yaml
+++ b/tests/gold_tests/remap/reload_3.replay.yaml
@@ -35,5 +35,8 @@ sessions:
fields:
- [ Host, charlie.ex ]
+ proxy-request:
+ expect: absent
+
proxy-response:
status: 404
diff --git a/tests/gold_tests/remap_yaml/reload_3.replay.yaml
b/tests/gold_tests/remap_yaml/reload_3.replay.yaml
index ac49c7b654..f4ca866e6f 100644
--- a/tests/gold_tests/remap_yaml/reload_3.replay.yaml
+++ b/tests/gold_tests/remap_yaml/reload_3.replay.yaml
@@ -35,5 +35,8 @@ sessions:
fields:
- [ Host, charlie.ex ]
+ proxy-request:
+ expect: absent
+
proxy-response:
status: 404
diff --git a/tests/gold_tests/url/uri.replay.yaml
b/tests/gold_tests/url/uri.replay.yaml
index d6689db11f..2d43ee659b 100644
--- a/tests/gold_tests/url/uri.replay.yaml
+++ b/tests/gold_tests/url/uri.replay.yaml
@@ -153,6 +153,9 @@ sessions:
- [ Connection, keep-alive ]
- [ uuid, encoded_path_again ]
+ proxy-request:
+ expect: absent
+
# The origin should not receive this request, but if it does, reply with a
# non-404 response so we can detect it.
<<: *200_ok_response
@@ -176,6 +179,9 @@ sessions:
- [ Connection, keep-alive ]
- [ uuid, unencoded_path_again ]
+ proxy-request:
+ expect: absent
+
# The origin should not receive this request, but if it does, reply with a
# non-200 response so we can detect it.
<<: *404_ok_response