mirror of
https://github.com/alibaba/higress.git
synced 2026-04-21 12:07:26 +08:00
feat(gzip): add gzip configuration support and update default settings (#2867)
Co-authored-by: 澄潭 <zty98751@alibaba-inc.com>
This commit is contained in:
@@ -1077,4 +1077,4 @@ var ConfigMapGlobalEnvoy = suite.ConformanceTest{
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -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{
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user