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

View File

@ -24,6 +24,7 @@ zip = { version = "0.6.2", optional = true }
[dependencies]
actix-cors = "0.6.3"
actix-web = { version = "4.2.1", default-features = false, features = ["macros", "compress-brotli", "compress-gzip", "cookies", "rustls"] }
actix-http = { version = "3.2.2" }
actix-web-static-files = { git = "https://github.com/kilork/actix-web-static-files.git", rev = "2d3b6160", optional = true }
anyhow = { version = "1.0.65", features = ["backtrace"] }
async-stream = "0.3.3"
@ -89,6 +90,7 @@ manifest-dir-macros = "0.1.16"
maplit = "1.0.2"
urlencoding = "2.1.2"
yaup = "0.2.1"
brotli = "3.3.4"
[features]
default = ["analytics", "meilisearch-lib/default", "mini-dashboard"]