Skip to content

Commit 6e5c7a8

Browse files
michael-richeyskarimo
authored andcommitted
Run the tests
1 parent f10e23e commit 6e5c7a8

10 files changed

+59
-203
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-11-05T09:46:55.245920-05:00
1+
2025-01-23T14:54:54.319396-05:00

tests/integration/resources/cassettes/test_downtime_schedules/TestDowntimeSchedulesResources.test_no_resource_diffs.yaml

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -37,40 +37,4 @@ interactions:
3737
status:
3838
code: 200
3939
message: OK
40-
- request:
41-
body: '{"series": [{"metadata": {"origin": {"origin_product": 24}}, "metric":
42-
"datadog.org-sync.diffs.start", "type": 0, "points": [{"timestamp": 1730818015,
43-
"value": 1}], "tags": null}]}'
44-
headers:
45-
Content-Type:
46-
- application/json
47-
method: POST
48-
uri: https://api.datadoghq.eu/api/v2/series
49-
response:
50-
body:
51-
string: '{"errors": []}'
52-
headers:
53-
Content-Type:
54-
- application/json
55-
status:
56-
code: 202
57-
message: Accepted
58-
- request:
59-
body: '{"series": [{"metadata": {"origin": {"origin_product": 24}}, "metric":
60-
"datadog.org-sync.diffs.start", "type": 0, "points": [{"timestamp": 1730818015,
61-
"value": 1}], "tags": null}]}'
62-
headers:
63-
Content-Type:
64-
- application/json
65-
method: POST
66-
uri: https://us5.datadoghq.com/api/v2/series
67-
response:
68-
body:
69-
string: '{"errors": []}'
70-
headers:
71-
Content-Type:
72-
- application/json
73-
status:
74-
code: 202
75-
message: Accepted
7640
version: 1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-11-05T09:46:55.966114-05:00
1+
2025-01-23T14:54:54.783708-05:00

tests/integration/resources/cassettes/test_downtime_schedules/TestDowntimeSchedulesResources.test_resource_cleanup.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ interactions:
3939
message: OK
4040
- request:
4141
body: '{"series": [{"metadata": {"origin": {"origin_product": 24}}, "metric":
42-
"datadog.org-sync.sync.start", "type": 0, "points": [{"timestamp": 1730818015,
42+
"datadog.org-sync.sync.start", "type": 0, "points": [{"timestamp": 1737662094,
4343
"value": 1}], "tags": null}]}'
4444
headers:
4545
Content-Type:
4646
- application/json
4747
method: POST
48-
uri: https://api.datadoghq.eu/api/v2/series
48+
uri: https://us5.datadoghq.com/api/v2/series
4949
response:
5050
body:
5151
string: '{"errors": []}'
@@ -57,13 +57,13 @@ interactions:
5757
message: Accepted
5858
- request:
5959
body: '{"series": [{"metadata": {"origin": {"origin_product": 24}}, "metric":
60-
"datadog.org-sync.sync.start", "type": 0, "points": [{"timestamp": 1730818015,
60+
"datadog.org-sync.sync.start", "type": 0, "points": [{"timestamp": 1737662094,
6161
"value": 1}], "tags": null}]}'
6262
headers:
6363
Content-Type:
6464
- application/json
6565
method: POST
66-
uri: https://us5.datadoghq.com/api/v2/series
66+
uri: https://api.datadoghq.eu/api/v2/series
6767
response:
6868
body:
6969
string: '{"errors": []}'
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-11-05T09:46:50.076675-05:00
1+
2025-01-23T14:54:49.463985-05:00

tests/integration/resources/cassettes/test_downtime_schedules/TestDowntimeSchedulesResources.test_resource_import.yaml

Lines changed: 28 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ interactions:
3939
message: OK
4040
- request:
4141
body: '{"series": [{"metadata": {"origin": {"origin_product": 24}}, "metric":
42-
"datadog.org-sync.import.start", "type": 0, "points": [{"timestamp": 1730818010,
42+
"datadog.org-sync.import.start", "type": 0, "points": [{"timestamp": 1737662089,
4343
"value": 1}], "tags": null}]}'
4444
headers:
4545
Content-Type:
@@ -57,7 +57,7 @@ interactions:
5757
message: Accepted
5858
- request:
5959
body: '{"series": [{"metadata": {"origin": {"origin_product": 24}}, "metric":
60-
"datadog.org-sync.import.start", "type": 0, "points": [{"timestamp": 1730818010,
60+
"datadog.org-sync.import.start", "type": 0, "points": [{"timestamp": 1737662089,
6161
"value": 1}], "tags": null}]}'
6262
headers:
6363
Content-Type:
@@ -79,24 +79,24 @@ interactions:
7979
Content-Type:
8080
- application/json
8181
method: GET
82-
uri: https://api.datadoghq.eu/api/v2/downtime
82+
uri: https://api.datadoghq.eu/api/v2/downtime?page%5Blimit%5D=100&page%5Boffset%5D=0
8383
response:
8484
body:
85-
string: '{"data": [{"type": "downtime", "attributes": {"mute_first_recovery_notification":
86-
false, "notify_end_types": ["canceled", "expired"], "status": "active", "monitor_identifier":
87-
{"monitor_id": 20125252}, "schedule": {"start": "2024-10-28T19:03:20.783000+00:00",
88-
"end": null}, "canceled": null, "created": "2024-10-28T19:03:37.269181+00:00",
89-
"notify_end_states": ["no data", "warn", "alert"], "modified": "2024-10-28T19:03:37.269181+00:00",
90-
"message": "", "display_timezone": "America/New_York", "scope": "*"}, "id":
91-
"84867542-29d9-4c77-b9f8-117e19347a27"}, {"type": "downtime", "attributes":
92-
{"mute_first_recovery_notification": false, "notify_end_types": ["canceled",
93-
"expired"], "status": "scheduled", "monitor_identifier": {"monitor_id": 20046756},
94-
"schedule": {"current_downtime": {"start": "2024-11-05T19:46:00+00:00", "end":
95-
"2024-11-05T19:56:00+00:00"}, "recurrences": [{"rrule": "FREQ=DAILY;INTERVAL=1",
96-
"start": "2024-10-28T14:46:00", "duration": "10m"}], "timezone": "America/New_York"},
97-
"canceled": null, "created": "2024-10-28T18:47:00.157356+00:00", "notify_end_states":
98-
["no data", "warn", "alert"], "modified": "2024-11-04T19:56:04.778566+00:00",
99-
"message": "test", "display_timezone": "America/New_York", "scope": "agent_type:native"},
85+
string: '{"data": [{"type": "downtime", "attributes": {"scope": "*", "modified":
86+
"2024-10-28T19:03:37.269181+00:00", "schedule": {"end": null, "start": "2024-10-28T19:03:20.783000+00:00"},
87+
"notify_end_states": ["no data", "alert", "warn"], "monitor_identifier": {"monitor_id":
88+
20125252}, "notify_end_types": ["expired", "canceled"], "message": "", "created":
89+
"2024-10-28T19:03:37.269181+00:00", "canceled": null, "display_timezone":
90+
"America/New_York", "mute_first_recovery_notification": false, "status": "active"},
91+
"id": "84867542-29d9-4c77-b9f8-117e19347a27"}, {"type": "downtime", "attributes":
92+
{"scope": "agent_type:native", "modified": "2025-01-23T19:46:06.990749+00:00",
93+
"schedule": {"current_downtime": {"end": "2025-01-23T19:56:00+00:00", "start":
94+
"2025-01-23T19:46:00+00:00"}, "timezone": "America/New_York", "recurrences":
95+
[{"rrule": "FREQ=DAILY;INTERVAL=1", "duration": "10m", "start": "2024-10-28T14:46:00"}]},
96+
"notify_end_states": ["no data", "alert", "warn"], "monitor_identifier": {"monitor_id":
97+
20046756}, "notify_end_types": ["expired", "canceled"], "message": "test",
98+
"created": "2024-10-28T18:47:00.157356+00:00", "canceled": null, "display_timezone":
99+
"America/New_York", "mute_first_recovery_notification": false, "status": "active"},
100100
"id": "e7c79b6e-4c04-4540-ad20-0d1f71d79061"}], "meta": {"page": {"total_filtered_count":
101101
2}}}'
102102
headers:
@@ -107,7 +107,7 @@ interactions:
107107
message: OK
108108
- request:
109109
body: '{"series": [{"metadata": {"origin": {"origin_product": 24}}, "metric":
110-
"datadog.org-sync.action", "type": 0, "points": [{"timestamp": 1730818010, "value":
110+
"datadog.org-sync.action", "type": 0, "points": [{"timestamp": 1737662089, "value":
111111
1}], "tags": ["id:84867542-29d9-4c77-b9f8-117e19347a27", "action_type:import",
112112
"status:success", "resource_type:downtime_schedules", "client_type:destination"]}]}'
113113
headers:
@@ -126,14 +126,14 @@ interactions:
126126
message: Accepted
127127
- request:
128128
body: '{"series": [{"metadata": {"origin": {"origin_product": 24}}, "metric":
129-
"datadog.org-sync.action", "type": 0, "points": [{"timestamp": 1730818010, "value":
130-
1}], "tags": ["id:e7c79b6e-4c04-4540-ad20-0d1f71d79061", "action_type:import",
131-
"status:success", "resource_type:downtime_schedules", "client_type:destination"]}]}'
129+
"datadog.org-sync.action", "type": 0, "points": [{"timestamp": 1737662089, "value":
130+
1}], "tags": ["id:84867542-29d9-4c77-b9f8-117e19347a27", "action_type:import",
131+
"status:success", "resource_type:downtime_schedules", "client_type:source"]}]}'
132132
headers:
133133
Content-Type:
134134
- application/json
135135
method: POST
136-
uri: https://us5.datadoghq.com/api/v2/series
136+
uri: https://api.datadoghq.eu/api/v2/series
137137
response:
138138
body:
139139
string: '{"errors": []}'
@@ -145,14 +145,14 @@ interactions:
145145
message: Accepted
146146
- request:
147147
body: '{"series": [{"metadata": {"origin": {"origin_product": 24}}, "metric":
148-
"datadog.org-sync.action", "type": 0, "points": [{"timestamp": 1730818010, "value":
149-
1}], "tags": ["id:84867542-29d9-4c77-b9f8-117e19347a27", "action_type:import",
150-
"status:success", "resource_type:downtime_schedules", "client_type:source"]}]}'
148+
"datadog.org-sync.action", "type": 0, "points": [{"timestamp": 1737662089, "value":
149+
1}], "tags": ["id:e7c79b6e-4c04-4540-ad20-0d1f71d79061", "action_type:import",
150+
"status:success", "resource_type:downtime_schedules", "client_type:destination"]}]}'
151151
headers:
152152
Content-Type:
153153
- application/json
154154
method: POST
155-
uri: https://api.datadoghq.eu/api/v2/series
155+
uri: https://us5.datadoghq.com/api/v2/series
156156
response:
157157
body:
158158
string: '{"errors": []}'
@@ -164,7 +164,7 @@ interactions:
164164
message: Accepted
165165
- request:
166166
body: '{"series": [{"metadata": {"origin": {"origin_product": 24}}, "metric":
167-
"datadog.org-sync.action", "type": 0, "points": [{"timestamp": 1730818010, "value":
167+
"datadog.org-sync.action", "type": 0, "points": [{"timestamp": 1737662089, "value":
168168
1}], "tags": ["id:e7c79b6e-4c04-4540-ad20-0d1f71d79061", "action_type:import",
169169
"status:success", "resource_type:downtime_schedules", "client_type:source"]}]}'
170170
headers:
@@ -219,40 +219,4 @@ interactions:
219219
status:
220220
code: 200
221221
message: OK
222-
- request:
223-
body: '{"series": [{"metadata": {"origin": {"origin_product": 24}}, "metric":
224-
"datadog.org-sync.diffs.start", "type": 0, "points": [{"timestamp": 1730818010,
225-
"value": 1}], "tags": null}]}'
226-
headers:
227-
Content-Type:
228-
- application/json
229-
method: POST
230-
uri: https://api.datadoghq.eu/api/v2/series
231-
response:
232-
body:
233-
string: '{"errors": []}'
234-
headers:
235-
Content-Type:
236-
- application/json
237-
status:
238-
code: 202
239-
message: Accepted
240-
- request:
241-
body: '{"series": [{"metadata": {"origin": {"origin_product": 24}}, "metric":
242-
"datadog.org-sync.diffs.start", "type": 0, "points": [{"timestamp": 1730818010,
243-
"value": 1}], "tags": null}]}'
244-
headers:
245-
Content-Type:
246-
- application/json
247-
method: POST
248-
uri: https://us5.datadoghq.com/api/v2/series
249-
response:
250-
body:
251-
string: '{"errors": []}'
252-
headers:
253-
Content-Type:
254-
- application/json
255-
status:
256-
code: 202
257-
message: Accepted
258222
version: 1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-11-05T09:46:51.876394-05:00
1+
2025-01-23T14:54:51.350875-05:00

tests/integration/resources/cassettes/test_downtime_schedules/TestDowntimeSchedulesResources.test_resource_sync.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ interactions:
3939
message: OK
4040
- request:
4141
body: '{"series": [{"metadata": {"origin": {"origin_product": 24}}, "metric":
42-
"datadog.org-sync.sync.start", "type": 0, "points": [{"timestamp": 1730818011,
42+
"datadog.org-sync.sync.start", "type": 0, "points": [{"timestamp": 1737662091,
4343
"value": 1}], "tags": null}]}'
4444
headers:
4545
Content-Type:
4646
- application/json
4747
method: POST
48-
uri: https://api.datadoghq.eu/api/v2/series
48+
uri: https://us5.datadoghq.com/api/v2/series
4949
response:
5050
body:
5151
string: '{"errors": []}'
@@ -57,13 +57,13 @@ interactions:
5757
message: Accepted
5858
- request:
5959
body: '{"series": [{"metadata": {"origin": {"origin_product": 24}}, "metric":
60-
"datadog.org-sync.sync.start", "type": 0, "points": [{"timestamp": 1730818011,
60+
"datadog.org-sync.sync.start", "type": 0, "points": [{"timestamp": 1737662091,
6161
"value": 1}], "tags": null}]}'
6262
headers:
6363
Content-Type:
6464
- application/json
6565
method: POST
66-
uri: https://us5.datadoghq.com/api/v2/series
66+
uri: https://api.datadoghq.eu/api/v2/series
6767
response:
6868
body:
6969
string: '{"errors": []}'
@@ -75,7 +75,7 @@ interactions:
7575
message: Accepted
7676
- request:
7777
body: '{"series": [{"metadata": {"origin": {"origin_product": 24}}, "metric":
78-
"datadog.org-sync.action", "type": 0, "points": [{"timestamp": 1730818011, "value":
78+
"datadog.org-sync.action", "type": 0, "points": [{"timestamp": 1737662091, "value":
7979
1}], "tags": ["reason:connection_error", "id:84867542-29d9-4c77-b9f8-117e19347a27",
8080
"action_type:sync", "status:skipped", "resource_type:downtime_schedules", "client_type:destination"]}]}'
8181
headers:
@@ -94,7 +94,7 @@ interactions:
9494
message: Accepted
9595
- request:
9696
body: '{"series": [{"metadata": {"origin": {"origin_product": 24}}, "metric":
97-
"datadog.org-sync.action", "type": 0, "points": [{"timestamp": 1730818011, "value":
97+
"datadog.org-sync.action", "type": 0, "points": [{"timestamp": 1737662091, "value":
9898
1}], "tags": ["reason:connection_error", "id:e7c79b6e-4c04-4540-ad20-0d1f71d79061",
9999
"action_type:sync", "status:skipped", "resource_type:downtime_schedules", "client_type:destination"]}]}'
100100
headers:
@@ -113,7 +113,7 @@ interactions:
113113
message: Accepted
114114
- request:
115115
body: '{"series": [{"metadata": {"origin": {"origin_product": 24}}, "metric":
116-
"datadog.org-sync.action", "type": 0, "points": [{"timestamp": 1730818011, "value":
116+
"datadog.org-sync.action", "type": 0, "points": [{"timestamp": 1737662091, "value":
117117
1}], "tags": ["reason:connection_error", "id:84867542-29d9-4c77-b9f8-117e19347a27",
118118
"action_type:sync", "status:skipped", "resource_type:downtime_schedules", "client_type:source"]}]}'
119119
headers:
@@ -132,7 +132,7 @@ interactions:
132132
message: Accepted
133133
- request:
134134
body: '{"series": [{"metadata": {"origin": {"origin_product": 24}}, "metric":
135-
"datadog.org-sync.action", "type": 0, "points": [{"timestamp": 1730818011, "value":
135+
"datadog.org-sync.action", "type": 0, "points": [{"timestamp": 1737662091, "value":
136136
1}], "tags": ["reason:connection_error", "id:e7c79b6e-4c04-4540-ad20-0d1f71d79061",
137137
"action_type:sync", "status:skipped", "resource_type:downtime_schedules", "client_type:source"]}]}'
138138
headers:
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-11-05T09:46:52.891137-05:00
1+
2025-01-23T14:54:52.398624-05:00

0 commit comments

Comments
 (0)