Added support for specifying compression in tests

Refactored tests code to allow to specify compression (content-encoding) algorithm.

Added tests to verify what actix actually handle different content encodings properly.
This commit is contained in:
Andrey "MOU" Larionov
2022-10-09 19:43:51 +02:00
parent 7607a62531
commit 11b986a81d
9 changed files with 224 additions and 128 deletions

2
Cargo.lock generated
View File

@ -2038,6 +2038,7 @@ name = "meilisearch-http"
version = "0.29.1"
dependencies = [
"actix-cors",
"actix-http",
"actix-rt",
"actix-web",
"actix-web-static-files",
@ -2045,6 +2046,7 @@ dependencies = [
"assert-json-diff",
"async-stream",
"async-trait",
"brotli",
"bstr 1.0.1",
"byte-unit",
"bytes",