-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathsynthetics.feature
More file actions
489 lines (424 loc) · 28.4 KB
/
synthetics.feature
File metadata and controls
489 lines (424 loc) · 28.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
@endpoint(synthetics) @endpoint(synthetics-v2)
Feature: Synthetics
Synthetic tests use simulated requests and actions so you can monitor the
availability and performance of systems and applications. Datadog supports
the following types of synthetic tests: - [API
tests](https://docs.datadoghq.com/synthetics/api_tests/) - [Browser
tests](https://docs.datadoghq.com/synthetics/browser_tests) - [Network
Path tests](https://docs.datadoghq.com/synthetics/network_path_tests/) -
[Mobile Application
tests](https://docs.datadoghq.com/synthetics/mobile_app_testing) You can
use the Datadog API to create, manage, and organize tests and test suites
programmatically. For more information, see the [Synthetic Monitoring
documentation](https://docs.datadoghq.com/synthetics/).
Background:
Given a valid "apiKeyAuth" key in the system
And a valid "appKeyAuth" key in the system
And an instance of "Synthetics" API
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Abort a multipart upload of a test file returns "API error response." response
Given new "AbortTestFileMultipartUpload" request
And request contains "public_id" parameter from "REPLACE.ME"
And body with value {"key": "org-123/api-upload-file/abc-def-123/2024-01-01T00:00:00_uuid.json", "uploadId": "upload-id-abc123"}
When the request is sent
Then the response status is 404 API error response.
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Abort a multipart upload of a test file returns "No Content" response
Given new "AbortTestFileMultipartUpload" request
And request contains "public_id" parameter from "REPLACE.ME"
And body with value {"key": "org-123/api-upload-file/abc-def-123/2024-01-01T00:00:00_uuid.json", "uploadId": "upload-id-abc123"}
When the request is sent
Then the response status is 204 No Content
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Add a test to a Synthetics downtime returns "Bad Request" response
Given new "AddTestToSyntheticsDowntime" request
And request contains "downtime_id" parameter from "REPLACE.ME"
And request contains "test_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Add a test to a Synthetics downtime returns "Not Found" response
Given new "AddTestToSyntheticsDowntime" request
And request contains "downtime_id" parameter from "REPLACE.ME"
And request contains "test_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 Not Found
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Add a test to a Synthetics downtime returns "OK" response
Given new "AddTestToSyntheticsDowntime" request
And request contains "downtime_id" parameter from "REPLACE.ME"
And request contains "test_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Bulk delete suites returns "API error response." response
Given new "DeleteSyntheticsSuites" request
And body with value {"data": {"attributes": {"public_ids": [""]}, "type": "delete_suites_request"}}
When the request is sent
Then the response status is 400 API error response.
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Bulk delete suites returns "OK" response
Given new "DeleteSyntheticsSuites" request
And body with value {"data": {"attributes": {"public_ids": [""]}, "type": "delete_suites_request"}}
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Bulk delete tests returns "API error response." response
Given new "DeleteSyntheticsTests" request
And body with value {"data": {"attributes": {"public_ids": ["abc-def-123"]}, "type": "delete_tests_request"}}
When the request is sent
Then the response status is 404 API error response.
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Bulk delete tests returns "OK" response
Given new "DeleteSyntheticsTests" request
And body with value {"data": {"attributes": {"public_ids": ["abc-def-123"]}, "type": "delete_tests_request"}}
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Complete a multipart upload of a test file returns "API error response." response
Given new "CompleteTestFileMultipartUpload" request
And request contains "public_id" parameter from "REPLACE.ME"
And body with value {"key": "org-123/api-upload-file/abc-def-123/2024-01-01T00:00:00_uuid.json", "parts": [{"ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"", "PartNumber": 1}], "uploadId": "upload-id-abc123"}
When the request is sent
Then the response status is 404 API error response.
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Complete a multipart upload of a test file returns "No Content" response
Given new "CompleteTestFileMultipartUpload" request
And request contains "public_id" parameter from "REPLACE.ME"
And body with value {"key": "org-123/api-upload-file/abc-def-123/2024-01-01T00:00:00_uuid.json", "parts": [{"ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"", "PartNumber": 1}], "uploadId": "upload-id-abc123"}
When the request is sent
Then the response status is 204 No Content
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Create a Network Path test returns "API error response." response
Given new "CreateSyntheticsNetworkTest" request
And body with value {"data": {"attributes": {"config": {"assertions": [{"operator": "lessThan", "property": "avg", "target": 500, "type": "latency"}], "request": {"e2e_queries": 50, "host": "", "max_ttl": 30, "port": 443, "tcp_method": "prefer_sack", "traceroute_queries": 3}}, "locations": ["aws:us-east-1", "agent:my-agent-name"], "message": "Network Path test notification", "name": "Example Network Path test", "options": {"monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}}, "status": "live", "subtype": "tcp", "tags": ["env:production"], "type": "network"}, "type": "network"}}
When the request is sent
Then the response status is 400 API error response.
@team:DataDog/synthetics-orchestrating-managing
Scenario: Create a Network Path test returns "OK" response
Given new "CreateSyntheticsNetworkTest" request
And body with value {"data": {"attributes": {"config": {"assertions": [{"operator": "lessThan", "property": "avg", "target": 500, "type": "latency"}], "request": {"host": "example.com", "port": 443, "tcp_method": "prefer_sack", "max_ttl": 30, "e2e_queries": 50, "traceroute_queries": 3}}, "locations": ["aws:us-east-1", "agent:my-agent-name"], "message": "Network Path test notification", "name": "Example Network Path test", "options": {"tick_every": 60}, "status": "live", "subtype": "tcp", "tags": ["env:production"], "type": "network"}, "type": "network"}}
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Create a Synthetics downtime returns "Bad Request" response
Given new "CreateSyntheticsDowntime" request
And body with value {"data": {"attributes": {"isEnabled": true, "name": "Weekly maintenance", "testIds": ["abc-def-123"], "timeSlots": [{"duration": 3600, "start": {"day": 15, "hour": 10, "minute": 30, "month": 1, "year": 2024}, "timezone": "Europe/Paris"}]}, "type": "downtime"}}
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Create a Synthetics downtime returns "Created" response
Given new "CreateSyntheticsDowntime" request
And body with value {"data": {"attributes": {"isEnabled": true, "name": "Weekly maintenance", "testIds": ["abc-def-123"], "timeSlots": [{"duration": 3600, "start": {"day": 15, "hour": 10, "minute": 30, "month": 1, "year": 2024}, "timezone": "Europe/Paris"}]}, "type": "downtime"}}
When the request is sent
Then the response status is 201 Created
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Create a test suite returns "API error response." response
Given new "CreateSyntheticsSuite" request
And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "options": {}, "tags": ["env:production"], "tests": [{"alerting_criticality": "critical", "public_id": ""}], "type": "suite"}, "type": "suites"}}
When the request is sent
Then the response status is 400 API error response.
@team:DataDog/synthetics-orchestrating-managing
Scenario: Create a test suite returns "OK" response
Given new "CreateSyntheticsSuite" request
And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "options": {}, "tags": ["env:production"], "tests": [], "type": "suite"}, "type": "suites"}}
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Delete a Synthetics downtime returns "Bad Request" response
Given new "DeleteSyntheticsDowntime" request
And request contains "downtime_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Delete a Synthetics downtime returns "No Content" response
Given new "DeleteSyntheticsDowntime" request
And request contains "downtime_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 204 No Content
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Delete a Synthetics downtime returns "Not Found" response
Given new "DeleteSyntheticsDowntime" request
And request contains "downtime_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 Not Found
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Edit a Network Path test returns "API error response." response
Given new "UpdateSyntheticsNetworkTest" request
And request contains "public_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"config": {"assertions": [{"operator": "lessThan", "property": "avg", "target": 500, "type": "latency"}], "request": {"e2e_queries": 50, "host": "", "max_ttl": 30, "port": 443, "tcp_method": "prefer_sack", "traceroute_queries": 3}}, "locations": ["aws:us-east-1", "agent:my-agent-name"], "message": "Network Path test notification", "name": "Example Network Path test", "options": {"monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}}, "status": "live", "subtype": "tcp", "tags": ["env:production"], "type": "network"}, "type": "network"}}
When the request is sent
Then the response status is 404 API error response.
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Edit a Network Path test returns "OK" response
Given new "UpdateSyntheticsNetworkTest" request
And request contains "public_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"config": {"assertions": [{"operator": "lessThan", "property": "avg", "target": 500, "type": "latency"}], "request": {"e2e_queries": 50, "host": "", "max_ttl": 30, "port": 443, "tcp_method": "prefer_sack", "traceroute_queries": 3}}, "locations": ["aws:us-east-1", "agent:my-agent-name"], "message": "Network Path test notification", "name": "Example Network Path test", "options": {"monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}}, "status": "live", "subtype": "tcp", "tags": ["env:production"], "type": "network"}, "type": "network"}}
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Edit a test suite returns "API error response." response
Given new "EditSyntheticsSuite" request
And request contains "public_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "options": {}, "tags": ["env:production"], "tests": [{"alerting_criticality": "critical", "public_id": ""}], "type": "suite"}, "type": "suites"}}
When the request is sent
Then the response status is 400 API error response.
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Edit a test suite returns "OK" response
Given new "EditSyntheticsSuite" request
And request contains "public_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "options": {}, "tags": ["env:production"], "tests": [{"alerting_criticality": "critical", "public_id": ""}], "type": "suite"}, "type": "suites"}}
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get a Network Path test returns "API error response." response
Given new "GetSyntheticsNetworkTest" request
And request contains "public_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 API error response.
@replay-only @team:DataDog/synthetics-orchestrating-managing
Scenario: Get a Network Path test returns "OK" response
Given new "GetSyntheticsNetworkTest" request
And request contains "public_id" parameter with value "c7a-uwa-wn2"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get a Synthetics downtime returns "Bad Request" response
Given new "GetSyntheticsDowntime" request
And request contains "downtime_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get a Synthetics downtime returns "Not Found" response
Given new "GetSyntheticsDowntime" request
And request contains "downtime_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 Not Found
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get a Synthetics downtime returns "OK" response
Given new "GetSyntheticsDowntime" request
And request contains "downtime_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get a fast test result returns "API error response." response
Given new "GetSyntheticsFastTestResult" request
And request contains "id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 API error response.
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get a fast test result returns "OK" response
Given new "GetSyntheticsFastTestResult" request
And request contains "id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get a presigned URL for downloading a test file returns "API error response." response
Given new "GetTestFileDownloadUrl" request
And request contains "public_id" parameter from "REPLACE.ME"
And body with value {"bucketKey": "api-upload-file/abc-def-123/2024-01-01T00:00:00_uuid.json"}
When the request is sent
Then the response status is 404 API error response.
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get a presigned URL for downloading a test file returns "OK" response
Given new "GetTestFileDownloadUrl" request
And request contains "public_id" parameter from "REPLACE.ME"
And body with value {"bucketKey": "api-upload-file/abc-def-123/2024-01-01T00:00:00_uuid.json"}
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get a specific version of a test returns "API error response." response
Given new "GetSyntheticsTestVersion" request
And request contains "public_id" parameter from "REPLACE.ME"
And request contains "version_number" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 API error response.
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get a specific version of a test returns "OK" response
Given new "GetSyntheticsTestVersion" request
And request contains "public_id" parameter from "REPLACE.ME"
And request contains "version_number" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get a suite returns "API error response." response
Given new "GetSyntheticsSuite" request
And request contains "public_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 API error response.
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get a suite returns "OK" response
Given new "GetSyntheticsSuite" request
And request contains "public_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get available subtests for a multistep test returns "OK" response
Given new "GetApiMultistepSubtests" request
And request contains "public_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get parent suites for a test returns "API error response." response
Given new "GetTestParentSuites" request
And request contains "public_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 API error response.
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get parent suites for a test returns "OK" response
Given new "GetTestParentSuites" request
And request contains "public_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get parent tests for a subtest returns "API error response." response
Given new "GetApiMultistepSubtestParents" request
And request contains "public_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 API error response.
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get parent tests for a subtest returns "OK" response
Given new "GetApiMultistepSubtestParents" request
And request contains "public_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get presigned URLs for uploading a test file returns "API error response." response
Given new "GetTestFileMultipartPresignedUrls" request
And request contains "public_id" parameter from "REPLACE.ME"
And body with value {"bucketKeyPrefix": "api-upload-file", "parts": [{"md5": "1B2M2Y8AsgTpgAmY7PhCfg==", "partNumber": 1}]}
When the request is sent
Then the response status is 404 API error response.
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get presigned URLs for uploading a test file returns "OK" response
Given new "GetTestFileMultipartPresignedUrls" request
And request contains "public_id" parameter from "REPLACE.ME"
And body with value {"bucketKeyPrefix": "api-upload-file", "parts": [{"md5": "1B2M2Y8AsgTpgAmY7PhCfg==", "partNumber": 1}]}
When the request is sent
Then the response status is 200 OK
@team:DataDog/synthetics-orchestrating-managing
Scenario: Get the on-demand concurrency cap returns "OK" response
Given new "GetOnDemandConcurrencyCap" request
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get version history of a test returns "API error response." response
Given new "ListSyntheticsTestVersions" request
And request contains "public_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 API error response.
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Get version history of a test returns "OK" response
Given new "ListSyntheticsTestVersions" request
And request contains "public_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: List Synthetics downtimes returns "Bad Request" response
Given new "ListSyntheticsDowntimes" request
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: List Synthetics downtimes returns "OK" response
Given new "ListSyntheticsDowntimes" request
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Patch a global variable returns "Bad Request" response
Given new "PatchGlobalVariable" request
And request contains "variable_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"json_patch": [{"op": "add", "path": "/name"}]}, "type": "global_variables_json_patch"}}
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Patch a global variable returns "Not Found" response
Given new "PatchGlobalVariable" request
And request contains "variable_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"json_patch": [{"op": "add", "path": "/name"}]}, "type": "global_variables_json_patch"}}
When the request is sent
Then the response status is 404 Not Found
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Patch a global variable returns "OK" response
Given new "PatchGlobalVariable" request
And request contains "variable_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"json_patch": [{"op": "add", "path": "/name"}]}, "type": "global_variables_json_patch"}}
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Patch a test suite returns "API error response." response
Given new "PatchTestSuite" request
And request contains "public_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"json_patch": [{"op": "add", "path": "/name"}]}, "type": "suites_json_patch"}}
When the request is sent
Then the response status is 400 API error response.
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Patch a test suite returns "OK" response
Given new "PatchTestSuite" request
And request contains "public_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"json_patch": [{"op": "add", "path": "/name"}]}, "type": "suites_json_patch"}}
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Remove a test from a Synthetics downtime returns "Bad Request" response
Given new "RemoveTestFromSyntheticsDowntime" request
And request contains "downtime_id" parameter from "REPLACE.ME"
And request contains "test_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Remove a test from a Synthetics downtime returns "Not Found" response
Given new "RemoveTestFromSyntheticsDowntime" request
And request contains "downtime_id" parameter from "REPLACE.ME"
And request contains "test_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 Not Found
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Remove a test from a Synthetics downtime returns "OK" response
Given new "RemoveTestFromSyntheticsDowntime" request
And request contains "downtime_id" parameter from "REPLACE.ME"
And request contains "test_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@team:DataDog/synthetics-orchestrating-managing
Scenario: Save new value for on-demand concurrency cap returns "OK" response
Given new "SetOnDemandConcurrencyCap" request
And body with value {"on_demand_concurrency_cap": 20}
When the request is sent
Then the response status is 200 OK
And the response "data.attributes.on_demand_concurrency_cap" is equal to 20
@team:DataDog/synthetics-orchestrating-managing
Scenario: Search Synthetics suites returns "OK" response
Given new "SearchSuites" request
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Search test suites returns "API error response." response
Given new "SearchSuites" request
When the request is sent
Then the response status is 400 API error response.
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Search test suites returns "OK" response
Given new "SearchSuites" request
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Update a Synthetics downtime returns "Bad Request" response
Given new "UpdateSyntheticsDowntime" request
And request contains "downtime_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"isEnabled": true, "name": "Weekly maintenance", "testIds": ["abc-def-123"], "timeSlots": [{"duration": 3600, "start": {"day": 15, "hour": 10, "minute": 30, "month": 1, "year": 2024}, "timezone": "Europe/Paris"}]}, "type": "downtime"}}
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Update a Synthetics downtime returns "Not Found" response
Given new "UpdateSyntheticsDowntime" request
And request contains "downtime_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"isEnabled": true, "name": "Weekly maintenance", "testIds": ["abc-def-123"], "timeSlots": [{"duration": 3600, "start": {"day": 15, "hour": 10, "minute": 30, "month": 1, "year": 2024}, "timezone": "Europe/Paris"}]}, "type": "downtime"}}
When the request is sent
Then the response status is 404 Not Found
@generated @skip @team:DataDog/synthetics-orchestrating-managing
Scenario: Update a Synthetics downtime returns "OK" response
Given new "UpdateSyntheticsDowntime" request
And request contains "downtime_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"isEnabled": true, "name": "Weekly maintenance", "testIds": ["abc-def-123"], "timeSlots": [{"duration": 3600, "start": {"day": 15, "hour": 10, "minute": 30, "month": 1, "year": 2024}, "timezone": "Europe/Paris"}]}, "type": "downtime"}}
When the request is sent
Then the response status is 200 OK