You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "The name of the test, defaults to the name of the `operation` (file name). The testName is also used for the documentation snippets as a key to access it inside the snippet JSON object: with a testName equal to `foo` on the `operationIndex` of the `search` client, you can access it from the `search.operationIndex.foo` key."
43
+
},
44
+
"isSnippet": {
45
+
"type": "boolean",
46
+
"description": "Whether this test case should also be a documentation code snippet."
47
+
},
48
+
"parameters": {
49
+
"type": "object",
50
+
"description": "A free form object that must correspond to the parameters that the method expects."
51
+
},
52
+
"requestOptions": {
53
+
"type": "object",
54
+
"description": "The requests options of an Algolia client to send with the current test case.",
55
+
"properties": {
56
+
"queryParameters": {
57
+
"type": "object",
58
+
"description": "The extra query parameters to send with your initial request."
59
+
},
60
+
"headers": {
61
+
"type": "object",
62
+
"description": "The extra headers to send with your initial request."
63
+
}
64
+
}
65
+
},
66
+
"request": {
67
+
"type": "object",
68
+
"description": "The expected request to be sent by the client.",
69
+
"properties": {
70
+
"path": {
71
+
"type": "string",
72
+
"description": "The path of the API client request, e.g. /1/foo/bar."
73
+
},
74
+
"method": {
75
+
"type": "string",
76
+
"description": "The HTTP method used to contact the path, e.g. GET."
77
+
},
78
+
"body": {
79
+
"type": "object",
80
+
"description": "A free form object that contains the expected payload to be sent for the current test case."
81
+
},
82
+
"queryParameters": {
83
+
"type": "object",
84
+
"description": "A free form object that contains the expected query parameters to be sent for the current test case."
85
+
},
86
+
"headers": {
87
+
"type": "object",
88
+
"description": "A free form object that contains the expected headers to be sent for the current test case."
89
+
}
90
90
},
91
-
"query": "",
92
-
"params": "",
93
-
"index": "cts_e2e_search_empty_index",
94
-
"renderingContent": {}
95
-
}
96
-
]
97
-
}
98
-
}
99
-
}
100
-
]
91
+
"required": [
92
+
"path",
93
+
"method"
94
+
]
95
+
},
96
+
"response": {
97
+
"type": "object",
98
+
"description": "The expected response to be returned by the client. Specificying this field indicates an e2e test will be performed, nothing is mocked.",
99
+
"properties": {
100
+
"statusCode": {
101
+
"type": "integer",
102
+
"description": "The status code of the response."
103
+
},
104
+
"body": {
105
+
"type": "object",
106
+
"description": "A free form object that contains the expected response to be received for the current test case."
0 commit comments