Skip to content

Commit 6f52ffe

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Modifies the tests and cassettes to avoid invalid indexes (#1944)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 3072502 commit 6f52ffe

File tree

19 files changed

+95
-93
lines changed

19 files changed

+95
-93
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-12-05 14:55:55.221483",
8-
"spec_repo_commit": "cfc6b497"
7+
"regenerated": "2024-12-05 16:15:55.910202",
8+
"spec_repo_commit": "843392e2"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-05 14:55:55.240720",
13-
"spec_repo_commit": "cfc6b497"
12+
"regenerated": "2024-12-05 16:15:55.932482",
13+
"spec_repo_commit": "843392e2"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6414,8 +6414,8 @@ components:
64146414
description: List of indexes for the search. If not provided, the search
64156415
is performed in all indexes.
64166416
example:
6417-
- index-1
6418-
- index-2
6417+
- test-index
6418+
- test-index-2
64196419
items:
64206420
description: Individual index.
64216421
type: string
@@ -7783,14 +7783,16 @@ components:
77837783
description: List of indexes for the search. If not provided, the search
77847784
is performed in all indexes.
77857785
example:
7786-
- index-1
7787-
- index-2
7786+
- test-index
7787+
- test-index-2
77887788
items:
77897789
description: Individual index.
77907790
type: string
77917791
type: array
77927792
is_created:
7793-
description: Whether the deletion request is fully created or not.
7793+
description: Whether the deletion request is fully created or not. It can
7794+
take several minutes to fully create a deletion request depending on the
7795+
target query and timeframe.
77947796
example: true
77957797
type: boolean
77967798
org_id:
@@ -31137,8 +31139,8 @@ paths:
3113731139
x-codegen-request-body-name: body
3113831140
/api/v2/deletion/data/{product}:
3113931141
post:
31140-
description: Creates a data deletion request by providing a query and a time
31141-
frame targeting the proper data.
31142+
description: Creates a data deletion request by providing a query and a timeframe
31143+
targeting the proper data.
3114231144
operationId: CreateDataDeletionRequest
3114331145
parameters:
3114431146
- $ref: '#/components/parameters/ProductName'
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-11-15T08:56:51.182Z"
1+
"2024-12-05T09:23:41.160Z"

cassettes/v2/Data-Deletion_68448529/Cancels-a-data-deletion-request-returns-Bad-Request-response_1737272784/recording.har

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@
4141
"value": "application/vnd.api+json"
4242
}
4343
],
44-
"headersSize": 665,
44+
"headersSize": 666,
4545
"httpVersion": "HTTP/1.1",
4646
"redirectURL": "",
4747
"status": 400,
4848
"statusText": "Bad Request"
4949
},
50-
"startedDateTime": "2024-11-15T08:56:51.190Z",
51-
"time": 487
50+
"startedDateTime": "2024-12-05T09:23:41.168Z",
51+
"time": 482
5252
}
5353
],
5454
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-11-15T08:57:02.769Z"
1+
"2024-12-05T09:23:41.674Z"

cassettes/v2/Data-Deletion_68448529/Cancels-a-data-deletion-request-returns-OK-response_383699486/recording.har

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "5cd4cf4794a785396a9ce898d8edd4fb",
11+
"_id": "599b5d26fcc8db181a6edfc958964914",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 136,
15+
"bodySize": 144,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}"
35+
"text": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/deletion/data/logs"
3939
},
4040
"response": {
41-
"bodySize": 458,
41+
"bodySize": 466,
4242
"content": {
4343
"mimeType": "application/vnd.api+json",
44-
"size": 458,
45-
"text": "{\"data\":{\"id\":\"303\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:57:03.242841331Z\",\"created_by\":\"[email protected]\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"pending\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:57:03.242841331Z\"}},\"meta\":{\"product\":\"logs\"}}"
44+
"size": 466,
45+
"text": "{\"data\":{\"id\":\"523\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T09:23:42.016613164Z\",\"created_by\":\"[email protected]\",\"from_time\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"pending\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T09:23:42.016613164Z\"}},\"meta\":{\"product\":\"logs\"}}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2024-11-15T08:57:02.776Z",
61-
"time": 502
60+
"startedDateTime": "2024-12-05T09:23:41.677Z",
61+
"time": 366
6262
},
6363
{
64-
"_id": "5c48cf256248675c8bcede02c7c5fb57",
64+
"_id": "ec6f7ff8dba29b0064298e9f391044e3",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -78,14 +78,14 @@
7878
"httpVersion": "HTTP/1.1",
7979
"method": "PUT",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/deletion/requests/303/cancel"
81+
"url": "https://api.datadoghq.com/api/v2/deletion/requests/523/cancel"
8282
},
8383
"response": {
84-
"bodySize": 481,
84+
"bodySize": 489,
8585
"content": {
8686
"mimeType": "application/vnd.api+json",
87-
"size": 481,
88-
"text": "{\"data\":{\"id\":\"303\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:57:03.242841Z\",\"created_by\":\"[email protected]\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:57:03.638067Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}"
87+
"size": 489,
88+
"text": "{\"data\":{\"id\":\"523\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T09:23:42.016613Z\",\"created_by\":\"[email protected]\",\"from_time\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T09:23:42.384299Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}"
8989
},
9090
"cookies": [],
9191
"headers": [
@@ -100,11 +100,11 @@
100100
"status": 200,
101101
"statusText": "OK"
102102
},
103-
"startedDateTime": "2024-11-15T08:57:03.289Z",
104-
"time": 355
103+
"startedDateTime": "2024-12-05T09:23:42.058Z",
104+
"time": 339
105105
},
106106
{
107-
"_id": "5c48cf256248675c8bcede02c7c5fb57",
107+
"_id": "ec6f7ff8dba29b0064298e9f391044e3",
108108
"_order": 1,
109109
"cache": {},
110110
"request": {
@@ -121,14 +121,14 @@
121121
"httpVersion": "HTTP/1.1",
122122
"method": "PUT",
123123
"queryString": [],
124-
"url": "https://api.datadoghq.com/api/v2/deletion/requests/303/cancel"
124+
"url": "https://api.datadoghq.com/api/v2/deletion/requests/523/cancel"
125125
},
126126
"response": {
127-
"bodySize": 481,
127+
"bodySize": 489,
128128
"content": {
129129
"mimeType": "application/vnd.api+json",
130-
"size": 481,
131-
"text": "{\"data\":{\"id\":\"303\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:57:03.242841Z\",\"created_by\":\"[email protected]\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:57:03.936325Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}"
130+
"size": 489,
131+
"text": "{\"data\":{\"id\":\"523\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T09:23:42.016613Z\",\"created_by\":\"[email protected]\",\"from_time\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T09:23:42.384299Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}"
132132
},
133133
"cookies": [],
134134
"headers": [
@@ -143,8 +143,8 @@
143143
"status": 200,
144144
"statusText": "OK"
145145
},
146-
"startedDateTime": "2024-11-15T08:57:03.655Z",
147-
"time": 355
146+
"startedDateTime": "2024-12-05T09:23:42.409Z",
147+
"time": 434
148148
}
149149
],
150150
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-11-15T08:57:14.890Z"
1+
"2024-12-05T09:23:42.850Z"

cassettes/v2/Data-Deletion_68448529/Cancels-a-data-deletion-request-returns-Precondition-failed-error-response_780321563/recording.har

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"value": "application/json"
2222
}
2323
],
24-
"headersSize": 550,
24+
"headersSize": 552,
2525
"httpVersion": "HTTP/1.1",
2626
"method": "PUT",
2727
"queryString": [],
@@ -47,8 +47,8 @@
4747
"status": 412,
4848
"statusText": "Precondition Failed"
4949
},
50-
"startedDateTime": "2024-11-15T08:57:14.897Z",
51-
"time": 483
50+
"startedDateTime": "2024-12-05T09:23:42.855Z",
51+
"time": 329
5252
}
5353
],
5454
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-11-15T08:59:09.810Z"
1+
"2024-12-05T09:23:43.197Z"

cassettes/v2/Data-Deletion_68448529/Creates-a-data-deletion-request-returns-OK-response_3410553644/recording.har

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "5cd4cf4794a785396a9ce898d8edd4fb",
11+
"_id": "599b5d26fcc8db181a6edfc958964914",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 136,
15+
"bodySize": 144,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}"
35+
"text": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/deletion/data/logs"
3939
},
4040
"response": {
41-
"bodySize": 458,
41+
"bodySize": 466,
4242
"content": {
4343
"mimeType": "application/vnd.api+json",
44-
"size": 458,
45-
"text": "{\"data\":{\"id\":\"305\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:59:10.304195172Z\",\"created_by\":\"[email protected]\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"pending\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:59:10.304195172Z\"}},\"meta\":{\"product\":\"logs\"}}"
44+
"size": 466,
45+
"text": "{\"data\":{\"id\":\"524\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T09:23:43.527574137Z\",\"created_by\":\"[email protected]\",\"from_time\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"pending\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T09:23:43.527574137Z\"}},\"meta\":{\"product\":\"logs\"}}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2024-11-15T08:59:09.818Z",
61-
"time": 514
60+
"startedDateTime": "2024-12-05T09:23:43.202Z",
61+
"time": 358
6262
},
6363
{
64-
"_id": "7ee59a126bea0625a0801c7a65384828",
64+
"_id": "f7d7b19c03914246c87c6d32dfeb6b9f",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -78,14 +78,14 @@
7878
"httpVersion": "HTTP/1.1",
7979
"method": "PUT",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/deletion/requests/305/cancel"
81+
"url": "https://api.datadoghq.com/api/v2/deletion/requests/524/cancel"
8282
},
8383
"response": {
84-
"bodySize": 481,
84+
"bodySize": 489,
8585
"content": {
8686
"mimeType": "application/vnd.api+json",
87-
"size": 481,
88-
"text": "{\"data\":{\"id\":\"305\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:59:10.304195Z\",\"created_by\":\"[email protected]\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:59:10.681676Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}"
87+
"size": 489,
88+
"text": "{\"data\":{\"id\":\"524\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-12-05T09:23:43.527574Z\",\"created_by\":\"[email protected]\",\"from_time\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-12-05T09:23:44.017414Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}"
8989
},
9090
"cookies": [],
9191
"headers": [
@@ -100,8 +100,8 @@
100100
"status": 200,
101101
"statusText": "OK"
102102
},
103-
"startedDateTime": "2024-11-15T08:59:10.338Z",
104-
"time": 356
103+
"startedDateTime": "2024-12-05T09:23:43.577Z",
104+
"time": 453
105105
}
106106
],
107107
"pages": [],

0 commit comments

Comments
 (0)