Skip to content

Commit

Permalink
chore: update cache tests (#4020)
Browse files Browse the repository at this point in the history
Co-authored-by: mcollina <[email protected]>
  • Loading branch information
github-actions[bot] and mcollina authored Jan 23, 2025
1 parent 4d75e12 commit f0ffe1f
Show file tree
Hide file tree
Showing 17 changed files with 138 additions and 157 deletions.
52 changes: 35 additions & 17 deletions test/fixtures/cache-tests/results/apache.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"cdn-date-update-exceed": true,
"cdn-expires-update-exceed": [
"Assertion",
"Response 2 header Expires is \"null\", not \"Tue, 09 Jul 2024 01:05:30 GMT\""
"Response 2 header Expires is \"null\", not \"Tue, 21 Jan 2025 00:20:15 GMT\""
],
"cdn-fresh-cc-nostore": [
"Assertion",
Expand Down Expand Up @@ -340,7 +340,10 @@
"headers-store-Cache-Control": true,
"headers-store-Clear-Site-Data": true,
"headers-store-Connection": true,
"headers-store-Content-Encoding": true,
"headers-store-Content-Encoding": [
"AbortError",
"This operation was aborted"
],
"headers-store-Content-Foo": true,
"headers-store-Content-Length": true,
"headers-store-Content-Location": true,
Expand Down Expand Up @@ -493,11 +496,11 @@
"other-cookie": true,
"other-date-update": [
"Assertion",
"Response 2 header Date is \"Tue, 09 Jul 2024 01:05:24 GMT\", not \"Tue, 09 Jul 2024 01:05:21 GMT\""
"Response 2 header Date is \"Tue, 21 Jan 2025 00:20:09 GMT\", not \"Tue, 21 Jan 2025 00:20:06 GMT\""
],
"other-date-update-expires": [
"Assertion",
"Response 2 header Date is \"Tue, 09 Jul 2024 01:05:24 GMT\", not \"Tue, 09 Jul 2024 01:05:21 GMT\""
"Response 2 header Date is \"Tue, 21 Jan 2025 00:20:09 GMT\", not \"Tue, 21 Jan 2025 00:20:06 GMT\""
],
"other-date-update-expires-update": true,
"other-fresh-content-disposition-attachment": true,
Expand Down Expand Up @@ -545,27 +548,42 @@
"query-args-different": true,
"query-args-same": true,
"stale-503": true,
"stale-close": true,
"stale-close": [
"TypeError",
"fetch failed"
],
"stale-close-must-revalidate": [
"Assertion",
"Response 2 comes from cache"
"TypeError",
"fetch failed"
],
"stale-close-no-cache": [
"Assertion",
"Response 2 comes from cache"
"TypeError",
"fetch failed"
],
"stale-close-proxy-revalidate": [
"Assertion",
"Response 2 comes from cache"
"TypeError",
"fetch failed"
],
"stale-close-s-maxage=2": [
"Assertion",
"Response 2 comes from cache"
"AbortError",
"This operation was aborted"
],
"stale-sie-503": [
"TypeError",
"fetch failed"
],
"stale-sie-close": [
"TypeError",
"fetch failed"
],
"stale-warning-become": [
"TypeError",
"fetch failed"
],
"stale-warning-stored": [
"TypeError",
"fetch failed"
],
"stale-sie-503": true,
"stale-sie-close": true,
"stale-warning-become": true,
"stale-warning-stored": true,
"stale-while-revalidate": [
"Assertion",
"Response 2 does not come from cache"
Expand Down
73 changes: 29 additions & 44 deletions test/fixtures/cache-tests/results/caddy.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
"cdn-date-update-exceed": true,
"cdn-expires-update-exceed": [
"Assertion",
"Response 2 header Expires is \"null\", not \"Tue, 09 Jul 2024 01:03:11 GMT\""
"Response 2 header Expires is \"null\", not \"Tue, 21 Jan 2025 00:23:23 GMT\""
],
"cdn-fresh-cc-nostore": true,
"cdn-max-age": true,
Expand All @@ -205,7 +205,10 @@
"Assertion",
"Response 2 comes from cache"
],
"cdn-no-store-cc-fresh": true,
"cdn-no-store-cc-fresh": [
"Assertion",
"Response 2 comes from cache"
],
"cdn-private": true,
"cdn-remove-age-exceed": [
"Assertion",
Expand Down Expand Up @@ -287,28 +290,28 @@
"Assertion",
"Response 2 does not come from cache"
],
"freshness-expires-age-fast-date": true,
"freshness-expires-age-slow-date": true,
"freshness-expires-ansi-c": [
"freshness-expires-age-fast-date": [
"Assertion",
"Response 2 does not come from cache"
"Response 2 comes from cache"
],
"freshness-expires-far-future": [
"freshness-expires-age-slow-date": [
"Assertion",
"Response 2 comes from cache"
],
"freshness-expires-ansi-c": [
"Assertion",
"Response 2 does not come from cache"
],
"freshness-expires-future": [
"freshness-expires-far-future": [
"Assertion",
"Response 2 does not come from cache"
],
"freshness-expires-future": true,
"freshness-expires-invalid": true,
"freshness-expires-invalid-1-digit-hour": true,
"freshness-expires-invalid-2-digit-year": true,
"freshness-expires-invalid-aest": true,
"freshness-expires-invalid-date": [
"Assertion",
"Response 2 does not come from cache"
],
"freshness-expires-invalid-date": true,
"freshness-expires-invalid-date-dashes": true,
"freshness-expires-invalid-multiple-lines": true,
"freshness-expires-invalid-multiple-spaces": true,
Expand Down Expand Up @@ -390,25 +393,22 @@
"freshness-none": true,
"freshness-s-maxage-shared": true,
"head-200-freshness-update": [
"FetchError",
"request to http://localhost:8006/test/3a29d44d-d103-492b-9046-be67546d71d7 failed, reason: Parse Error: Empty Content-Length"
"Assertion",
"Response 3 does not come from cache"
],
"head-200-retain": [
"FetchError",
"request to http://localhost:8006/test/d07b2651-4270-4ea6-ae9f-041b1b82aae8 failed, reason: Parse Error: Empty Content-Length"
"Assertion",
"Response 2 header Template-A is \"null\", not \"1\""
],
"head-200-update": [
"FetchError",
"request to http://localhost:8006/test/eb317c8b-cea4-4b4c-b72b-71df1aa6e863 failed, reason: Parse Error: Empty Content-Length"
"Setup",
"Response 3 does not come from cache"
],
"head-410-update": [
"FetchError",
"request to http://localhost:8006/test/7f947275-bffe-4c72-a493-c64352423d8e failed, reason: Parse Error: Empty Content-Length"
],
"head-writethrough": [
"FetchError",
"request to http://localhost:8006/test/f9b80f6e-7980-4a44-ae58-d58ac539223c failed, reason: Parse Error: Empty Content-Length"
"Setup",
"Response 3 does not come from cache"
],
"head-writethrough": true,
"headers-omit-headers-listed-in-Cache-Control-no-cache": [
"Setup",
"Response 2 does not come from cache"
Expand Down Expand Up @@ -586,10 +586,7 @@
"Response 1 age header not present."
],
"other-age-gen": true,
"other-age-update-expires": [
"Assertion",
"Response 2 does not come from cache"
],
"other-age-update-expires": true,
"other-age-update-max-age": true,
"other-authorization": true,
"other-authorization-must-revalidate": [
Expand All @@ -606,14 +603,8 @@
],
"other-cookie": true,
"other-date-update": true,
"other-date-update-expires": [
"Assertion",
"Response 2 does not come from cache"
],
"other-date-update-expires-update": [
"Assertion",
"Response 2 does not come from cache"
],
"other-date-update-expires": true,
"other-date-update-expires-update": true,
"other-fresh-content-disposition-attachment": true,
"other-heuristic-content-disposition-attachment": [
"Assertion",
Expand Down Expand Up @@ -658,10 +649,7 @@
"Response 2 status is 200, not 206"
],
"pragma-request-extension": true,
"pragma-request-no-cache": [
"Assertion",
"Response 2 does not come from cache"
],
"pragma-request-no-cache": true,
"pragma-response-extension": true,
"pragma-response-no-cache": true,
"pragma-response-no-cache-heuristic": [
Expand Down Expand Up @@ -806,10 +794,7 @@
"vary-invalidate": true,
"vary-match": true,
"vary-no-match": true,
"vary-normalise-combine": [
"Assertion",
"Response 2 does not come from cache"
],
"vary-normalise-combine": true,
"vary-normalise-lang-case": [
"Assertion",
"Response 2 does not come from cache"
Expand Down
11 changes: 4 additions & 7 deletions test/fixtures/cache-tests/results/fastly.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
"cdn-date-update-exceed": true,
"cdn-expires-update-exceed": [
"Assertion",
"Response 2 header Expires is \"null\", not \"Tue, 09 Jul 2024 01:17:30 GMT\""
"Response 2 header Expires is \"null\", not \"Tue, 21 Jan 2025 00:41:28 GMT\""
],
"cdn-fresh-cc-nostore": [
"Assertion",
Expand Down Expand Up @@ -637,11 +637,11 @@
"other-cookie": true,
"other-date-update": [
"Assertion",
"Response 2 header Date is \"Tue, 09 Jul 2024 01:17:25 GMT\", not \"Tue, 09 Jul 2024 01:17:22 GMT\""
"Response 2 header Date is \"Tue, 21 Jan 2025 00:41:23 GMT\", not \"Tue, 21 Jan 2025 00:41:20 GMT\""
],
"other-date-update-expires": [
"Assertion",
"Response 2 header Date is \"Tue, 09 Jul 2024 01:17:25 GMT\", not \"Tue, 09 Jul 2024 01:17:22 GMT\""
"Response 2 header Date is \"Tue, 21 Jan 2025 00:41:23 GMT\", not \"Tue, 21 Jan 2025 00:41:20 GMT\""
],
"other-date-update-expires-update": true,
"other-fresh-content-disposition-attachment": true,
Expand Down Expand Up @@ -821,10 +821,7 @@
"vary-invalidate": true,
"vary-match": true,
"vary-no-match": true,
"vary-normalise-combine": [
"Assertion",
"Response 2 does not come from cache"
],
"vary-normalise-combine": true,
"vary-normalise-lang-case": [
"Assertion",
"Response 2 does not come from cache"
Expand Down
10 changes: 2 additions & 8 deletions test/fixtures/cache-tests/results/firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@
"cc-resp-must-revalidate-fresh": true,
"cc-resp-must-revalidate-stale": true,
"cc-resp-no-cache": true,
"cc-resp-no-cache-case-insensitive": [
"Assertion",
"Response 2 comes from cache"
],
"cc-resp-no-cache-case-insensitive": true,
"cc-resp-no-cache-revalidate": true,
"cc-resp-no-cache-revalidate-fresh": true,
"cc-resp-no-store": true,
Expand Down Expand Up @@ -179,10 +176,7 @@
"Response 2 does not come from cache"
],
"freshness-max-age-age": true,
"freshness-max-age-case-insenstive": [
"Assertion",
"Response 2 does not come from cache"
],
"freshness-max-age-case-insenstive": true,
"freshness-max-age-date": true,
"freshness-max-age-decimal-five": true,
"freshness-max-age-decimal-zero": true,
Expand Down
18 changes: 9 additions & 9 deletions test/fixtures/cache-tests/results/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,54 +4,54 @@ export default [
file: 'chrome.json',
name: 'Chrome',
type: 'browser',
version: '126.0.6478.127'
version: '132.0.6834.84'
},
{
file: 'firefox.json',
name: 'Firefox',
type: 'browser',
version: '127.0.2',
version: '134.0.1',
link: 'https://github.com/http-tests/cache-tests/wiki/Firefox'
},
{
file: 'safari.json',
name: 'Safari',
type: 'browser',
version: 'Version 17.5 (19618.2.12.11.6)'
version: '18.2 (20620.1.16.11.8)'
},
{
file: 'nginx.json',
name: 'nginx',
type: 'rev-proxy',
version: '1.26.0-1ubuntu2',
version: '1.26.0-3ubuntu1',
link: 'https://github.com/http-tests/cache-tests/wiki/nginx'
},
{
file: 'squid.json',
name: 'Squid',
type: 'rev-proxy',
version: '6.9-1ubuntu1',
version: '6.10-1ubuntu1',
link: 'https://github.com/http-tests/cache-tests/wiki/Squid'
},
{
file: 'trafficserver.json',
name: 'ATS',
type: 'rev-proxy',
version: '9.2.4+ds-2',
version: '9.2.5+ds-1',
link: 'https://github.com/http-tests/cache-tests/wiki/Traffic-Server'
},
{
file: 'apache.json',
name: 'httpd',
type: 'rev-proxy',
version: '2.4.59-2ubuntu2',
version: '2.4.62-3ubuntu1',
link: 'https://github.com/http-tests/cache-tests/wiki/Apache-httpd'
},
{
file: 'varnish.json',
name: 'Varnish',
type: 'rev-proxy',
version: '7.1.1-1.1ubuntu1',
version: '7.5.0-3',
link: 'https://github.com/http-tests/cache-tests/wiki/Varnish'
},
{
Expand All @@ -65,7 +65,7 @@ export default [
file: 'fastly.json',
name: 'Fastly',
type: 'cdn',
version: '2024-07-09',
version: '2025-01-21',
link: 'https://github.com/http-tests/cache-tests/wiki/Fastly'
}
]
Loading

0 comments on commit f0ffe1f

Please sign in to comment.