File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed
tests/CTS/client/collections Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -93,3 +93,10 @@ paths:
9393 $ref : ' paths/collectionID.yml'
9494 /1/collections/{collectionID}/commit :
9595 $ref : ' paths/commitCollection.yml'
96+
97+ # ###############
98+ # ### Helpers ###
99+ # ###############
100+
101+ /setClientApiKey :
102+ $ref : ' ../common/helpers/setClientApiKey.yml#/method'
Original file line number Diff line number Diff line change 1+ [
2+ {
3+ "testName" : " sets the correct host" ,
4+ "autoCreateClient" : false ,
5+ "steps" : [
6+ {
7+ "type" : " createClient" ,
8+ "parameters" : {
9+ "appId" : " my-app-id" ,
10+ "apiKey" : " my-api-key"
11+ }
12+ },
13+ {
14+ "type" : " method" ,
15+ "method" : " listCollections" ,
16+ "parameters" : {
17+ "indexName" : " indexName"
18+ },
19+ "expected" : {
20+ "type" : " host" ,
21+ "match" : " experiences.algolia.com"
22+ }
23+ }
24+ ]
25+ },
26+ {
27+ "testName" : " listCollections throws without index" ,
28+ "steps" : [
29+ {
30+ "type" : " method" ,
31+ "method" : " listCollections" ,
32+ "parameters" : {
33+ "indexName" : null
34+ },
35+ "expected" : {
36+ "error" : " Parameter `indexName` is required when calling `listCollections`."
37+ }
38+ }
39+ ]
40+ }
41+ ]
You can’t perform that action at this time.
0 commit comments