feat(gzip): add gzip configuration support and update default settings (#2867)

Co-authored-by: 澄潭 <zty98751@alibaba-inc.com>
This commit is contained in:
aias00
2025-09-21 14:36:45 +08:00
committed by GitHub
parent f1345f9973
commit e9cb39088a
8 changed files with 37 additions and 26 deletions

View File

@@ -73,25 +73,12 @@ var testCases = []struct {
},
},
envoyAssertion: envoy.Assertion{
Path: "configs.#.dynamic_listeners.#.active_state.listener.filter_chains",
Path: "configs.#.dynamic_listeners.#.active_state.listener.filter_chains.#.filters.#.typed_config.http_filters",
TargetNamespace: "higress-system",
CheckType: envoy.CheckTypeNotExist,
ExpectEnvoyConfig: map[string]interface{}{
"memory_level": 5,
"compression_level": "COMPRESSION_LEVEL_9",
"window_bits": 12,
"min_content_length": 1024,
"disable_on_etag_header": true,
"content_type": []interface{}{
"text/html",
"text/css",
"text/plain",
"text/xml",
"application/json",
"application/javascript",
"application/xhtml+xml",
"image/svg+xml",
},
"name": "envoy.filters.http.gzip",
"@type": "type.googleapis.com/envoy.extensions.filters.http.gzip.v3.Gzip",
},
},
},
@@ -323,4 +310,4 @@ var ConfigMapGzipEnvoy = suite.ConformanceTest{
}
})
},
}
}