Skip to content

Commit

Permalink
Trigger with /ci option
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernard Szabo committed Dec 11, 2024
1 parent cda8bb7 commit 1a2bf83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tubular/scripts/dd_synthetic_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
class DatadogClient:
''' Invokes datadog API to run and monitor synthetic tests '''

DATADOG_SYNTHETIC_TESTS_API_URL = "https://api.datadoghq.com/api/v1/synthetics/tests"
DATADOG_SYNTHETIC_TESTS_API_URL = "https://api.datadoghq.com/api/v1/synthetics/tests"
MAX_ALLOWABLE_TIME_SECS = 300 # 5 minutes

Expand All @@ -31,7 +32,7 @@ def trigger_synthetic_tests(self, test_requests: [dict]) -> str:
if self.test_run_id:
raise Exception("Datadog error: tests already triggered")

url = f"{self.DATADOG_SYNTHETIC_TESTS_API_URL}/trigger"
url = f"{self.DATADOG_SYNTHETIC_TESTS_API_URL}/trigger/ci"
headers = {
"Content-Type": "application/json",
"DD-API-KEY": self.api_key,
Expand Down

0 comments on commit 1a2bf83

Please sign in to comment.