Skip to content

Commit e018a1e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix downtime tests (#1151)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent c331a5c commit e018a1e

File tree

14 files changed

+138
-115
lines changed

14 files changed

+138
-115
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.4",
7-
"regenerated": "2023-05-19 19:02:09.564289",
8-
"spec_repo_commit": "c3f9f308"
7+
"regenerated": "2023-05-22 14:40:58.573114",
8+
"spec_repo_commit": "f75e7820"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-05-19 19:02:09.580189",
13-
"spec_repo_commit": "c3f9f308"
12+
"regenerated": "2023-05-22 14:40:58.586049",
13+
"spec_repo_commit": "f75e7820"
1414
}
1515
}
1616
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022-05-12T09:49:53.715Z"
1+
"2023-05-22T14:29:16.526Z"

cassettes/v1/Downtimes_1733580485/Cancel-a-downtime-returns-OK-response_2564258451/recording.har

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "dde73881459a0efd82a01061bce8cfd0",
11+
"_id": "e0b6bc41e93a11400806014c2cad3a76",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 280,
15+
"bodySize": 297,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"message\":\"Test-Cancel_a_downtime_returns_OK_response-1652348993\",\"recurrence\":{\"period\":1,\"type\":\"weeks\",\"until_date\":1654163393,\"week_days\":[\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\"]},\"scope\":[\"test:testcanceladowntimereturnsokresponse1652348993\"],\"start\":1652348993,\"timezone\":\"Etc/UTC\"}"
35+
"text": "{\"end\":1684769356,\"message\":\"Test-Cancel_a_downtime_returns_OK_response-1684765756\",\"recurrence\":{\"period\":1,\"type\":\"weeks\",\"until_date\":1686580156,\"week_days\":[\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\"]},\"scope\":[\"test:testcanceladowntimereturnsokresponse1684765756\"],\"start\":1684765756,\"timezone\":\"Etc/UTC\"}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v1/downtime"
3939
},
4040
"response": {
41-
"bodySize": 608,
41+
"bodySize": 757,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 608,
45-
"text": "{\"recurrence\":{\"until_date\":1654163393,\"until_occurrences\":null,\"week_days\":[\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\"],\"type\":\"weeks\",\"period\":1},\"end\":null,\"monitor_tags\":[\"*\"],\"child_id\":null,\"canceled\":null,\"monitor_id\":null,\"mute_first_recovery_notification\":false,\"created\":1652348994,\"org_id\":321813,\"modified\":1652348994,\"disabled\":false,\"start\":1652348993,\"creator_id\":1445416,\"parent_id\":null,\"timezone\":\"Etc/UTC\",\"active\":true,\"scope\":[\"test:testcanceladowntimereturnsokresponse1652348993\"],\"message\":\"Test-Cancel_a_downtime_returns_OK_response-1652348993\",\"downtime_type\":2,\"id\":1944162237,\"updater_id\":null}"
44+
"size": 757,
45+
"text": "{\"id\":2941964683,\"monitor_id\":null,\"org_id\":321813,\"start\":1684765756,\"end\":1684769356,\"canceled\":null,\"created\":1684765756,\"modified\":1684765756,\"message\":\"Test-Cancel_a_downtime_returns_OK_response-1684765756\",\"active\":true,\"disabled\":false,\"recurrence\":{\"type\":\"weeks\",\"period\":1,\"week_days\":[\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\"],\"until_occurrences\":null,\"until_date\":1686580156},\"timezone\":\"Etc/UTC\",\"parent_id\":null,\"child_id\":null,\"creator_id\":1445416,\"updater_id\":null,\"downtime_type\":2,\"status\":\"active\",\"monitor_tags\":[\"*\"],\"mute_first_recovery_notification\":false,\"notify_end_types\":[\"expired\"],\"notify_end_states\":[\"alert\",\"no data\",\"warn\"],\"uuid\":\"08391596-f8ad-11ed-a637-da7ad0900002\",\"scope\":[\"test:testcanceladowntimereturnsokresponse1684765756\"]}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -51,17 +51,17 @@
5151
"value": "application/json"
5252
}
5353
],
54-
"headersSize": 635,
54+
"headersSize": 517,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2022-05-12T09:49:53.720Z",
61-
"time": 431
60+
"startedDateTime": "2023-05-22T14:29:16.534Z",
61+
"time": 479
6262
},
6363
{
64-
"_id": "a79d27c9ae18e8b14e4761a492650e35",
64+
"_id": "11c1f6cb05b3638c02cb421aef9788f1",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -78,27 +78,32 @@
7878
"httpVersion": "HTTP/1.1",
7979
"method": "DELETE",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v1/downtime/1944162237"
81+
"url": "https://api.datadoghq.com/api/v1/downtime/2941964683"
8282
},
8383
"response": {
8484
"bodySize": 0,
8585
"content": {
86-
"mimeType": "text/plain",
86+
"mimeType": "text/html; charset=utf-8",
8787
"size": 0
8888
},
8989
"cookies": [],
90-
"headers": [],
91-
"headersSize": 582,
90+
"headers": [
91+
{
92+
"name": "content-type",
93+
"value": "text/html; charset=utf-8"
94+
}
95+
],
96+
"headersSize": 638,
9297
"httpVersion": "HTTP/1.1",
9398
"redirectURL": "",
9499
"status": 204,
95100
"statusText": "No Content"
96101
},
97-
"startedDateTime": "2022-05-12T09:49:54.159Z",
98-
"time": 402
102+
"startedDateTime": "2023-05-22T14:29:17.023Z",
103+
"time": 832
99104
},
100105
{
101-
"_id": "a79d27c9ae18e8b14e4761a492650e35",
106+
"_id": "11c1f6cb05b3638c02cb421aef9788f1",
102107
"_order": 1,
103108
"cache": {},
104109
"request": {
@@ -115,24 +120,29 @@
115120
"httpVersion": "HTTP/1.1",
116121
"method": "DELETE",
117122
"queryString": [],
118-
"url": "https://api.datadoghq.com/api/v1/downtime/1944162237"
123+
"url": "https://api.datadoghq.com/api/v1/downtime/2941964683"
119124
},
120125
"response": {
121126
"bodySize": 0,
122127
"content": {
123-
"mimeType": "text/plain",
128+
"mimeType": "text/html; charset=utf-8",
124129
"size": 0
125130
},
126131
"cookies": [],
127-
"headers": [],
128-
"headersSize": 582,
132+
"headers": [
133+
{
134+
"name": "content-type",
135+
"value": "text/html; charset=utf-8"
136+
}
137+
],
138+
"headersSize": 638,
129139
"httpVersion": "HTTP/1.1",
130140
"redirectURL": "",
131141
"status": 204,
132142
"statusText": "No Content"
133143
},
134-
"startedDateTime": "2022-05-12T09:49:54.567Z",
135-
"time": 430
144+
"startedDateTime": "2023-05-22T14:29:17.868Z",
145+
"time": 904
136146
}
137147
],
138148
"pages": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022-05-12T09:49:55.004Z"
1+
"2023-05-22T14:29:42.993Z"

cassettes/v1/Downtimes_1733580485/Cancel-downtimes-by-scope-returns-OK-response_80845776/recording.har

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "0034590777833721fba60477f8d51005",
11+
"_id": "a1a427081543c43a3b9554684c2d8d65",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 295,
15+
"bodySize": 312,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"message\":\"Test-Cancel_downtimes_by_scope_returns_OK_response-1652348995\",\"recurrence\":{\"period\":1,\"type\":\"weeks\",\"until_date\":1654163395,\"week_days\":[\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\"]},\"scope\":[\"test:testcanceldowntimesbyscopereturnsokresponse1652348995\"],\"start\":1652348995,\"timezone\":\"Etc/UTC\"}"
35+
"text": "{\"end\":1684769382,\"message\":\"Test-Cancel_downtimes_by_scope_returns_OK_response-1684765782\",\"recurrence\":{\"period\":1,\"type\":\"weeks\",\"until_date\":1686580182,\"week_days\":[\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\"]},\"scope\":[\"test:testcanceldowntimesbyscopereturnsokresponse1684765782\"],\"start\":1684765782,\"timezone\":\"Etc/UTC\"}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v1/downtime"
3939
},
4040
"response": {
41-
"bodySize": 623,
41+
"bodySize": 772,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 623,
45-
"text": "{\"recurrence\":{\"until_date\":1654163395,\"until_occurrences\":null,\"week_days\":[\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\"],\"type\":\"weeks\",\"period\":1},\"end\":null,\"monitor_tags\":[\"*\"],\"child_id\":null,\"canceled\":null,\"monitor_id\":null,\"mute_first_recovery_notification\":false,\"created\":1652348995,\"org_id\":321813,\"modified\":1652348995,\"disabled\":false,\"start\":1652348995,\"creator_id\":1445416,\"parent_id\":null,\"timezone\":\"Etc/UTC\",\"active\":true,\"scope\":[\"test:testcanceldowntimesbyscopereturnsokresponse1652348995\"],\"message\":\"Test-Cancel_downtimes_by_scope_returns_OK_response-1652348995\",\"downtime_type\":2,\"id\":1944162243,\"updater_id\":null}"
44+
"size": 772,
45+
"text": "{\"id\":2941965647,\"monitor_id\":null,\"org_id\":321813,\"start\":1684765782,\"end\":1684769382,\"canceled\":null,\"created\":1684765783,\"modified\":1684765783,\"message\":\"Test-Cancel_downtimes_by_scope_returns_OK_response-1684765782\",\"active\":true,\"disabled\":false,\"recurrence\":{\"type\":\"weeks\",\"period\":1,\"week_days\":[\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\"],\"until_occurrences\":null,\"until_date\":1686580182},\"timezone\":\"Etc/UTC\",\"parent_id\":null,\"child_id\":null,\"creator_id\":1445416,\"updater_id\":null,\"downtime_type\":2,\"status\":\"active\",\"monitor_tags\":[\"*\"],\"mute_first_recovery_notification\":false,\"notify_end_types\":[\"expired\"],\"notify_end_states\":[\"alert\",\"no data\",\"warn\"],\"uuid\":\"17fac312-f8ad-11ed-9ae8-da7ad0900002\",\"scope\":[\"test:testcanceldowntimesbyscopereturnsokresponse1684765782\"]}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -51,17 +51,17 @@
5151
"value": "application/json"
5252
}
5353
],
54-
"headersSize": 635,
54+
"headersSize": 517,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2022-05-12T09:49:55.007Z",
61-
"time": 478
60+
"startedDateTime": "2023-05-22T14:29:43.002Z",
61+
"time": 433
6262
},
6363
{
64-
"_id": "16aef51dd3aa3b8fa6e51008da84330b",
64+
"_id": "8cecfe7f5a7a18569efc2bfc039b99b3",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -85,17 +85,17 @@
8585
"postData": {
8686
"mimeType": "application/json",
8787
"params": [],
88-
"text": "{\"scope\":\"test:testcanceldowntimesbyscopereturnsokresponse1652348995\"}"
88+
"text": "{\"scope\":\"test:testcanceldowntimesbyscopereturnsokresponse1684765782\"}"
8989
},
9090
"queryString": [],
9191
"url": "https://api.datadoghq.com/api/v1/downtime/cancel/by_scope"
9292
},
9393
"response": {
94-
"bodySize": 30,
94+
"bodySize": 31,
9595
"content": {
9696
"mimeType": "application/json",
97-
"size": 30,
98-
"text": "{\"cancelled_ids\":[1944162243]}"
97+
"size": 31,
98+
"text": "{\"cancelled_ids\":[2941965647]}\n"
9999
},
100100
"cookies": [],
101101
"headers": [
@@ -104,17 +104,17 @@
104104
"value": "application/json"
105105
}
106106
],
107-
"headersSize": 634,
107+
"headersSize": 516,
108108
"httpVersion": "HTTP/1.1",
109109
"redirectURL": "",
110110
"status": 200,
111111
"statusText": "OK"
112112
},
113-
"startedDateTime": "2022-05-12T09:49:55.490Z",
114-
"time": 425
113+
"startedDateTime": "2023-05-22T14:29:43.441Z",
114+
"time": 343
115115
},
116116
{
117-
"_id": "3ed9cb4d5e9e90e7bdce573cde140a5f",
117+
"_id": "52dc9f5787bea775a672904ce40172f8",
118118
"_order": 0,
119119
"cache": {},
120120
"request": {
@@ -131,24 +131,29 @@
131131
"httpVersion": "HTTP/1.1",
132132
"method": "DELETE",
133133
"queryString": [],
134-
"url": "https://api.datadoghq.com/api/v1/downtime/1944162243"
134+
"url": "https://api.datadoghq.com/api/v1/downtime/2941965647"
135135
},
136136
"response": {
137137
"bodySize": 0,
138138
"content": {
139-
"mimeType": "text/plain",
139+
"mimeType": "text/html; charset=utf-8",
140140
"size": 0
141141
},
142142
"cookies": [],
143-
"headers": [],
144-
"headersSize": 582,
143+
"headers": [
144+
{
145+
"name": "content-type",
146+
"value": "text/html; charset=utf-8"
147+
}
148+
],
149+
"headersSize": 638,
145150
"httpVersion": "HTTP/1.1",
146151
"redirectURL": "",
147152
"status": 204,
148153
"statusText": "No Content"
149154
},
150-
"startedDateTime": "2022-05-12T09:49:55.923Z",
151-
"time": 414
155+
"startedDateTime": "2023-05-22T14:29:43.796Z",
156+
"time": 525
152157
}
153158
],
154159
"pages": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022-05-12T09:49:56.343Z"
1+
"2023-05-22T14:30:10.537Z"

0 commit comments

Comments
 (0)