Skip to content

Commit

Permalink
fix: json files
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Dec 16, 2021
1 parent ea0ea0c commit 0e89420
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 62 deletions.
5 changes: 2 additions & 3 deletions tests/CTS/clients/search/addApiKey.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"method": "addApiKey",
"parameters": [
{
"acl" : ["search", "addObject"],
"acl": ["search", "addObject"],
"description": "my new api key",
"validity": 300,
"maxQueriesPerIPPerHour": 100,
Expand All @@ -14,7 +14,7 @@
"path": "/1/keys",
"method": "POST",
"data": {
"acl" : ["search", "addObject"],
"acl": ["search", "addObject"],
"description": "my new api key",
"validity": 300,
"maxQueriesPerIPPerHour": 100,
Expand All @@ -23,4 +23,3 @@
}
}
]

4 changes: 1 addition & 3 deletions tests/CTS/clients/search/clearAllSynonyms.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
[
{
"method": "clearAllSynonyms",
"parameters": [
"indexName"
],
"parameters": ["indexName"],
"request": {
"path": "/1/indexes/indexName/synonyms/clear",
"method": "POST"
Expand Down
4 changes: 1 addition & 3 deletions tests/CTS/clients/search/deleteApiKey.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
[
{
"method": "deleteApiKey",
"parameters": [
"myTestApiKey"
],
"parameters": ["myTestApiKey"],
"request": {
"path": "/1/keys/myTestApiKey",
"method": "DELETE"
Expand Down
5 changes: 1 addition & 4 deletions tests/CTS/clients/search/deleteSynonym.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
[
{
"method": "deleteSynonym",
"parameters": [
"indexName",
"id1"
],
"parameters": ["indexName", "id1"],
"request": {
"path": "/1/indexes/indexName/synonyms/id1",
"method": "DELETE"
Expand Down
4 changes: 1 addition & 3 deletions tests/CTS/clients/search/getApiKey.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
[
{
"method": "getApiKey",
"parameters": [
"myTestApiKey"
],
"parameters": ["myTestApiKey"],
"request": {
"path": "/1/keys/myTestApiKey",
"method": "GET"
Expand Down
5 changes: 1 addition & 4 deletions tests/CTS/clients/search/getSynonym.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
[
{
"method": "getSynonym",
"parameters": [
"indexName",
"id1"
],
"parameters": ["indexName", "id1"],
"request": {
"path": "/1/indexes/indexName/synonyms/id1",
"method": "GET"
Expand Down
5 changes: 1 addition & 4 deletions tests/CTS/clients/search/restoreApiKey.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
[
{
"method": "restoreApiKey",
"parameters": [
"myApiKey"
],
"parameters": ["myApiKey"],
"request": {
"path": "/1/keys/myApiKey/restore",
"method": "POST"
}
}
]

12 changes: 2 additions & 10 deletions tests/CTS/clients/search/saveSynonym.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@
{
"objectID": "id1",
"type": "synonym",
"synonyms": [
"car",
"vehicule",
"auto"
]
"synonyms": ["car", "vehicule", "auto"]
},
true
],
Expand All @@ -21,11 +17,7 @@
"data": {
"objectID": "id1",
"type": "synonym",
"synonyms": [
"car",
"vehicule",
"auto"
]
"synonyms": ["car", "vehicule", "auto"]
}
}
}
Expand Down
24 changes: 4 additions & 20 deletions tests/CTS/clients/search/saveSynonyms.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,13 @@
{
"objectID": "id1",
"type": "synonym",
"synonyms": [
"car",
"vehicule",
"auto"
]
"synonyms": ["car", "vehicule", "auto"]
},
{
"objectID": "id2",
"type": "onewaysynonym",
"input": "iphone",
"synonyms": [
"ephone",
"aphone",
"yphone"
]
"synonyms": ["ephone", "aphone", "yphone"]
}
],
true,
Expand All @@ -34,21 +26,13 @@
{
"objectID": "id1",
"type": "synonym",
"synonyms": [
"car",
"vehicule",
"auto"
]
"synonyms": ["car", "vehicule", "auto"]
},
{
"objectID": "id2",
"type": "onewaysynonym",
"input": "iphone",
"synonyms": [
"ephone",
"aphone",
"yphone"
]
"synonyms": ["ephone", "aphone", "yphone"]
}
]
}
Expand Down
6 changes: 1 addition & 5 deletions tests/CTS/clients/search/searchSynonyms.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
[
{
"method": "searchSynonyms",
"parameters": [
"indexName",
"queryString",
"onewaysynonym"
],
"parameters": ["indexName", "queryString", "onewaysynonym"],
"request": {
"path": "/1/indexes/indexName/synonyms/search",
"method": "POST"
Expand Down
5 changes: 2 additions & 3 deletions tests/CTS/clients/search/updateApiKey.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"parameters": [
"myApiKey",
{
"acl" : ["search", "addObject"],
"acl": ["search", "addObject"],
"validity": 300,
"maxQueriesPerIPPerHour": 100,
"maxHitsPerQuery": 20
Expand All @@ -14,12 +14,11 @@
"path": "/1/keys/myApiKey",
"method": "PUT",
"data": {
"acl" : ["search", "addObject"],
"acl": ["search", "addObject"],
"validity": 300,
"maxQueriesPerIPPerHour": 100,
"maxHitsPerQuery": 20
}
}
}
]

0 comments on commit 0e89420

Please sign in to comment.