From 0711223ab3c0e33a844c320bc47c10ef2c706962 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 20 Feb 2026 13:37:35 +0000 Subject: [PATCH] Regenerate client from commit a9f0899 of spec repo --- .generator/schemas/v1/openapi.yaml | 8 +- .generator/schemas/v2/openapi.yaml | 20 +-- examples/v1/synthetics/GetMobileTest.py | 8 +- .../v1/synthetics/GetMobileTest_212471226.py | 19 +++ examples/v1/synthetics/UpdateMobileTest.py | 148 ++++++++++++++++-- .../synthetics/UpdateMobileTest_477498912.py | 50 ++++++ .../synthetics/CreateSyntheticsNetworkTest.py | 2 +- .../v2/synthetics/CreateSyntheticsSuite.py | 2 +- .../v2/synthetics/DeleteSyntheticsSuites.py | 2 +- .../v2/synthetics/DeleteSyntheticsTests.py | 2 +- examples/v2/synthetics/EditSyntheticsSuite.py | 2 +- .../v2/synthetics/GetSyntheticsNetworkTest.py | 4 +- examples/v2/synthetics/GetSyntheticsSuite.py | 2 +- examples/v2/synthetics/SearchSuites.py | 2 +- .../v2/synthetics/SearchSuites_2539131170.py | 13 ++ .../synthetics/UpdateSyntheticsNetworkTest.py | 2 +- .../v1/api/synthetics_api.py | 8 +- .../v2/api/synthetics_api.py | 20 +-- tests/v1/features/synthetics.feature | 61 +++++--- ...work_path_test_returns_ok_response.frozen} | 0 ...etwork_path_test_returns_ok_response.yaml} | 0 ...te_a_test_suite_returns_ok_response.frozen | 1 + ...ate_a_test_suite_returns_ok_response.yaml} | 13 +- ...twork_path_test_returns_ok_response.frozen | 1 + ...network_path_test_returns_ok_response.yaml | 21 +++ ...concurrency_cap_returns_ok_response.frozen | 2 +- ...concurrency_cap_returns_ok_response.frozen | 2 +- ...nthetics_suites_returns_ok_response.frozen | 2 +- ...synthetics_suites_returns_ok_response.yaml | 134 +++++++++------- ...te_a_test_suite_returns_ok_response.frozen | 1 - ...twork_path_test_returns_ok_response.frozen | 1 - ...network_path_test_returns_ok_response.yaml | 21 --- tests/v2/features/synthetics.feature | 140 +++++++++-------- 33 files changed, 470 insertions(+), 244 deletions(-) create mode 100644 examples/v1/synthetics/GetMobileTest_212471226.py create mode 100644 examples/v1/synthetics/UpdateMobileTest_477498912.py create mode 100644 examples/v2/synthetics/SearchSuites_2539131170.py rename tests/v2/cassettes/test_scenarios/{test_synthetics_create_a_network_path_test_returns_ok_response.frozen => test_create_a_network_path_test_returns_ok_response.frozen} (100%) rename tests/v2/cassettes/test_scenarios/{test_synthetics_create_a_network_path_test_returns_ok_response.yaml => test_create_a_network_path_test_returns_ok_response.yaml} (100%) create mode 100644 tests/v2/cassettes/test_scenarios/test_create_a_test_suite_returns_ok_response.frozen rename tests/v2/cassettes/test_scenarios/{test_synthetics_create_a_test_suite_returns_ok_response.yaml => test_create_a_test_suite_returns_ok_response.yaml} (50%) create mode 100644 tests/v2/cassettes/test_scenarios/test_get_a_network_path_test_returns_ok_response.frozen create mode 100644 tests/v2/cassettes/test_scenarios/test_get_a_network_path_test_returns_ok_response.yaml delete mode 100644 tests/v2/cassettes/test_scenarios/test_synthetics_create_a_test_suite_returns_ok_response.frozen delete mode 100644 tests/v2/cassettes/test_scenarios/test_synthetics_get_a_network_path_test_returns_ok_response.frozen delete mode 100644 tests/v2/cassettes/test_scenarios/test_synthetics_get_a_network_path_test_returns_ok_response.yaml diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index ac0bc1b08e..0e64921915 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -35525,7 +35525,7 @@ paths: get: description: 'Get the detailed configuration associated with - a Synthetic Mobile test.' + a Synthetic mobile test.' operationId: GetMobileTest parameters: - description: The public ID of the test to get details from. @@ -35562,7 +35562,7 @@ paths: appKeyAuth: [] - AuthZ: - synthetics_read - summary: Get a Mobile test + summary: Get a mobile test tags: - Synthetics x-permission: @@ -35570,7 +35570,7 @@ paths: permissions: - synthetics_read put: - description: Edit the configuration of a Synthetic Mobile test. + description: Edit the configuration of a Synthetic mobile test. operationId: UpdateMobileTest parameters: - description: The public ID of the test to get details from. @@ -35624,7 +35624,7 @@ paths: appKeyAuth: [] - AuthZ: - synthetics_write - summary: Edit a Mobile test + summary: Edit a mobile test tags: - Synthetics x-codegen-request-body-name: body diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 707fe9d7de..c35a438311 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -101907,7 +101907,7 @@ paths: appKeyAuth: [] - AuthZ: - synthetics_write - summary: 'Synthetics: Create a test suite' + summary: Create a test suite tags: - Synthetics x-permission: @@ -101944,7 +101944,7 @@ paths: appKeyAuth: [] - AuthZ: - synthetics_write - summary: 'Synthetics: Bulk delete suites' + summary: Bulk delete suites tags: - Synthetics x-permission: @@ -101953,7 +101953,7 @@ paths: - synthetics_write /api/v2/synthetics/suites/search: get: - description: Search for Synthetics suites. + description: Search for test suites. operationId: SearchSuites parameters: - description: The search query. @@ -102012,7 +102012,7 @@ paths: appKeyAuth: [] - AuthZ: - synthetics_read - summary: Search Synthetics suites + summary: Search test suites tags: - Synthetics x-permission: @@ -102049,7 +102049,7 @@ paths: appKeyAuth: [] - AuthZ: - synthetics_read - summary: 'Synthetics: Get a suite' + summary: Get a suite tags: - Synthetics x-permission: @@ -102092,7 +102092,7 @@ paths: appKeyAuth: [] - AuthZ: - synthetics_write - summary: 'Synthetics: Edit a test suite' + summary: Edit a test suite tags: - Synthetics x-permission: @@ -102134,7 +102134,7 @@ paths: appKeyAuth: [] - AuthZ: - synthetics_write - summary: 'Synthetics: Bulk delete tests' + summary: Bulk delete tests tags: - Synthetics x-permission: @@ -102170,7 +102170,7 @@ paths: appKeyAuth: [] - AuthZ: - synthetics_write - summary: 'Synthetics: Create a Network Path test' + summary: Create a Network Path test tags: - Synthetics x-permission: @@ -102214,7 +102214,7 @@ paths: appKeyAuth: [] - AuthZ: - synthetics_read - summary: 'Synthetics: Get a Network Path test' + summary: Get a Network Path test tags: - Synthetics x-permission: @@ -102263,7 +102263,7 @@ paths: appKeyAuth: [] - AuthZ: - synthetics_write - summary: 'Synthetics: Edit a Network Path test' + summary: Edit a Network Path test tags: - Synthetics x-permission: diff --git a/examples/v1/synthetics/GetMobileTest.py b/examples/v1/synthetics/GetMobileTest.py index a335768076..bafa503276 100644 --- a/examples/v1/synthetics/GetMobileTest.py +++ b/examples/v1/synthetics/GetMobileTest.py @@ -1,19 +1,15 @@ """ -Get a Mobile test returns "OK" response +Get a mobile test returns "OK" response """ -from os import environ from datadog_api_client import ApiClient, Configuration from datadog_api_client.v1.api.synthetics_api import SyntheticsApi -# there is a valid "synthetics_mobile_test" in the system -SYNTHETICS_MOBILE_TEST_PUBLIC_ID = environ["SYNTHETICS_MOBILE_TEST_PUBLIC_ID"] - configuration = Configuration() with ApiClient(configuration) as api_client: api_instance = SyntheticsApi(api_client) response = api_instance.get_mobile_test( - public_id=SYNTHETICS_MOBILE_TEST_PUBLIC_ID, + public_id="public_id", ) print(response) diff --git a/examples/v1/synthetics/GetMobileTest_212471226.py b/examples/v1/synthetics/GetMobileTest_212471226.py new file mode 100644 index 0000000000..a335768076 --- /dev/null +++ b/examples/v1/synthetics/GetMobileTest_212471226.py @@ -0,0 +1,19 @@ +""" +Get a Mobile test returns "OK" response +""" + +from os import environ +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v1.api.synthetics_api import SyntheticsApi + +# there is a valid "synthetics_mobile_test" in the system +SYNTHETICS_MOBILE_TEST_PUBLIC_ID = environ["SYNTHETICS_MOBILE_TEST_PUBLIC_ID"] + +configuration = Configuration() +with ApiClient(configuration) as api_client: + api_instance = SyntheticsApi(api_client) + response = api_instance.get_mobile_test( + public_id=SYNTHETICS_MOBILE_TEST_PUBLIC_ID, + ) + + print(response) diff --git a/examples/v1/synthetics/UpdateMobileTest.py b/examples/v1/synthetics/UpdateMobileTest.py index c327736f82..fb882fdbbb 100644 --- a/examples/v1/synthetics/UpdateMobileTest.py +++ b/examples/v1/synthetics/UpdateMobileTest.py @@ -1,10 +1,36 @@ """ -Edit a Mobile test returns "OK" response +Edit a mobile test returns "OK" response """ -from os import environ from datadog_api_client import ApiClient, Configuration from datadog_api_client.v1.api.synthetics_api import SyntheticsApi +from datadog_api_client.v1.model.synthetics_check_type import SyntheticsCheckType +from datadog_api_client.v1.model.synthetics_config_variable import SyntheticsConfigVariable +from datadog_api_client.v1.model.synthetics_config_variable_type import SyntheticsConfigVariableType +from datadog_api_client.v1.model.synthetics_mobile_step import SyntheticsMobileStep +from datadog_api_client.v1.model.synthetics_mobile_step_params import SyntheticsMobileStepParams +from datadog_api_client.v1.model.synthetics_mobile_step_params_direction import SyntheticsMobileStepParamsDirection +from datadog_api_client.v1.model.synthetics_mobile_step_params_element import SyntheticsMobileStepParamsElement +from datadog_api_client.v1.model.synthetics_mobile_step_params_element_context_type import ( + SyntheticsMobileStepParamsElementContextType, +) +from datadog_api_client.v1.model.synthetics_mobile_step_params_element_relative_position import ( + SyntheticsMobileStepParamsElementRelativePosition, +) +from datadog_api_client.v1.model.synthetics_mobile_step_params_element_user_locator import ( + SyntheticsMobileStepParamsElementUserLocator, +) +from datadog_api_client.v1.model.synthetics_mobile_step_params_element_user_locator_values_items import ( + SyntheticsMobileStepParamsElementUserLocatorValuesItems, +) +from datadog_api_client.v1.model.synthetics_mobile_step_params_element_user_locator_values_items_type import ( + SyntheticsMobileStepParamsElementUserLocatorValuesItemsType, +) +from datadog_api_client.v1.model.synthetics_mobile_step_params_positions_items import ( + SyntheticsMobileStepParamsPositionsItems, +) +from datadog_api_client.v1.model.synthetics_mobile_step_params_variable import SyntheticsMobileStepParamsVariable +from datadog_api_client.v1.model.synthetics_mobile_step_type import SyntheticsMobileStepType from datadog_api_client.v1.model.synthetics_mobile_test import SyntheticsMobileTest from datadog_api_client.v1.model.synthetics_mobile_test_config import SyntheticsMobileTestConfig from datadog_api_client.v1.model.synthetics_mobile_test_options import SyntheticsMobileTestOptions @@ -15,36 +41,124 @@ from datadog_api_client.v1.model.synthetics_mobile_tests_mobile_application_reference_type import ( SyntheticsMobileTestsMobileApplicationReferenceType, ) +from datadog_api_client.v1.model.synthetics_restricted_roles import SyntheticsRestrictedRoles +from datadog_api_client.v1.model.synthetics_test_ci_options import SyntheticsTestCiOptions +from datadog_api_client.v1.model.synthetics_test_execution_rule import SyntheticsTestExecutionRule +from datadog_api_client.v1.model.synthetics_test_options_monitor_options import SyntheticsTestOptionsMonitorOptions +from datadog_api_client.v1.model.synthetics_test_options_monitor_options_notification_preset_name import ( + SyntheticsTestOptionsMonitorOptionsNotificationPresetName, +) +from datadog_api_client.v1.model.synthetics_test_options_retry import SyntheticsTestOptionsRetry +from datadog_api_client.v1.model.synthetics_test_options_scheduling import SyntheticsTestOptionsScheduling +from datadog_api_client.v1.model.synthetics_test_options_scheduling_timeframe import ( + SyntheticsTestOptionsSchedulingTimeframe, +) from datadog_api_client.v1.model.synthetics_test_pause_status import SyntheticsTestPauseStatus - -# there is a valid "synthetics_mobile_test" in the system -SYNTHETICS_MOBILE_TEST_PUBLIC_ID = environ["SYNTHETICS_MOBILE_TEST_PUBLIC_ID"] +from datadog_api_client.v1.model.synthetics_test_restriction_policy_binding import ( + SyntheticsTestRestrictionPolicyBinding, +) +from datadog_api_client.v1.model.synthetics_test_restriction_policy_binding_relation import ( + SyntheticsTestRestrictionPolicyBindingRelation, +) body = SyntheticsMobileTest( - name="Example-Synthetic-updated", - status=SyntheticsTestPauseStatus.PAUSED, - type=SyntheticsMobileTestType.MOBILE, config=SyntheticsMobileTestConfig( - variables=[], + variables=[ + SyntheticsConfigVariable( + name="VARIABLE_NAME", + secure=False, + type=SyntheticsConfigVariableType.TEXT, + ), + ], ), - message="", + device_ids=[ + "chrome.laptop_large", + ], + message="Notification message", + name="Example test name", options=SyntheticsMobileTestOptions( + bindings=[ + SyntheticsTestRestrictionPolicyBinding( + principals=[], + relation=SyntheticsTestRestrictionPolicyBindingRelation.EDITOR, + ), + ], + ci=SyntheticsTestCiOptions( + execution_rule=SyntheticsTestExecutionRule.BLOCKING, + ), device_ids=[ - "synthetics:mobile:device:iphone_15_ios_17", + "synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16", ], mobile_application=SyntheticsMobileTestsMobileApplication( - application_id="ab0e0aed-536d-411a-9a99-5428c27d8f8e", - reference_id="6115922a-5f5d-455e-bc7e-7955a57f3815", - reference_type=SyntheticsMobileTestsMobileApplicationReferenceType.VERSION, + application_id="00000000-0000-0000-0000-aaaaaaaaaaaa", + reference_id="00000000-0000-0000-0000-aaaaaaaaaaab", + reference_type=SyntheticsMobileTestsMobileApplicationReferenceType.LATEST, ), - tick_every=3600, + monitor_options=SyntheticsTestOptionsMonitorOptions( + notification_preset_name=SyntheticsTestOptionsMonitorOptionsNotificationPresetName.SHOW_ALL, + ), + restricted_roles=SyntheticsRestrictedRoles( + [ + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + ] + ), + retry=SyntheticsTestOptionsRetry(), + scheduling=SyntheticsTestOptionsScheduling( + timeframes=[ + SyntheticsTestOptionsSchedulingTimeframe( + day=1, + _from="07:00", + to="16:00", + ), + SyntheticsTestOptionsSchedulingTimeframe( + day=3, + _from="07:00", + to="16:00", + ), + ], + timezone="America/New_York", + ), + tick_every=300, ), - steps=[], + status=SyntheticsTestPauseStatus.LIVE, + steps=[ + SyntheticsMobileStep( + name="", + params=SyntheticsMobileStepParams( + check=SyntheticsCheckType.EQUALS, + direction=SyntheticsMobileStepParamsDirection.UP, + element=SyntheticsMobileStepParamsElement( + context_type=SyntheticsMobileStepParamsElementContextType.NATIVE, + relative_position=SyntheticsMobileStepParamsElementRelativePosition(), + user_locator=SyntheticsMobileStepParamsElementUserLocator( + values=[ + SyntheticsMobileStepParamsElementUserLocatorValuesItems( + type=SyntheticsMobileStepParamsElementUserLocatorValuesItemsType.ACCESSIBILITY_ID, + ), + ], + ), + ), + positions=[ + SyntheticsMobileStepParamsPositionsItems(), + ], + variable=SyntheticsMobileStepParamsVariable( + example="", + name="VAR_NAME", + ), + ), + public_id="pub-lic-id0", + type=SyntheticsMobileStepType.ASSERTELEMENTCONTENT, + ), + ], + tags=[ + "env:production", + ], + type=SyntheticsMobileTestType.MOBILE, ) configuration = Configuration() with ApiClient(configuration) as api_client: api_instance = SyntheticsApi(api_client) - response = api_instance.update_mobile_test(public_id=SYNTHETICS_MOBILE_TEST_PUBLIC_ID, body=body) + response = api_instance.update_mobile_test(public_id="public_id", body=body) print(response) diff --git a/examples/v1/synthetics/UpdateMobileTest_477498912.py b/examples/v1/synthetics/UpdateMobileTest_477498912.py new file mode 100644 index 0000000000..c327736f82 --- /dev/null +++ b/examples/v1/synthetics/UpdateMobileTest_477498912.py @@ -0,0 +1,50 @@ +""" +Edit a Mobile test returns "OK" response +""" + +from os import environ +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v1.api.synthetics_api import SyntheticsApi +from datadog_api_client.v1.model.synthetics_mobile_test import SyntheticsMobileTest +from datadog_api_client.v1.model.synthetics_mobile_test_config import SyntheticsMobileTestConfig +from datadog_api_client.v1.model.synthetics_mobile_test_options import SyntheticsMobileTestOptions +from datadog_api_client.v1.model.synthetics_mobile_test_type import SyntheticsMobileTestType +from datadog_api_client.v1.model.synthetics_mobile_tests_mobile_application import ( + SyntheticsMobileTestsMobileApplication, +) +from datadog_api_client.v1.model.synthetics_mobile_tests_mobile_application_reference_type import ( + SyntheticsMobileTestsMobileApplicationReferenceType, +) +from datadog_api_client.v1.model.synthetics_test_pause_status import SyntheticsTestPauseStatus + +# there is a valid "synthetics_mobile_test" in the system +SYNTHETICS_MOBILE_TEST_PUBLIC_ID = environ["SYNTHETICS_MOBILE_TEST_PUBLIC_ID"] + +body = SyntheticsMobileTest( + name="Example-Synthetic-updated", + status=SyntheticsTestPauseStatus.PAUSED, + type=SyntheticsMobileTestType.MOBILE, + config=SyntheticsMobileTestConfig( + variables=[], + ), + message="", + options=SyntheticsMobileTestOptions( + device_ids=[ + "synthetics:mobile:device:iphone_15_ios_17", + ], + mobile_application=SyntheticsMobileTestsMobileApplication( + application_id="ab0e0aed-536d-411a-9a99-5428c27d8f8e", + reference_id="6115922a-5f5d-455e-bc7e-7955a57f3815", + reference_type=SyntheticsMobileTestsMobileApplicationReferenceType.VERSION, + ), + tick_every=3600, + ), + steps=[], +) + +configuration = Configuration() +with ApiClient(configuration) as api_client: + api_instance = SyntheticsApi(api_client) + response = api_instance.update_mobile_test(public_id=SYNTHETICS_MOBILE_TEST_PUBLIC_ID, body=body) + + print(response) diff --git a/examples/v2/synthetics/CreateSyntheticsNetworkTest.py b/examples/v2/synthetics/CreateSyntheticsNetworkTest.py index 0d9a45ce2e..ba08a6cd90 100644 --- a/examples/v2/synthetics/CreateSyntheticsNetworkTest.py +++ b/examples/v2/synthetics/CreateSyntheticsNetworkTest.py @@ -1,5 +1,5 @@ """ -Synthetics: Create a Network Path test returns "OK" response +Create a Network Path test returns "OK" response """ from datadog_api_client import ApiClient, Configuration diff --git a/examples/v2/synthetics/CreateSyntheticsSuite.py b/examples/v2/synthetics/CreateSyntheticsSuite.py index b2b6fe48d5..ec51ca97ad 100644 --- a/examples/v2/synthetics/CreateSyntheticsSuite.py +++ b/examples/v2/synthetics/CreateSyntheticsSuite.py @@ -1,5 +1,5 @@ """ -Synthetics: Create a test suite returns "OK" response +Create a test suite returns "OK" response """ from datadog_api_client import ApiClient, Configuration diff --git a/examples/v2/synthetics/DeleteSyntheticsSuites.py b/examples/v2/synthetics/DeleteSyntheticsSuites.py index e0967da2f0..c4d7d8f2d1 100644 --- a/examples/v2/synthetics/DeleteSyntheticsSuites.py +++ b/examples/v2/synthetics/DeleteSyntheticsSuites.py @@ -1,5 +1,5 @@ """ -Synthetics: Bulk delete suites returns "OK" response +Bulk delete suites returns "OK" response """ from datadog_api_client import ApiClient, Configuration diff --git a/examples/v2/synthetics/DeleteSyntheticsTests.py b/examples/v2/synthetics/DeleteSyntheticsTests.py index 361cf3c932..6e77e0dd48 100644 --- a/examples/v2/synthetics/DeleteSyntheticsTests.py +++ b/examples/v2/synthetics/DeleteSyntheticsTests.py @@ -1,5 +1,5 @@ """ -Synthetics: Bulk delete tests returns "OK" response +Bulk delete tests returns "OK" response """ from datadog_api_client import ApiClient, Configuration diff --git a/examples/v2/synthetics/EditSyntheticsSuite.py b/examples/v2/synthetics/EditSyntheticsSuite.py index 4a9a5d365a..801fe239a5 100644 --- a/examples/v2/synthetics/EditSyntheticsSuite.py +++ b/examples/v2/synthetics/EditSyntheticsSuite.py @@ -1,5 +1,5 @@ """ -Synthetics: Edit a test suite returns "OK" response +Edit a test suite returns "OK" response """ from datadog_api_client import ApiClient, Configuration diff --git a/examples/v2/synthetics/GetSyntheticsNetworkTest.py b/examples/v2/synthetics/GetSyntheticsNetworkTest.py index 933d23a72a..e7f57ebfc2 100644 --- a/examples/v2/synthetics/GetSyntheticsNetworkTest.py +++ b/examples/v2/synthetics/GetSyntheticsNetworkTest.py @@ -1,5 +1,5 @@ """ -Synthetics: Get a Network Path test returns "OK" response +Get a Network Path test returns "OK" response """ from datadog_api_client import ApiClient, Configuration @@ -9,7 +9,7 @@ with ApiClient(configuration) as api_client: api_instance = SyntheticsApi(api_client) response = api_instance.get_synthetics_network_test( - public_id="amg-96x-tps", + public_id="c7a-uwa-wn2", ) print(response) diff --git a/examples/v2/synthetics/GetSyntheticsSuite.py b/examples/v2/synthetics/GetSyntheticsSuite.py index 25371dfe80..11d57be3d8 100644 --- a/examples/v2/synthetics/GetSyntheticsSuite.py +++ b/examples/v2/synthetics/GetSyntheticsSuite.py @@ -1,5 +1,5 @@ """ -Synthetics: Get a suite returns "OK" response +Get a suite returns "OK" response """ from datadog_api_client import ApiClient, Configuration diff --git a/examples/v2/synthetics/SearchSuites.py b/examples/v2/synthetics/SearchSuites.py index 564fdbd3ce..b772d9ed85 100644 --- a/examples/v2/synthetics/SearchSuites.py +++ b/examples/v2/synthetics/SearchSuites.py @@ -1,5 +1,5 @@ """ -Search Synthetics suites returns "OK" response +Search test suites returns "OK" response """ from datadog_api_client import ApiClient, Configuration diff --git a/examples/v2/synthetics/SearchSuites_2539131170.py b/examples/v2/synthetics/SearchSuites_2539131170.py new file mode 100644 index 0000000000..564fdbd3ce --- /dev/null +++ b/examples/v2/synthetics/SearchSuites_2539131170.py @@ -0,0 +1,13 @@ +""" +Search Synthetics suites returns "OK" response +""" + +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.synthetics_api import SyntheticsApi + +configuration = Configuration() +with ApiClient(configuration) as api_client: + api_instance = SyntheticsApi(api_client) + response = api_instance.search_suites() + + print(response) diff --git a/examples/v2/synthetics/UpdateSyntheticsNetworkTest.py b/examples/v2/synthetics/UpdateSyntheticsNetworkTest.py index b6a5369e24..644655e5c3 100644 --- a/examples/v2/synthetics/UpdateSyntheticsNetworkTest.py +++ b/examples/v2/synthetics/UpdateSyntheticsNetworkTest.py @@ -1,5 +1,5 @@ """ -Synthetics: Edit a Network Path test returns "OK" response +Edit a Network Path test returns "OK" response """ from datadog_api_client import ApiClient, Configuration diff --git a/src/datadog_api_client/v1/api/synthetics_api.py b/src/datadog_api_client/v1/api/synthetics_api.py index eb9ce381be..8c8907ea6b 100644 --- a/src/datadog_api_client/v1/api/synthetics_api.py +++ b/src/datadog_api_client/v1/api/synthetics_api.py @@ -1246,10 +1246,10 @@ def get_mobile_test( self, public_id: str, ) -> SyntheticsMobileTest: - """Get a Mobile test. + """Get a mobile test. Get the detailed configuration associated with - a Synthetic Mobile test. + a Synthetic mobile test. :param public_id: The public ID of the test to get details from. :type public_id: str @@ -1564,9 +1564,9 @@ def update_mobile_test( public_id: str, body: SyntheticsMobileTest, ) -> SyntheticsMobileTest: - """Edit a Mobile test. + """Edit a mobile test. - Edit the configuration of a Synthetic Mobile test. + Edit the configuration of a Synthetic mobile test. :param public_id: The public ID of the test to get details from. :type public_id: str diff --git a/src/datadog_api_client/v2/api/synthetics_api.py b/src/datadog_api_client/v2/api/synthetics_api.py index 7a717b32f6..8884951a23 100644 --- a/src/datadog_api_client/v2/api/synthetics_api.py +++ b/src/datadog_api_client/v2/api/synthetics_api.py @@ -331,7 +331,7 @@ def create_synthetics_network_test( self, body: SyntheticsNetworkTestEditRequest, ) -> SyntheticsNetworkTestResponse: - """Synthetics: Create a Network Path test. + """Create a Network Path test. :type body: SyntheticsNetworkTestEditRequest :rtype: SyntheticsNetworkTestResponse @@ -345,7 +345,7 @@ def create_synthetics_suite( self, body: SuiteCreateEditRequest, ) -> SyntheticsSuiteResponse: - """Synthetics: Create a test suite. + """Create a test suite. :type body: SuiteCreateEditRequest :rtype: SyntheticsSuiteResponse @@ -359,7 +359,7 @@ def delete_synthetics_suites( self, body: DeletedSuitesRequestDeleteRequest, ) -> DeletedSuitesResponse: - """Synthetics: Bulk delete suites. + """Bulk delete suites. :type body: DeletedSuitesRequestDeleteRequest :rtype: DeletedSuitesResponse @@ -373,7 +373,7 @@ def delete_synthetics_tests( self, body: DeletedTestsRequestDeleteRequest, ) -> DeletedTestsResponse: - """Synthetics: Bulk delete tests. + """Bulk delete tests. :type body: DeletedTestsRequestDeleteRequest :rtype: DeletedTestsResponse @@ -388,7 +388,7 @@ def edit_synthetics_suite( public_id: str, body: SuiteCreateEditRequest, ) -> SyntheticsSuiteResponse: - """Synthetics: Edit a test suite. + """Edit a test suite. :param public_id: The public ID of the suite to edit. :type public_id: str @@ -419,7 +419,7 @@ def get_synthetics_network_test( self, public_id: str, ) -> SyntheticsNetworkTestResponse: - """Synthetics: Get a Network Path test. + """Get a Network Path test. :param public_id: The public ID of the Network Path test to get details from. :type public_id: str @@ -434,7 +434,7 @@ def get_synthetics_suite( self, public_id: str, ) -> SyntheticsSuiteResponse: - """Synthetics: Get a suite. + """Get a suite. :param public_id: The public ID of the suite to get details from. :type public_id: str @@ -484,9 +484,9 @@ def search_suites( start: Union[int, UnsetType] = unset, count: Union[int, UnsetType] = unset, ) -> SyntheticsSuiteSearchResponse: - """Search Synthetics suites. + """Search test suites. - Search for Synthetics suites. + Search for test suites. :param query: The search query. :type query: str, optional @@ -540,7 +540,7 @@ def update_synthetics_network_test( public_id: str, body: SyntheticsNetworkTestEditRequest, ) -> SyntheticsNetworkTestResponse: - """Synthetics: Edit a Network Path test. + """Edit a Network Path test. :param public_id: The public ID of the Network Path test to edit. :type public_id: str diff --git a/tests/v1/features/synthetics.feature b/tests/v1/features/synthetics.feature index 9b362dbe23..5651a4c9a5 100644 --- a/tests/v1/features/synthetics.feature +++ b/tests/v1/features/synthetics.feature @@ -392,22 +392,6 @@ Feature: Synthetics Then the response status is 200 OK. And the response "deleted_tests[0].public_id" is equal to "{{ synthetics_api_test.public_id }}" - @generated @skip @team:DataDog/synthetics-managing - Scenario: Edit a Mobile test returns "- JSON format is wrong" response - Given new "UpdateMobileTest" request - And request contains "public_id" parameter from "REPLACE.ME" - And body with value {"config": {"variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["chrome.laptop_large"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"principals": [], "relation": "editor"}], "ci": {"executionRule": "blocking"}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "mobileApplication": {"applicationId": "00000000-0000-0000-0000-aaaaaaaaaaaa", "referenceId": "00000000-0000-0000-0000-aaaaaaaaaaab", "referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}, "tick_every": 300}, "status": "live", "steps": [{"name": "", "params": {"check": "equals", "direction": "up", "element": {"contextType": "native", "relativePosition": {}, "userLocator": {"values": [{"type": "accessibility-id"}]}}, "positions": [{}], "variable": {"example": "", "name": "VAR_NAME"}}, "publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"} - When the request is sent - Then the response status is 400 - JSON format is wrong - - @generated @skip @team:DataDog/synthetics-managing - Scenario: Edit a Mobile test returns "- Synthetic Monitoring is not activated for the user" response - Given new "UpdateMobileTest" request - And request contains "public_id" parameter from "REPLACE.ME" - And body with value {"config": {"variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["chrome.laptop_large"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"principals": [], "relation": "editor"}], "ci": {"executionRule": "blocking"}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "mobileApplication": {"applicationId": "00000000-0000-0000-0000-aaaaaaaaaaaa", "referenceId": "00000000-0000-0000-0000-aaaaaaaaaaab", "referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}, "tick_every": 300}, "status": "live", "steps": [{"name": "", "params": {"check": "equals", "direction": "up", "element": {"contextType": "native", "relativePosition": {}, "userLocator": {"values": [{"type": "accessibility-id"}]}}, "positions": [{}], "variable": {"example": "", "name": "VAR_NAME"}}, "publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"} - When the request is sent - Then the response status is 404 - Synthetic Monitoring is not activated for the user - @team:DataDog/synthetics-managing Scenario: Edit a Mobile test returns "OK" response Given there is a valid "synthetics_mobile_test" in the system @@ -462,6 +446,30 @@ Feature: Synthetics When the request is sent Then the response status is 200 OK + @generated @skip @team:DataDog/synthetics-managing + Scenario: Edit a mobile test returns "- JSON format is wrong" response + Given new "UpdateMobileTest" request + And request contains "public_id" parameter from "REPLACE.ME" + And body with value {"config": {"variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["chrome.laptop_large"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"principals": [], "relation": "editor"}], "ci": {"executionRule": "blocking"}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "mobileApplication": {"applicationId": "00000000-0000-0000-0000-aaaaaaaaaaaa", "referenceId": "00000000-0000-0000-0000-aaaaaaaaaaab", "referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}, "tick_every": 300}, "status": "live", "steps": [{"name": "", "params": {"check": "equals", "direction": "up", "element": {"contextType": "native", "relativePosition": {}, "userLocator": {"values": [{"type": "accessibility-id"}]}}, "positions": [{}], "variable": {"example": "", "name": "VAR_NAME"}}, "publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"} + When the request is sent + Then the response status is 400 - JSON format is wrong + + @generated @skip @team:DataDog/synthetics-managing + Scenario: Edit a mobile test returns "- Synthetic Monitoring is not activated for the user" response + Given new "UpdateMobileTest" request + And request contains "public_id" parameter from "REPLACE.ME" + And body with value {"config": {"variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["chrome.laptop_large"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"principals": [], "relation": "editor"}], "ci": {"executionRule": "blocking"}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "mobileApplication": {"applicationId": "00000000-0000-0000-0000-aaaaaaaaaaaa", "referenceId": "00000000-0000-0000-0000-aaaaaaaaaaab", "referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}, "tick_every": 300}, "status": "live", "steps": [{"name": "", "params": {"check": "equals", "direction": "up", "element": {"contextType": "native", "relativePosition": {}, "userLocator": {"values": [{"type": "accessibility-id"}]}}, "positions": [{}], "variable": {"example": "", "name": "VAR_NAME"}}, "publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"} + When the request is sent + Then the response status is 404 - Synthetic Monitoring is not activated for the user + + @generated @skip @team:DataDog/synthetics-managing + Scenario: Edit a mobile test returns "OK" response + Given new "UpdateMobileTest" request + And request contains "public_id" parameter from "REPLACE.ME" + And body with value {"config": {"variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["chrome.laptop_large"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"principals": [], "relation": "editor"}], "ci": {"executionRule": "blocking"}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "mobileApplication": {"applicationId": "00000000-0000-0000-0000-aaaaaaaaaaaa", "referenceId": "00000000-0000-0000-0000-aaaaaaaaaaab", "referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}, "tick_every": 300}, "status": "live", "steps": [{"name": "", "params": {"check": "equals", "direction": "up", "element": {"contextType": "native", "relativePosition": {}, "userLocator": {"values": [{"type": "accessibility-id"}]}}, "positions": [{}], "variable": {"example": "", "name": "VAR_NAME"}}, "publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"} + When the request is sent + Then the response status is 200 OK + @generated @skip @team:DataDog/synthetics-managing Scenario: Edit a private location returns "- Private locations are not activated for the user" response Given new "UpdatePrivateLocation" request @@ -521,13 +529,6 @@ Feature: Synthetics And the response "[0].overall.uptime" is equal to 83.05682373046875 And the response "[0].overall.history" has length 2 - @generated @skip @team:DataDog/synthetics-managing - Scenario: Get a Mobile test returns "- Synthetic Monitoring is not activated for the user" response - Given new "GetMobileTest" request - And request contains "public_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 - Synthetic Monitoring is not activated for the user - @team:DataDog/synthetics-managing Scenario: Get a Mobile test returns "OK" response Given there is a valid "synthetics_mobile_test" in the system @@ -605,6 +606,20 @@ Feature: Synthetics When the request is sent Then the response status is 200 OK + @generated @skip @team:DataDog/synthetics-managing + Scenario: Get a mobile test returns "- Synthetic Monitoring is not activated for the user" response + Given new "GetMobileTest" request + And request contains "public_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 404 - Synthetic Monitoring is not activated for the user + + @generated @skip @team:DataDog/synthetics-managing + Scenario: Get a mobile test returns "OK" response + Given new "GetMobileTest" request + And request contains "public_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 200 OK + @generated @skip @team:DataDog/synthetics-managing Scenario: Get a private location returns "- Synthetic private locations are not activated for the user" response Given new "GetPrivateLocation" request diff --git a/tests/v2/cassettes/test_scenarios/test_synthetics_create_a_network_path_test_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_create_a_network_path_test_returns_ok_response.frozen similarity index 100% rename from tests/v2/cassettes/test_scenarios/test_synthetics_create_a_network_path_test_returns_ok_response.frozen rename to tests/v2/cassettes/test_scenarios/test_create_a_network_path_test_returns_ok_response.frozen diff --git a/tests/v2/cassettes/test_scenarios/test_synthetics_create_a_network_path_test_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_create_a_network_path_test_returns_ok_response.yaml similarity index 100% rename from tests/v2/cassettes/test_scenarios/test_synthetics_create_a_network_path_test_returns_ok_response.yaml rename to tests/v2/cassettes/test_scenarios/test_create_a_network_path_test_returns_ok_response.yaml diff --git a/tests/v2/cassettes/test_scenarios/test_create_a_test_suite_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_create_a_test_suite_returns_ok_response.frozen new file mode 100644 index 0000000000..957e037f23 --- /dev/null +++ b/tests/v2/cassettes/test_scenarios/test_create_a_test_suite_returns_ok_response.frozen @@ -0,0 +1 @@ +2026-02-18T16:57:05.121Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_synthetics_create_a_test_suite_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_create_a_test_suite_returns_ok_response.yaml similarity index 50% rename from tests/v2/cassettes/test_scenarios/test_synthetics_create_a_test_suite_returns_ok_response.yaml rename to tests/v2/cassettes/test_scenarios/test_create_a_test_suite_returns_ok_response.yaml index d29e21551c..ee353eaab8 100644 --- a/tests/v2/cassettes/test_scenarios/test_synthetics_create_a_test_suite_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_create_a_test_suite_returns_ok_response.yaml @@ -11,10 +11,10 @@ interactions: uri: https://api.datadoghq.com/api/v2/synthetics/suites response: body: - string: '{"data":{"type":"suites","id":"36n-bb6-njj","attributes":{"tags":["env:production"],"type":"suite","created_by":{"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI - Account"},"created_at":"2026-01-07T12:38:46.109472+00:00","modified_at":"2026-01-07T12:38:46.109472+00:00","message":"Notification - message","public_id":"36n-bb6-njj","options":{},"modified_by":{"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI - Account"},"tests":[],"name":"Example suite name","org_id":321813,"monitor_id":249141773}}} + string: '{"data":{"type":"suites","attributes":{"type":"suite","monitor_id":259845717,"name":"Example + suite name","options":{},"tests":[],"tags":["env:production"],"public_id":"hik-xp5-9q6","created_at":"2026-02-18T16:57:05.583051+00:00","modified_at":"2026-02-18T16:57:05.583051+00:00","created_by":{"name":"Corentin + Girard","email":"corentin.girard@datadoghq.com","handle":"corentin.girard@datadoghq.com"},"message":"Notification + message","org_id":321813,"modified_by":{"name":"Corentin Girard","email":"corentin.girard@datadoghq.com","handle":"corentin.girard@datadoghq.com"}},"id":"hik-xp5-9q6"}} ' headers: @@ -24,7 +24,7 @@ interactions: code: 200 message: OK - request: - body: '{"data":{"attributes":{"public_ids":["36n-bb6-njj"]},"type":"delete_suites_request"}}' + body: '{"data":{"attributes":{"public_ids":["hik-xp5-9q6"]},"type":"delete_suites_request"}}' headers: accept: - application/json @@ -34,8 +34,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/synthetics/suites/bulk-delete response: body: - string: '{"data":[{"type":"suites","attributes":{"public_id":"36n-bb6-njj","deleted_at":"2026-01-07 - 12:38:46.679914"},"id":"36n-bb6-njj"}]} + string: '{"data":[{"type":"suites","attributes":{"deleted_at":"2026-02-18 16:57:06.420679","public_id":"hik-xp5-9q6"},"id":"hik-xp5-9q6"}]} ' headers: diff --git a/tests/v2/cassettes/test_scenarios/test_get_a_network_path_test_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_get_a_network_path_test_returns_ok_response.frozen new file mode 100644 index 0000000000..1e904b182a --- /dev/null +++ b/tests/v2/cassettes/test_scenarios/test_get_a_network_path_test_returns_ok_response.frozen @@ -0,0 +1 @@ +2026-02-18T18:42:49.488Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_get_a_network_path_test_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_get_a_network_path_test_returns_ok_response.yaml new file mode 100644 index 0000000000..925292de5d --- /dev/null +++ b/tests/v2/cassettes/test_scenarios/test_get_a_network_path_test_returns_ok_response.yaml @@ -0,0 +1,21 @@ +interactions: +- request: + body: null + headers: + accept: + - application/json + method: GET + uri: https://api.datadoghq.com/api/v2/synthetics/tests/network/c7a-uwa-wn2 + response: + body: + string: '{"data":{"type":"network_test","attributes":{"public_id":"c7a-uwa-wn2","locations":["aws:eu-west-3"],"status":"paused","subtype":"tcp","message":"","type":"network","config":{"assertions":[{"operator":"lessThan","property":"avg","target":500,"type":"latency"}],"request":{"source_service":"","traceroute_queries":3,"port":443,"max_ttl":30,"e2e_queries":50,"host":"example.com","tcp_method":"prefer_sack","destination_service":""}},"options":{"retry":{"count":0,"interval":300},"tick_every":60,"monitor_options":{"notification_preset_name":"show_all"},"min_failure_duration":0,"min_location_failed":1},"tags":[],"name":"Network + Path Test on example.com"},"id":"c7a-uwa-wn2"}} + + ' + headers: + content-type: + - application/json + status: + code: 200 + message: OK +version: 1 diff --git a/tests/v2/cassettes/test_scenarios/test_get_the_ondemand_concurrency_cap_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_get_the_ondemand_concurrency_cap_returns_ok_response.frozen index 3a0e0041b4..c77b1cd250 100644 --- a/tests/v2/cassettes/test_scenarios/test_get_the_ondemand_concurrency_cap_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_get_the_ondemand_concurrency_cap_returns_ok_response.frozen @@ -1 +1 @@ -2023-10-16T14:58:01.913Z \ No newline at end of file +2026-02-18T16:57:02.234Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_save_new_value_for_ondemand_concurrency_cap_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_save_new_value_for_ondemand_concurrency_cap_returns_ok_response.frozen index a4f92a7602..574d881e29 100644 --- a/tests/v2/cassettes/test_scenarios/test_save_new_value_for_ondemand_concurrency_cap_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_save_new_value_for_ondemand_concurrency_cap_returns_ok_response.frozen @@ -1 +1 @@ -2023-10-16T14:58:02.363Z \ No newline at end of file +2026-02-18T16:57:02.674Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_search_synthetics_suites_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_search_synthetics_suites_returns_ok_response.frozen index 768dee23bb..1489e4c80d 100644 --- a/tests/v2/cassettes/test_scenarios/test_search_synthetics_suites_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_search_synthetics_suites_returns_ok_response.frozen @@ -1 +1 @@ -2026-01-07T12:38:44.484Z \ No newline at end of file +2026-02-18T16:57:03.180Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_search_synthetics_suites_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_search_synthetics_suites_returns_ok_response.yaml index 6c07ded83c..a5abc8875a 100644 --- a/tests/v2/cassettes/test_scenarios/test_search_synthetics_suites_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_search_synthetics_suites_returns_ok_response.yaml @@ -8,66 +8,80 @@ interactions: uri: https://api.datadoghq.com/api/v2/synthetics/suites/search response: body: - string: '{"data":{"type":"suites_search","attributes":{"suites":[{"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"monitor_status":"No - Data","type":"suite","modified_at":"2025-12-12T14:36:38.194974+00:00","name":"Example - suite name","options":{},"monitor_name":"[Synthetics] Example suite name","last_triggered_ts":1765550180,"monitor_id":243683630,"tests":[],"notifications":[],"public_id":"q9j-u8p-3v5","tags":["env:production"]},{"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"monitor_status":"No - Data","type":"suite","modified_at":"2025-12-12T15:13:58.194856+00:00","name":"Example - suite name","options":{},"monitor_name":"[Synthetics] Example suite name","last_triggered_ts":1765552435,"monitor_id":243691225,"tests":[],"notifications":[],"public_id":"qqj-ma8-msw","tags":["env:production"]},{"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"monitor_status":"No - Data","type":"suite","modified_at":"2025-12-12T13:58:21.265235+00:00","name":"Example - suite name","options":{},"monitor_name":"[Synthetics] Example suite name","last_triggered_ts":1765547882,"monitor_id":243678032,"tests":[],"notifications":[],"public_id":"qwt-zcd-3e7","tags":["env:production"]},{"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"monitor_status":"No - Data","type":"suite","modified_at":"2025-12-16T21:23:27.482218+00:00","name":"Example - suite name","options":{},"monitor_name":"[Synthetics] Example suite name","last_triggered_ts":1765920189,"monitor_id":244824489,"tests":[],"notifications":[],"public_id":"yya-xnv-r72","tags":["env:production"]},{"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"monitor_status":"No - Data","type":"suite","modified_at":"2026-01-06T14:31:13.144659+00:00","name":"Example - suite name","options":{},"monitor_name":"[Synthetics] Example suite name","last_triggered_ts":1767709878,"monitor_id":248911428,"tests":[],"notifications":[],"public_id":"37x-cfh-hik","tags":["env:production"]},{"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"monitor_status":"No - Data","type":"suite","modified_at":"2025-12-12T14:52:23.813142+00:00","name":"Example - suite name","options":{},"monitor_name":"[Synthetics] Example suite name","last_triggered_ts":1765551141,"monitor_id":243686361,"tests":[],"notifications":[],"public_id":"y9a-9jy-ng2","tags":["env:production"]},{"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"monitor_status":"No - Data","type":"suite","modified_at":"2025-12-15T14:02:40.227969+00:00","name":"Example - suite name","options":{},"monitor_name":"[Synthetics] Example suite name","last_triggered_ts":1765807338,"monitor_id":244243608,"tests":[],"notifications":[],"public_id":"45f-82u-p2d","tags":["env:production"]},{"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"monitor_status":"No - Data","type":"suite","modified_at":"2025-12-15T14:22:09.594574+00:00","name":"Example - suite name","options":{},"monitor_name":"[Synthetics] Example suite name","last_triggered_ts":1765808505,"monitor_id":244250055,"tests":[],"notifications":[],"public_id":"xd9-dws-cm2","tags":["env:production"]},{"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"monitor_status":"No - Data","type":"suite","modified_at":"2025-12-15T15:36:44.135107+00:00","name":"Example - suite name","options":{},"monitor_name":"[Synthetics] Example suite name","last_triggered_ts":1765813000,"monitor_id":244276690,"tests":[],"notifications":[],"public_id":"77s-9gi-8pa","tags":["env:production"]},{"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"monitor_status":"No - Data","type":"suite","modified_at":"2025-12-16T09:42:02.245892+00:00","name":"Example - suite name","options":{},"monitor_name":"[Synthetics] Example suite name","last_triggered_ts":1765878101,"monitor_id":244658021,"tests":[],"notifications":[],"public_id":"xft-zns-y58","tags":["env:production"]},{"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"monitor_status":"No - Data","type":"suite","modified_at":"2025-12-16T09:52:14.327958+00:00","name":"Example - suite name","options":{},"monitor_name":"[Synthetics] Example suite name","last_triggered_ts":1765878721,"monitor_id":244659781,"tests":[],"notifications":[],"public_id":"9ne-jp8-bbs","tags":["env:production"]},{"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"monitor_status":"No - Data","type":"suite","modified_at":"2025-12-19T09:34:53.578670+00:00","name":"Example - suite name","options":{},"monitor_name":"[Synthetics] Example suite name","last_triggered_ts":1766136882,"monitor_id":245439882,"tests":[],"notifications":[],"public_id":"rcp-hsx-ksp","tags":["env:production"]},{"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"monitor_status":"No - Data","type":"suite","modified_at":"2025-12-09T10:37:16.189540+00:00","name":"Example - suite name","options":{},"monitor_name":"[Synthetics] Example suite name","last_triggered_ts":1765276630,"monitor_id":242864230,"tests":[],"notifications":[],"public_id":"ihb-7cb-mbq","tags":["env:production"]},{"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"monitor_status":"No - Data","type":"suite","modified_at":"2025-12-12T14:58:39.394977+00:00","name":"Example - suite name","options":{},"monitor_name":"[Synthetics] Example suite name","last_triggered_ts":1765551515,"monitor_id":243687635,"tests":[],"notifications":[],"public_id":"m4t-g9e-cht","tags":["env:production"]},{"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"monitor_status":"No - Data","type":"suite","modified_at":"2025-12-15T13:27:01.650049+00:00","name":"Example - suite name","options":{},"monitor_name":"[Synthetics] Example suite name","last_triggered_ts":1765805206,"monitor_id":244230166,"tests":[],"notifications":[],"public_id":"3rn-xv7-3gw","tags":["env:production"]},{"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"monitor_status":"No - Data","type":"suite","modified_at":"2025-12-15T13:55:29.070758+00:00","name":"Example - suite name","options":{},"monitor_name":"[Synthetics] Example suite name","last_triggered_ts":1765806925,"monitor_id":244240495,"tests":[],"notifications":[],"public_id":"u5z-r6t-6gj","tags":["env:production"]},{"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"monitor_status":"No - Data","type":"suite","modified_at":"2025-12-15T15:48:08.393886+00:00","name":"Example - suite name","options":{},"monitor_name":"[Synthetics] Example suite name","last_triggered_ts":1765813664,"monitor_id":244283444,"tests":[],"notifications":[],"public_id":"fug-wqb-jgm","tags":["env:production"]},{"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"monitor_status":"No - Data","type":"suite","modified_at":"2025-12-17T08:57:02.235129+00:00","name":"Example - suite name","options":{},"monitor_name":"[Synthetics] Example suite name","last_triggered_ts":1765961806,"monitor_id":244953226,"tests":[],"notifications":[],"public_id":"tmj-mmm-6rw","tags":["env:production"]},{"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"monitor_status":"No - Data","type":"suite","modified_at":"2026-01-06T13:52:15.675454+00:00","name":"Example - suite name","options":{},"monitor_name":"[Synthetics] Example suite name","last_triggered_ts":1767707530,"monitor_id":248904310,"tests":[],"notifications":[],"public_id":"pkr-4b7-tug","tags":["env:production"]}],"facets":[{"name":"mobile_platform","values":[]},{"name":"test_count","values":[{"name":"0","count":19}]},{"name":"step_count","values":[]},{"name":"http_path","values":[]},{"name":"team","values":[]},{"name":"type","values":[{"name":"suite","count":19}]},{"name":"env","values":[{"name":"production","count":19}]},{"name":"creator","values":[{"name":"CI - Account","count":19}]},{"name":"mobile_application","values":[]},{"name":"notification","values":[]},{"name":"endpoint","values":[]},{"name":"http_method","values":[]},{"name":"creation_source","values":[]},{"name":"domain","values":[]},{"name":"ci_execution_rule","values":[{"name":"blocking","count":19}]},{"name":"tag","values":[{"name":"env:production","count":19}]},{"name":"state","values":[{"name":"paused","count":19}]},{"name":"region","values":[]},{"name":"muted","values":[{"name":"0","count":19}]},{"name":"status","values":[{"name":"No - Data","count":19}]}],"total":19},"id":"74278a23-c9ce-4093-816d-7109fb05adb5"}} + string: '{"data":{"type":"suites_search","id":"a36a229d-a20c-45cb-9e0f-37c536d7d870","attributes":{"facets":[{"name":"mobile_platform","values":[]},{"name":"test_count","values":[{"count":24,"name":"0"}]},{"name":"step_count","values":[]},{"name":"http_path","values":[]},{"name":"team","values":[]},{"name":"env","values":[{"count":24,"name":"production"}]},{"name":"type","values":[{"count":24,"name":"suite"}]},{"name":"creator","values":[{"count":24,"name":"CI + Account"}]},{"name":"mobile_application","values":[]},{"name":"notification","values":[]},{"name":"endpoint","values":[]},{"name":"http_method","values":[]},{"name":"creation_source","values":[]},{"name":"domain","values":[]},{"name":"ci_execution_rule","values":[{"count":24,"name":"blocking"}]},{"name":"state","values":[{"count":24,"name":"paused"}]},{"name":"tag","values":[{"count":24,"name":"env:production"}]},{"name":"region","values":[]},{"name":"muted","values":[{"count":24,"name":"0"}]},{"name":"status","values":[{"count":24,"name":"No + Data"}]}],"suites":[{"monitor_id":243683630,"created_by":{"name":"CI Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2025-12-12T14:36:38.194974+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1765550180,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"q9j-u8p-3v5","type":"suite"},{"monitor_id":243691225,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2025-12-12T15:13:58.194856+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1765552435,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"qqj-ma8-msw","type":"suite"},{"monitor_id":243678032,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2025-12-12T13:58:21.265235+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1765547882,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"qwt-zcd-3e7","type":"suite"},{"monitor_id":244824489,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2025-12-16T21:23:27.482218+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1765920189,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"yya-xnv-r72","type":"suite"},{"monitor_id":249160092,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2026-01-07T14:35:57.222209+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1767796542,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"ymz-qsm-hr2","type":"suite"},{"monitor_id":248911428,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2026-01-06T14:31:13.144659+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1767709878,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"37x-cfh-hik","type":"suite"},{"monitor_id":249142412,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2026-01-07T12:44:43.086868+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1767789872,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"6dr-pg7-8h7","type":"suite"},{"monitor_id":249145123,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2026-01-07T13:04:35.589562+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1767791053,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"hzd-bzv-cd6","type":"suite"},{"monitor_id":243686361,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2025-12-12T14:52:23.813142+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1765551141,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"y9a-9jy-ng2","type":"suite"},{"monitor_id":244243608,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2025-12-15T14:02:40.227969+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1765807338,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"45f-82u-p2d","type":"suite"},{"monitor_id":244250055,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2025-12-15T14:22:09.594574+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1765808505,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"xd9-dws-cm2","type":"suite"},{"monitor_id":244276690,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2025-12-15T15:36:44.135107+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1765813000,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"77s-9gi-8pa","type":"suite"},{"monitor_id":244658021,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2025-12-16T09:42:02.245892+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1765878101,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"xft-zns-y58","type":"suite"},{"monitor_id":244659781,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2025-12-16T09:52:14.327958+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1765878721,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"9ne-jp8-bbs","type":"suite"},{"monitor_id":249382503,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2026-01-08T13:44:51.085083+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1767879873,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"2tv-8tv-nux","type":"suite"},{"monitor_id":245439882,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2025-12-19T09:34:53.578670+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1766136882,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"rcp-hsx-ksp","type":"suite"},{"monitor_id":242864230,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2025-12-09T10:37:16.189540+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1765276630,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"ihb-7cb-mbq","type":"suite"},{"monitor_id":243687635,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2025-12-12T14:58:39.394977+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1765551515,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"m4t-g9e-cht","type":"suite"},{"monitor_id":244240495,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2025-12-15T13:55:29.070758+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1765806925,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"u5z-r6t-6gj","type":"suite"},{"monitor_id":244283444,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2025-12-15T15:48:08.393886+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1765813664,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"fug-wqb-jgm","type":"suite"},{"monitor_id":244953226,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2025-12-17T08:57:02.235129+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1765961806,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"tmj-mmm-6rw","type":"suite"},{"monitor_id":248904310,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2026-01-06T13:52:15.675454+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1767707530,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"pkr-4b7-tug","type":"suite"},{"monitor_id":244230166,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2025-12-15T13:27:01.650049+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1765805206,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"3rn-xv7-3gw","type":"suite"},{"monitor_id":249142218,"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"},"modified_at":"2026-01-07T12:42:27.916511+00:00","options":{},"monitor_status":"No + Data","tests":[],"last_triggered_ts":1767789738,"name":"Example suite name","monitor_name":"[Synthetics] + Example suite name","notifications":[],"tags":["env:production"],"public_id":"dyh-dc6-yp8","type":"suite"}],"total":24}}} ' headers: diff --git a/tests/v2/cassettes/test_scenarios/test_synthetics_create_a_test_suite_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_synthetics_create_a_test_suite_returns_ok_response.frozen deleted file mode 100644 index 62723cd8d2..0000000000 --- a/tests/v2/cassettes/test_scenarios/test_synthetics_create_a_test_suite_returns_ok_response.frozen +++ /dev/null @@ -1 +0,0 @@ -2026-01-07T12:38:45.716Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_synthetics_get_a_network_path_test_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_synthetics_get_a_network_path_test_returns_ok_response.frozen deleted file mode 100644 index 7ba3f2dd33..0000000000 --- a/tests/v2/cassettes/test_scenarios/test_synthetics_get_a_network_path_test_returns_ok_response.frozen +++ /dev/null @@ -1 +0,0 @@ -2026-01-29T16:23:56.538Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_synthetics_get_a_network_path_test_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_synthetics_get_a_network_path_test_returns_ok_response.yaml deleted file mode 100644 index 0561c00755..0000000000 --- a/tests/v2/cassettes/test_scenarios/test_synthetics_get_a_network_path_test_returns_ok_response.yaml +++ /dev/null @@ -1,21 +0,0 @@ -interactions: -- request: - body: null - headers: - accept: - - application/json - method: GET - uri: https://api.datadoghq.com/api/v2/synthetics/tests/network/amg-96x-tps - response: - body: - string: '{"data":{"type":"network_test","attributes":{"config":{"request":{"traceroute_queries":3,"tcp_method":"prefer_sack","max_ttl":30,"e2e_queries":50,"host":"example.com","port":443},"assertions":[{"operator":"lessThan","property":"avg","target":500,"type":"latency"}]},"public_id":"amg-96x-tps","locations":["aws:us-east-1","agent:my-agent-name"],"options":{"tick_every":60},"name":"Example - Network Path test","message":"Network Path test notification","type":"network","status":"paused","subtype":"tcp","tags":["env:production"]},"id":"amg-96x-tps"}} - - ' - headers: - content-type: - - application/json - status: - code: 200 - message: OK -version: 1 diff --git a/tests/v2/features/synthetics.feature b/tests/v2/features/synthetics.feature index 07b9750052..0f9a67bede 100644 --- a/tests/v2/features/synthetics.feature +++ b/tests/v2/features/synthetics.feature @@ -17,114 +17,64 @@ Feature: Synthetics And a valid "appKeyAuth" key in the system And an instance of "Synthetics" API - @team:DataDog/synthetics-managing - Scenario: Get the on-demand concurrency cap returns "OK" response - Given new "GetOnDemandConcurrencyCap" request - When the request is sent - Then the response status is 200 OK - - @generated @skip @team:DataDog/synthetics-managing - Scenario: Patch a global variable returns "Bad Request" response - Given new "PatchGlobalVariable" request - And request contains "variable_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"json_patch": [{"op": "add", "path": "/name"}]}, "type": "global_variables_json_patch"}} - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:DataDog/synthetics-managing - Scenario: Patch a global variable returns "Not Found" response - Given new "PatchGlobalVariable" request - And request contains "variable_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"json_patch": [{"op": "add", "path": "/name"}]}, "type": "global_variables_json_patch"}} - When the request is sent - Then the response status is 404 Not Found - - @generated @skip @team:DataDog/synthetics-managing - Scenario: Patch a global variable returns "OK" response - Given new "PatchGlobalVariable" request - And request contains "variable_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"json_patch": [{"op": "add", "path": "/name"}]}, "type": "global_variables_json_patch"}} - When the request is sent - Then the response status is 200 OK - - @team:DataDog/synthetics-managing - Scenario: Save new value for on-demand concurrency cap returns "OK" response - Given new "SetOnDemandConcurrencyCap" request - And body with value {"on_demand_concurrency_cap": 20} - When the request is sent - Then the response status is 200 OK - And the response "data.attributes.on_demand_concurrency_cap" is equal to 20 - - @generated @skip @team:DataDog/synthetics-managing - Scenario: Search Synthetics suites returns "API error response." response - Given new "SearchSuites" request - When the request is sent - Then the response status is 400 API error response. - - @team:DataDog/synthetics-managing - Scenario: Search Synthetics suites returns "OK" response - Given new "SearchSuites" request - When the request is sent - Then the response status is 200 OK - @generated @skip @team:DataDog/synthetics-managing - Scenario: Synthetics: Bulk delete suites returns "API error response." response + Scenario: Bulk delete suites returns "API error response." response Given new "DeleteSyntheticsSuites" request And body with value {"data": {"attributes": {"public_ids": [""]}, "type": "delete_suites_request"}} When the request is sent Then the response status is 400 API error response. @generated @skip @team:DataDog/synthetics-managing - Scenario: Synthetics: Bulk delete suites returns "OK" response + Scenario: Bulk delete suites returns "OK" response Given new "DeleteSyntheticsSuites" request And body with value {"data": {"attributes": {"public_ids": [""]}, "type": "delete_suites_request"}} When the request is sent Then the response status is 200 OK @generated @skip @team:DataDog/synthetics-managing - Scenario: Synthetics: Bulk delete tests returns "API error response." response + Scenario: Bulk delete tests returns "API error response." response Given new "DeleteSyntheticsTests" request And body with value {"data": {"attributes": {"public_ids": [""]}, "type": "delete_tests_request"}} When the request is sent Then the response status is 404 API error response. @generated @skip @team:DataDog/synthetics-managing - Scenario: Synthetics: Bulk delete tests returns "OK" response + Scenario: Bulk delete tests returns "OK" response Given new "DeleteSyntheticsTests" request And body with value {"data": {"attributes": {"public_ids": [""]}, "type": "delete_tests_request"}} When the request is sent Then the response status is 200 OK @generated @skip @team:DataDog/synthetics-managing - Scenario: Synthetics: Create a Network Path test returns "API error response." response + Scenario: Create a Network Path test returns "API error response." response Given new "CreateSyntheticsNetworkTest" request And body with value {"data": {"attributes": {"config": {"assertions": [{"operator": "lessThan", "property": "avg", "target": 500, "type": "latency"}], "request": {"e2e_queries": 50, "host": "", "max_ttl": 30, "port": 443, "tcp_method": "prefer_sack", "traceroute_queries": 3}}, "locations": ["aws:us-east-1", "agent:my-agent-name"], "message": "Network Path test notification", "name": "Example Network Path test", "options": {"monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}}, "status": "live", "subtype": "tcp", "tags": ["env:production"], "type": "network"}, "type": "network"}} When the request is sent Then the response status is 400 API error response. @team:DataDog/synthetics-managing - Scenario: Synthetics: Create a Network Path test returns "OK" response + Scenario: Create a Network Path test returns "OK" response Given new "CreateSyntheticsNetworkTest" request And body with value {"data": {"attributes": {"config": {"assertions": [{"operator": "lessThan", "property": "avg", "target": 500, "type": "latency"}], "request": {"host": "example.com", "port": 443, "tcp_method": "prefer_sack", "max_ttl": 30, "e2e_queries": 50, "traceroute_queries": 3}}, "locations": ["aws:us-east-1", "agent:my-agent-name"], "message": "Network Path test notification", "name": "Example Network Path test", "options": {"tick_every": 60}, "status": "live", "subtype": "tcp", "tags": ["env:production"], "type": "network"}, "type": "network"}} When the request is sent Then the response status is 200 OK @generated @skip @team:DataDog/synthetics-managing - Scenario: Synthetics: Create a test suite returns "API error response." response + Scenario: Create a test suite returns "API error response." response Given new "CreateSyntheticsSuite" request And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "options": {}, "tags": ["env:production"], "tests": [{"alerting_criticality": "critical", "public_id": ""}], "type": "suite"}, "type": "suites"}} When the request is sent Then the response status is 400 API error response. @team:DataDog/synthetics-managing - Scenario: Synthetics: Create a test suite returns "OK" response + Scenario: Create a test suite returns "OK" response Given new "CreateSyntheticsSuite" request And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "options": {}, "tags": ["env:production"], "tests": [], "type": "suite"}, "type": "suites"}} When the request is sent Then the response status is 200 OK @generated @skip @team:DataDog/synthetics-managing - Scenario: Synthetics: Edit a Network Path test returns "API error response." response + Scenario: Edit a Network Path test returns "API error response." response Given new "UpdateSyntheticsNetworkTest" request And request contains "public_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"config": {"assertions": [{"operator": "lessThan", "property": "avg", "target": 500, "type": "latency"}], "request": {"e2e_queries": 50, "host": "", "max_ttl": 30, "port": 443, "tcp_method": "prefer_sack", "traceroute_queries": 3}}, "locations": ["aws:us-east-1", "agent:my-agent-name"], "message": "Network Path test notification", "name": "Example Network Path test", "options": {"monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}}, "status": "live", "subtype": "tcp", "tags": ["env:production"], "type": "network"}, "type": "network"}} @@ -132,7 +82,7 @@ Feature: Synthetics Then the response status is 404 API error response. @generated @skip @team:DataDog/synthetics-managing - Scenario: Synthetics: Edit a Network Path test returns "OK" response + Scenario: Edit a Network Path test returns "OK" response Given new "UpdateSyntheticsNetworkTest" request And request contains "public_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"config": {"assertions": [{"operator": "lessThan", "property": "avg", "target": 500, "type": "latency"}], "request": {"e2e_queries": 50, "host": "", "max_ttl": 30, "port": 443, "tcp_method": "prefer_sack", "traceroute_queries": 3}}, "locations": ["aws:us-east-1", "agent:my-agent-name"], "message": "Network Path test notification", "name": "Example Network Path test", "options": {"monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}}, "status": "live", "subtype": "tcp", "tags": ["env:production"], "type": "network"}, "type": "network"}} @@ -140,7 +90,7 @@ Feature: Synthetics Then the response status is 200 OK @generated @skip @team:DataDog/synthetics-managing - Scenario: Synthetics: Edit a test suite returns "API error response." response + Scenario: Edit a test suite returns "API error response." response Given new "EditSyntheticsSuite" request And request contains "public_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "options": {}, "tags": ["env:production"], "tests": [{"alerting_criticality": "critical", "public_id": ""}], "type": "suite"}, "type": "suites"}} @@ -148,7 +98,7 @@ Feature: Synthetics Then the response status is 400 API error response. @generated @skip @team:DataDog/synthetics-managing - Scenario: Synthetics: Edit a test suite returns "OK" response + Scenario: Edit a test suite returns "OK" response Given new "EditSyntheticsSuite" request And request contains "public_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "options": {}, "tags": ["env:production"], "tests": [{"alerting_criticality": "critical", "public_id": ""}], "type": "suite"}, "type": "suites"}} @@ -156,29 +106,85 @@ Feature: Synthetics Then the response status is 200 OK @generated @skip @team:DataDog/synthetics-managing - Scenario: Synthetics: Get a Network Path test returns "API error response." response + Scenario: Get a Network Path test returns "API error response." response Given new "GetSyntheticsNetworkTest" request And request contains "public_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 API error response. @replay-only @team:DataDog/synthetics-managing - Scenario: Synthetics: Get a Network Path test returns "OK" response + Scenario: Get a Network Path test returns "OK" response Given new "GetSyntheticsNetworkTest" request - And request contains "public_id" parameter with value "amg-96x-tps" + And request contains "public_id" parameter with value "c7a-uwa-wn2" When the request is sent Then the response status is 200 OK @generated @skip @team:DataDog/synthetics-managing - Scenario: Synthetics: Get a suite returns "API error response." response + Scenario: Get a suite returns "API error response." response Given new "GetSyntheticsSuite" request And request contains "public_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 API error response. @generated @skip @team:DataDog/synthetics-managing - Scenario: Synthetics: Get a suite returns "OK" response + Scenario: Get a suite returns "OK" response Given new "GetSyntheticsSuite" request And request contains "public_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK + + @team:DataDog/synthetics-managing + Scenario: Get the on-demand concurrency cap returns "OK" response + Given new "GetOnDemandConcurrencyCap" request + When the request is sent + Then the response status is 200 OK + + @generated @skip @team:DataDog/synthetics-managing + Scenario: Patch a global variable returns "Bad Request" response + Given new "PatchGlobalVariable" request + And request contains "variable_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"json_patch": [{"op": "add", "path": "/name"}]}, "type": "global_variables_json_patch"}} + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:DataDog/synthetics-managing + Scenario: Patch a global variable returns "Not Found" response + Given new "PatchGlobalVariable" request + And request contains "variable_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"json_patch": [{"op": "add", "path": "/name"}]}, "type": "global_variables_json_patch"}} + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:DataDog/synthetics-managing + Scenario: Patch a global variable returns "OK" response + Given new "PatchGlobalVariable" request + And request contains "variable_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"json_patch": [{"op": "add", "path": "/name"}]}, "type": "global_variables_json_patch"}} + When the request is sent + Then the response status is 200 OK + + @team:DataDog/synthetics-managing + Scenario: Save new value for on-demand concurrency cap returns "OK" response + Given new "SetOnDemandConcurrencyCap" request + And body with value {"on_demand_concurrency_cap": 20} + When the request is sent + Then the response status is 200 OK + And the response "data.attributes.on_demand_concurrency_cap" is equal to 20 + + @team:DataDog/synthetics-managing + Scenario: Search Synthetics suites returns "OK" response + Given new "SearchSuites" request + When the request is sent + Then the response status is 200 OK + + @generated @skip @team:DataDog/synthetics-managing + Scenario: Search test suites returns "API error response." response + Given new "SearchSuites" request + When the request is sent + Then the response status is 400 API error response. + + @generated @skip @team:DataDog/synthetics-managing + Scenario: Search test suites returns "OK" response + Given new "SearchSuites" request + When the request is sent + Then the response status is 200 OK