From 290cfea08f2486fb86dbc11eec96d79751180eda Mon Sep 17 00:00:00 2001 From: Kévin Dunglas Date: Wed, 11 Dec 2024 00:48:02 +0100 Subject: fileserver: add a test for precompressed defaults (#6743) --- .../file_server_precompressed.caddyfiletest | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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" + ] } ] } -- cgit v1.2.3