This commit is contained in:
Mubelotix
2025-07-08 16:19:55 +02:00
parent 881c37393f
commit feb53104e5
4 changed files with 8 additions and 8 deletions

View File

@ -736,7 +736,7 @@ fn test_document_addition_mixed_rights_with_index() {
#[test] #[test]
fn test_document_addition_mixed_right_without_index_starts_with_cant_create() { fn test_document_addition_mixed_right_without_index_starts_with_cant_create() {
// We're going to autobatch multiple document addition. // We're going to autobatch multiple document addition.
// - The index does not exists // - The index does not exist
// - The first document addition don't have the right to create an index // - The first document addition don't have the right to create an index
// - The second do. They should not batch together. // - The second do. They should not batch together.
// - The second should batch with everything else as it's going to create an index. // - The second should batch with everything else as it's going to create an index.

View File

@ -336,7 +336,7 @@ impl<Method: AggregateMethod + 'static> Aggregate for TaskFilterAnalytics<Method
"link": "https://docs.meilisearch.com/errors#missing_authorization_header" "link": "https://docs.meilisearch.com/errors#missing_authorization_header"
} }
)), )),
(status = 404, description = "The task uid does not exists", body = ResponseError, content_type = "application/json", example = json!( (status = 404, description = "The task uid does not exist", body = ResponseError, content_type = "application/json", example = json!(
{ {
"message": "Task :taskUid not found.", "message": "Task :taskUid not found.",
"code": "task_not_found", "code": "task_not_found",
@ -430,7 +430,7 @@ async fn cancel_tasks(
"link": "https://docs.meilisearch.com/errors#missing_authorization_header" "link": "https://docs.meilisearch.com/errors#missing_authorization_header"
} }
)), )),
(status = 404, description = "The task uid does not exists", body = ResponseError, content_type = "application/json", example = json!( (status = 404, description = "The task uid does not exist", body = ResponseError, content_type = "application/json", example = json!(
{ {
"message": "Task :taskUid not found.", "message": "Task :taskUid not found.",
"code": "task_not_found", "code": "task_not_found",
@ -611,7 +611,7 @@ async fn get_tasks(
"link": "https://docs.meilisearch.com/errors#missing_authorization_header" "link": "https://docs.meilisearch.com/errors#missing_authorization_header"
} }
)), )),
(status = 404, description = "The task uid does not exists", body = ResponseError, content_type = "application/json", example = json!( (status = 404, description = "The task uid does not exist", body = ResponseError, content_type = "application/json", example = json!(
{ {
"message": "Task :taskUid not found.", "message": "Task :taskUid not found.",
"code": "task_not_found", "code": "task_not_found",
@ -665,7 +665,7 @@ async fn get_task(
"link": "https://docs.meilisearch.com/errors#missing_authorization_header" "link": "https://docs.meilisearch.com/errors#missing_authorization_header"
} }
)), )),
(status = 404, description = "The task uid does not exists", body = ResponseError, content_type = "application/json", example = json!( (status = 404, description = "The task uid does not exist", body = ResponseError, content_type = "application/json", example = json!(
{ {
"message": "Task :taskUid not found.", "message": "Task :taskUid not found.",
"code": "task_not_found", "code": "task_not_found",

View File

@ -557,7 +557,7 @@ async fn delete_document_by_filter() {
"###); "###);
let index = shared_does_not_exists_index().await; let index = shared_does_not_exists_index().await;
// index does not exists // index does not exist
let (response, _code) = let (response, _code) =
index.delete_document_by_filter_fail(json!({ "filter": "doggo = bernese"})).await; index.delete_document_by_filter_fail(json!({ "filter": "doggo = bernese"})).await;
snapshot!(response, @r###" snapshot!(response, @r###"

View File

@ -304,7 +304,7 @@ async fn search_bad_filter() {
let server = Server::new_shared(); let server = Server::new_shared();
let index = server.unique_index(); let index = server.unique_index();
// Also, to trigger the error message we need to effectively create the index or else it'll throw an // Also, to trigger the error message we need to effectively create the index or else it'll throw an
// index does not exists error. // index does not exist error.
let (response, _code) = index.create(None).await; let (response, _code) = index.create(None).await;
server.wait_task(response.uid()).await.succeeded(); server.wait_task(response.uid()).await.succeeded();
@ -1263,7 +1263,7 @@ async fn search_with_contains_without_enabling_the_feature() {
let server = Server::new_shared(); let server = Server::new_shared();
let index = server.unique_index(); let index = server.unique_index();
// Also, to trigger the error message we need to effectively create the index or else it'll throw an // Also, to trigger the error message we need to effectively create the index or else it'll throw an
// index does not exists error. // index does not exist error.
let (task, _code) = index.create(None).await; let (task, _code) = index.create(None).await;
server.wait_task(task.uid()).await.succeeded(); server.wait_task(task.uid()).await.succeeded();