From 1a2bf83374fc33e6be5124aa32654865e56d7248 Mon Sep 17 00:00:00 2001 From: Bernard Szabo Date: Wed, 11 Dec 2024 12:54:25 -0500 Subject: [PATCH] Trigger with /ci option --- tubular/scripts/dd_synthetic_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tubular/scripts/dd_synthetic_tests.py b/tubular/scripts/dd_synthetic_tests.py index 4712dd7c..1cfdd2dd 100644 --- a/tubular/scripts/dd_synthetic_tests.py +++ b/tubular/scripts/dd_synthetic_tests.py @@ -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 @@ -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,