File tree Expand file tree Collapse file tree 3 files changed +90
-0
lines changed Expand file tree Collapse file tree 3 files changed +90
-0
lines changed Original file line number Diff line number Diff line change 102102 }
103103 }
104104 ]
105+ },
106+ {
107+ "testName" : " mcm with filters" ,
108+ "steps" : [
109+ {
110+ "type" : " method" ,
111+ "method" : " generateSecuredApiKey" ,
112+ "parameters" : {
113+ "parentApiKey" : " YourSearchOnlyApiKey" ,
114+ "restrictions" : {
115+ "filters" : " user:user42 AND user:public"
116+ }
117+ }
118+ }
119+ ]
120+ },
121+ {
122+ "testName" : " mcm with user token" ,
123+ "steps" : [
124+ {
125+ "type" : " method" ,
126+ "method" : " generateSecuredApiKey" ,
127+ "parameters" : {
128+ "parentApiKey" : " YourSearchOnlyApiKey" ,
129+ "restrictions" : {
130+ "userToken" : " user42"
131+ }
132+ }
133+ }
134+ ]
105135 }
106136]
Original file line number Diff line number Diff line change 989989 }
990990 }
991991 }
992+ },
993+ {
994+ "testName" : " saveRule always active rule" ,
995+ "parameters" : {
996+ "indexName" : " indexName" ,
997+ "objectID" : " a-rule-id" ,
998+ "rule" : {
999+ "objectID" : " a-rule-id" ,
1000+ "consequence" : {
1001+ "params" : {
1002+ "aroundRadius" : 1000
1003+ }
1004+ },
1005+ "validity" : [
1006+ {
1007+ "from" : 1577836800 ,
1008+ "until" : 1577836800
1009+ }
1010+ ]
1011+ }
1012+ },
1013+ "request" : {
1014+ "path" : " /1/indexes/indexName/rules/a-rule-id" ,
1015+ "method" : " PUT" ,
1016+ "body" : {
1017+ "objectID" : " a-rule-id" ,
1018+ "consequence" : {
1019+ "params" : {
1020+ "aroundRadius" : 1000
1021+ }
1022+ },
1023+ "validity" : [
1024+ {
1025+ "from" : 1577836800 ,
1026+ "until" : 1577836800
1027+ }
1028+ ]
1029+ }
1030+ }
9921031 }
9931032]
Original file line number Diff line number Diff line change 28122812 "query" : " query"
28132813 }
28142814 }
2815+ },
2816+ {
2817+ "testName" : " mcm with algolia user id" ,
2818+ "parameters" : {
2819+ "indexName" : " playlists" ,
2820+ "searchParams" : {
2821+ "query" : " peace"
2822+ }
2823+ },
2824+ "requestOptions" : {
2825+ "headers" : {
2826+ "X-Algolia-User-ID" : " user42"
2827+ }
2828+ },
2829+ "request" : {
2830+ "path" : " /1/indexes/playlists/query" ,
2831+ "method" : " POST" ,
2832+ "body" : {
2833+ "query" : " peace"
2834+ }
2835+ }
28152836 }
28162837]
You can’t perform that action at this time.
0 commit comments