aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKévin Dunglas <[email protected]>2024-12-11 00:48:02 +0100
committerGitHub <[email protected]>2024-12-10 16:48:02 -0700
commit290cfea08f2486fb86dbc11eec96d79751180eda (patch)
tree61299067d4e1b76ba80af5de57bd9796533ff89d
parent5c2617ebf9303100fc8c6be2a80b966b2c7fb7f1 (diff)
downloadcaddy-290cfea08f2486fb86dbc11eec96d79751180eda.tar.gz
caddy-290cfea08f2486fb86dbc11eec96d79751180eda.zip
fileserver: add a test for precompressed defaults (#6743)
-rw-r--r--caddytest/integration/caddyfile_adapt/file_server_precompressed.caddyfiletest20
1 files changed, 20 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/file_server_precompressed.caddyfiletest b/caddytest/integration/caddyfile_adapt/file_server_precompressed.caddyfiletest
index ac7d7eddd..3154de96e 100644
--- a/caddytest/integration/caddyfile_adapt/file_server_precompressed.caddyfiletest
+++ b/caddytest/integration/caddyfile_adapt/file_server_precompressed.caddyfiletest
@@ -3,6 +3,10 @@
file_server {
precompressed zstd br gzip
}
+
+file_server {
+ precompressed
+}
----------
{
"apps": {
@@ -30,6 +34,22 @@ file_server {
"br",
"gzip"
]
+ },
+ {
+ "handler": "file_server",
+ "hide": [
+ "./Caddyfile"
+ ],
+ "precompressed": {
+ "br": {},
+ "gzip": {},
+ "zstd": {}
+ },
+ "precompressed_order": [
+ "br",
+ "zstd",
+ "gzip"
+ ]
}
]
}