Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ on:
- reopened
- ready_for_review

env:
DD_DESTINATION_API_KEY: ${{ secrets.DD_DESTINATION_API_KEY }}
DD_DESTINATION_APP_KEY: ${{ secrets.DD_DESTINATION_APP_KEY }}
DD_DESTINATION_API_URL: ${{ secrets.DD_DESTINATION_API_URL }}
DD_SOURCE_API_KEY: ${{ secrets.DD_SOURCE_API_KEY }}
DD_SOURCE_APP_KEY: ${{ secrets.DD_SOURCE_APP_KEY }}
DD_SOURCE_API_URL: ${{ secrets.DD_SOURCE_API_URL }}

jobs:
test:
strategy:
Expand Down
3 changes: 3 additions & 0 deletions datadog_sync/utils/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ async def init_async(self, cmd: Command):
else:
self.logger.warning("DDR verification skipped.")

await self.source_client.send_metric(f"{cmd.value}.start")
await self.destination_client.send_metric(f"{cmd.value}.start")

async def exit_async(self):
await self.source_client._end_session()
await self.destination_client._end_session()
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-11-01T10:45:06.954992-04:00
2024-11-05T09:49:59.545504-05:00
86 changes: 43 additions & 43 deletions tests/integration/cassettes/test_cli/TestCli.test_cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5853,58 +5853,58 @@ interactions:
Content-Type:
- application/json
method: DELETE
uri: https://us5.datadoghq.com/api/v2/powerpacks/de8f1c1e-985f-11ef-809a-da7ad0900005
uri: https://us5.datadoghq.com/api/v1/dashboard/lists/manual/11611
response:
body:
string: ''
string: '{"deleted_dashboard_list_id": 11611}'
headers:
Content-Type:
- text/html; charset=utf-8
- application/json
status:
code: 204
message: No Content
code: 200
message: OK
- request:
body: null
headers:
Content-Type:
- application/json
method: DELETE
uri: https://us5.datadoghq.com/api/v1/dashboard/vbh-2h8-spc
uri: https://us5.datadoghq.com/api/v2/powerpacks/3607a9f2-9b85-11ef-89c3-da7ad0900005
response:
body:
string: '{"deleted_dashboard_id": "vbh-2h8-spc"}'
string: ''
headers:
Content-Type:
- application/json
- text/html; charset=utf-8
status:
code: 200
message: OK
code: 204
message: No Content
- request:
body: null
headers:
Content-Type:
- application/json
method: DELETE
uri: https://us5.datadoghq.com/api/v1/synthetics/variables/3b41cebb-08b6-4e02-923c-7422a5c91d18
uri: https://us5.datadoghq.com/api/v1/synthetics/private-locations/pl:test-32346a2499272ad916cee82b9fe9c56e
response:
body:
string: ''
headers:
Content-Type:
- text/html; charset=utf-8
status:
code: 200
message: OK
code: 204
message: No Content
- request:
body: null
headers:
Content-Type:
- application/json
method: DELETE
uri: https://us5.datadoghq.com/api/v1/monitor/1156635?force=true
uri: https://us5.datadoghq.com/api/v1/monitor/1159409?force=true
response:
body:
string: '{"deleted_monitor_id": 1156635}'
string: '{"deleted_monitor_id": 1159409}'
headers:
Content-Type:
- application/json
Expand All @@ -5917,26 +5917,26 @@ interactions:
Content-Type:
- application/json
method: DELETE
uri: https://us5.datadoghq.com/api/v1/dashboard/t9m-hb9-z33
uri: https://us5.datadoghq.com/api/v1/slo/844ffe92895c5c3b87125b72d2c9abf8?force=true
response:
body:
string: '{"deleted_dashboard_id": "t9m-hb9-z33"}'
string: '{"data": ["844ffe92895c5c3b87125b72d2c9abf8"], "error": null}'
headers:
Content-Type:
- application/json
status:
code: 200
message: OK
- request:
body: '{"public_ids": ["is8-8rq-4jx"]}'
body: null
headers:
Content-Type:
- application/json
method: POST
uri: https://us5.datadoghq.com/api/v1/synthetics/tests/delete
method: DELETE
uri: https://us5.datadoghq.com/api/v1/monitor/1159411?force=true
response:
body:
string: '{"deleted_tests": [{"public_id": "is8-8rq-4jx", "deleted_at": "2024-11-01T14:45:08.641077+00:00"}]}'
string: '{"deleted_monitor_id": 1159411}'
headers:
Content-Type:
- application/json
Expand All @@ -5949,10 +5949,10 @@ interactions:
Content-Type:
- application/json
method: DELETE
uri: https://us5.datadoghq.com/api/v1/monitor/1156634?force=true
uri: https://us5.datadoghq.com/api/v1/monitor/1159414?force=true
response:
body:
string: '{"deleted_monitor_id": 1156634}'
string: '{"deleted_monitor_id": 1159414}'
headers:
Content-Type:
- application/json
Expand All @@ -5965,10 +5965,10 @@ interactions:
Content-Type:
- application/json
method: DELETE
uri: https://us5.datadoghq.com/api/v1/monitor/1156636?force=true
uri: https://us5.datadoghq.com/api/v1/monitor/1159413?force=true
response:
body:
string: '{"deleted_monitor_id": 1156636}'
string: '{"deleted_monitor_id": 1159413}'
headers:
Content-Type:
- application/json
Expand All @@ -5981,13 +5981,13 @@ interactions:
Content-Type:
- application/json
method: DELETE
uri: https://us5.datadoghq.com/api/v1/dashboard/lists/manual/11599
uri: https://us5.datadoghq.com/api/v1/synthetics/variables/32bdaa6a-8405-434e-b80a-d8d3c6be375d
response:
body:
string: '{"deleted_dashboard_list_id": 11599}'
string: ''
headers:
Content-Type:
- application/json
- text/html; charset=utf-8
status:
code: 200
message: OK
Expand All @@ -5997,10 +5997,10 @@ interactions:
Content-Type:
- application/json
method: DELETE
uri: https://us5.datadoghq.com/api/v1/slo/24397530c65e56bbbb0e428ed970d344?force=true
uri: https://us5.datadoghq.com/api/v1/dashboard/5h8-z9u-6fm
response:
body:
string: '{"data": ["24397530c65e56bbbb0e428ed970d344"], "error": null}'
string: '{"deleted_dashboard_id": "5h8-z9u-6fm"}'
headers:
Content-Type:
- application/json
Expand All @@ -6013,42 +6013,42 @@ interactions:
Content-Type:
- application/json
method: DELETE
uri: https://us5.datadoghq.com/api/v1/monitor/1156637?force=true
uri: https://us5.datadoghq.com/api/v1/monitor/1159410?force=true
response:
body:
string: '{"deleted_monitor_id": 1156637}'
string: '{"deleted_monitor_id": 1159410}'
headers:
Content-Type:
- application/json
status:
code: 200
message: OK
- request:
body: null
body: '{"public_ids": ["jks-4vz-8d5"]}'
headers:
Content-Type:
- application/json
method: DELETE
uri: https://us5.datadoghq.com/api/v1/synthetics/private-locations/pl:test-586d9cb041bac990f6028a617891328a
method: POST
uri: https://us5.datadoghq.com/api/v1/synthetics/tests/delete
response:
body:
string: ''
string: '{"deleted_tests": [{"public_id": "jks-4vz-8d5", "deleted_at": "2024-11-05T14:50:01.360305+00:00"}]}'
headers:
Content-Type:
- text/html; charset=utf-8
- application/json
status:
code: 204
message: No Content
code: 200
message: OK
- request:
body: null
headers:
Content-Type:
- application/json
method: DELETE
uri: https://us5.datadoghq.com/api/v1/monitor/1156632?force=true
uri: https://us5.datadoghq.com/api/v1/dashboard/7ah-wcc-w7f
response:
body:
string: '{"deleted_monitor_id": 1156632}'
string: '{"deleted_dashboard_id": "7ah-wcc-w7f"}'
headers:
Content-Type:
- application/json
Expand All @@ -6061,7 +6061,7 @@ interactions:
Content-Type:
- application/json
method: DELETE
uri: https://us5.datadoghq.com/api/v2/downtime/331829da-9c9c-4d09-9aa0-4c77af34fa15
uri: https://us5.datadoghq.com/api/v2/downtime/bc96acb1-91e3-48a5-9576-afefa95854db
response:
body:
string: ''
Expand All @@ -6077,7 +6077,7 @@ interactions:
Content-Type:
- application/json
method: DELETE
uri: https://us5.datadoghq.com/api/v2/downtime/3a966c86-8e00-4ce0-a14f-06ea895a0f13
uri: https://us5.datadoghq.com/api/v2/downtime/3662fdc6-ade1-44e1-9db5-46307b3c521a
response:
body:
string: ''
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-11-01T10:44:55.414599-04:00
2024-11-05T09:49:45.615892-05:00
Loading