fix the tests

This commit is contained in:
Tamo 2022-10-10 20:40:27 +02:00 committed by Clément Renault
parent 4bd9e4d723
commit f176382b34
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4
3 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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": [
"*"
],

View File

@ -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();