mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 03:55:07 +08:00
19 lines
554 B
Rust
19 lines
554 B
Rust
mod common;
|
|
|
|
#[actix_rt::test]
|
|
async fn url_normalizer() {
|
|
let mut server = common::Server::with_uid("movies");
|
|
|
|
let (_response, status_code) = server.get_request("/version").await;
|
|
assert_eq!(status_code, 200);
|
|
|
|
let (_response, status_code) = server.get_request("//version").await;
|
|
assert_eq!(status_code, 200);
|
|
|
|
let (_response, status_code) = server.get_request("/version/").await;
|
|
assert_eq!(status_code, 200);
|
|
|
|
let (_response, status_code) = server.get_request("//version/").await;
|
|
assert_eq!(status_code, 200);
|
|
}
|