mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 00:55:00 +08:00
Patch tests
This commit is contained in:
parent
1f62e83267
commit
c295924ea2
@ -703,13 +703,15 @@ async fn list_api_keys() {
|
|||||||
"expiresAt": "2050-11-13T00:00:00Z"
|
"expiresAt": "2050-11-13T00:00:00Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Default Search API Key (Use it to search from the frontend)",
|
"name": "Default Search API Key",
|
||||||
|
"description": "Use it to search from the frontend",
|
||||||
"indexes": ["*"],
|
"indexes": ["*"],
|
||||||
"actions": ["search"],
|
"actions": ["search"],
|
||||||
"expiresAt": serde_json::Value::Null,
|
"expiresAt": serde_json::Value::Null,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Default Admin API Key (Use it for all other operations. Caution! Do not use it on a public frontend)",
|
"name": "Default Admin API Key",
|
||||||
|
"description": "Use it for all other than search operations. Caution! Do not expose it on a public frontend",
|
||||||
"indexes": ["*"],
|
"indexes": ["*"],
|
||||||
"actions": ["*"],
|
"actions": ["*"],
|
||||||
"expiresAt": serde_json::Value::Null,
|
"expiresAt": serde_json::Value::Null,
|
||||||
@ -792,7 +794,7 @@ async fn delete_api_key() {
|
|||||||
assert_eq!(204, code, "{:?}", &response);
|
assert_eq!(204, code, "{:?}", &response);
|
||||||
|
|
||||||
// check if API key no longer exist.
|
// check if API key no longer exist.
|
||||||
let (_response, code) = server.get_api_key(&uid).await;
|
let (response, code) = server.get_api_key(&uid).await;
|
||||||
assert_eq!(404, code, "{:?}", &response);
|
assert_eq!(404, code, "{:?}", &response);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user