mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 12:05:05 +08:00
fix the tests
This commit is contained in:
parent
4bd9e4d723
commit
f176382b34
@ -169,7 +169,7 @@ pub(crate) mod test {
|
||||
|
||||
// keys
|
||||
let keys = dump.keys().collect::<Result<Vec<_>>>().unwrap();
|
||||
insta::assert_json_snapshot!(keys);
|
||||
insta::assert_json_snapshot!(keys, { "[].uid" => "[uuid]" });
|
||||
|
||||
// indexes
|
||||
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)",
|
||||
"uid": "7bc06c90-ca16-4eb9-838e-2be2d17e51a9",
|
||||
"uid": "[uuid]",
|
||||
"actions": [
|
||||
"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)",
|
||||
"uid": "ab9d6a00-7940-4278-b824-1755c98c1849",
|
||||
"uid": "[uuid]",
|
||||
"actions": [
|
||||
"*"
|
||||
],
|
||||
|
@ -257,7 +257,7 @@ pub(crate) mod test {
|
||||
|
||||
// keys
|
||||
let keys = dump.keys().collect::<Result<Vec<_>>>().unwrap();
|
||||
insta::assert_json_snapshot!(keys);
|
||||
insta::assert_json_snapshot!(keys, { "[].uid" => "[uuid]" });
|
||||
|
||||
// indexes
|
||||
let mut indexes = dump.indexes().unwrap().collect::<Result<Vec<_>>>().unwrap();
|
||||
|
Loading…
Reference in New Issue
Block a user