mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
fix the tests
This commit is contained in:
parent
4bd9e4d723
commit
f176382b34
@ -169,7 +169,7 @@ pub(crate) mod test {
|
|||||||
|
|
||||||
// keys
|
// keys
|
||||||
let keys = dump.keys().collect::<Result<Vec<_>>>().unwrap();
|
let keys = dump.keys().collect::<Result<Vec<_>>>().unwrap();
|
||||||
insta::assert_json_snapshot!(keys);
|
insta::assert_json_snapshot!(keys, { "[].uid" => "[uuid]" });
|
||||||
|
|
||||||
// indexes
|
// indexes
|
||||||
let mut indexes = dump.indexes().unwrap().collect::<Result<Vec<_>>>().unwrap();
|
let mut indexes = dump.indexes().unwrap().collect::<Result<Vec<_>>>().unwrap();
|
||||||
|
@ -5,7 +5,7 @@ expression: keys
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"description": "Default Search API Key (Use it to search from the frontend)",
|
"description": "Default Search API Key (Use it to search from the frontend)",
|
||||||
"uid": "7bc06c90-ca16-4eb9-838e-2be2d17e51a9",
|
"uid": "[uuid]",
|
||||||
"actions": [
|
"actions": [
|
||||||
"search"
|
"search"
|
||||||
],
|
],
|
||||||
@ -18,7 +18,7 @@ expression: keys
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Default Admin API Key (Use it for all other operations. Caution! Do not use it on a public frontend)",
|
"description": "Default Admin API Key (Use it for all other operations. Caution! Do not use it on a public frontend)",
|
||||||
"uid": "ab9d6a00-7940-4278-b824-1755c98c1849",
|
"uid": "[uuid]",
|
||||||
"actions": [
|
"actions": [
|
||||||
"*"
|
"*"
|
||||||
],
|
],
|
||||||
|
@ -257,7 +257,7 @@ pub(crate) mod test {
|
|||||||
|
|
||||||
// keys
|
// keys
|
||||||
let keys = dump.keys().collect::<Result<Vec<_>>>().unwrap();
|
let keys = dump.keys().collect::<Result<Vec<_>>>().unwrap();
|
||||||
insta::assert_json_snapshot!(keys);
|
insta::assert_json_snapshot!(keys, { "[].uid" => "[uuid]" });
|
||||||
|
|
||||||
// indexes
|
// indexes
|
||||||
let mut indexes = dump.indexes().unwrap().collect::<Result<Vec<_>>>().unwrap();
|
let mut indexes = dump.indexes().unwrap().collect::<Result<Vec<_>>>().unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user