File tree Expand file tree Collapse file tree 1 file changed +85
-0
lines changed
tests/CTS/requests/ingestion Expand file tree Collapse file tree 1 file changed +85
-0
lines changed Original file line number Diff line number Diff line change 1+ [
2+ {
3+ "parameters" : {
4+ "indexName" : " foo" ,
5+ "pushTaskPayload" : {
6+ "action" : " addObject" ,
7+ "records" : [
8+ {
9+ "key" : " bar" ,
10+ "foo" : " 1" ,
11+ "objectID" : " o"
12+ },
13+ {
14+ "key" : " baz" ,
15+ "foo" : " 2" ,
16+ "objectID" : " k"
17+ }
18+ ]
19+ }
20+ },
21+ "request" : {
22+ "path" : " /1/push/foo" ,
23+ "method" : " POST" ,
24+ "body" : {
25+ "action" : " addObject" ,
26+ "records" : [
27+ {
28+ "key" : " bar" ,
29+ "foo" : " 1" ,
30+ "objectID" : " o"
31+ },
32+ {
33+ "key" : " baz" ,
34+ "foo" : " 2" ,
35+ "objectID" : " k"
36+ }
37+ ]
38+ }
39+ }
40+ },
41+ {
42+ "testName" : " allows for watch query parameter" ,
43+ "parameters" : {
44+ "indexName" : " bar" ,
45+ "pushTaskPayload" : {
46+ "action" : " addObject" ,
47+ "records" : [
48+ {
49+ "key" : " bar" ,
50+ "foo" : " 1" ,
51+ "objectID" : " o"
52+ },
53+ {
54+ "key" : " baz" ,
55+ "foo" : " 2" ,
56+ "objectID" : " k"
57+ }
58+ ]
59+ },
60+ "watch" : true
61+ },
62+ "request" : {
63+ "path" : " /1/push/bar" ,
64+ "method" : " POST" ,
65+ "queryParameters" : {
66+ "watch" : " true"
67+ },
68+ "body" : {
69+ "action" : " addObject" ,
70+ "records" : [
71+ {
72+ "key" : " bar" ,
73+ "foo" : " 1" ,
74+ "objectID" : " o"
75+ },
76+ {
77+ "key" : " baz" ,
78+ "foo" : " 2" ,
79+ "objectID" : " k"
80+ }
81+ ]
82+ }
83+ }
84+ }
85+ ]
You can’t perform that action at this time.
0 commit comments