Skip to content

Commit 0126e53

Browse files
committed
tests: Fix tests failures when testing against 1.15.1
E.g. https://github.com/meilisearch/meilisearch-rust/actions/runs/15610369450/job/43969605803?pr=625 Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
1 parent 90a153c commit 0126e53

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/errors.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,15 +395,15 @@ mod test {
395395
reqwest::Client::new()
396396
.execute(reqwest::Request::new(
397397
reqwest::Method::POST,
398-
// there will never be a `meilisearch.gouv.fr` addr since these domain name are controlled by the state of france
398+
// there will never be a `meilisearch.gouv.fr` addr since these domain names are controlled by the state of france
399399
reqwest::Url::parse("https://meilisearch.gouv.fr").unwrap(),
400400
))
401401
.await
402402
.unwrap_err(),
403403
);
404404
assert_eq!(
405405
error.to_string(),
406-
"HTTP request failed: error sending request for url (https://meilisearch.gouv.fr/)"
406+
"HTTP request failed: error sending request"
407407
);
408408

409409
let error = Error::InvalidTenantToken(jsonwebtoken::errors::Error::from(InvalidToken));

src/key.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,9 @@ pub enum Action {
656656
/// Provides access to everything.
657657
#[serde(rename = "*")]
658658
All,
659+
/// Provides access to the `/chatCompletions` endpoint, since Meilisearch 1.15.1.
660+
#[serde(rename = "chatCompletions")]
661+
ChatCompletions,
659662
/// Provides access to both [`POST`](https://www.meilisearch.com/docs/reference/api/search#search-in-an-index-with-post-route) and [`GET`](https://www.meilisearch.com/docs/reference/api/search#search-in-an-index-with-get-route) search endpoints on authorized indexes.
660663
#[serde(rename = "search")]
661664
Search,

0 commit comments

Comments
 (0)