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: 1 addition & 7 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34053,7 +34053,7 @@ paths:
- synthetics_write
/api/v1/synthetics/tests/search:
get:
description: Search for Synthetic tests and Test Suites.
description: Search for Synthetic tests.
operationId: SearchTests
parameters:
- description: The search query.
Expand All @@ -34069,12 +34069,6 @@ paths:
required: false
schema:
type: boolean
- description: If true, returns suites instead of tests.
in: query
name: search_suites
required: false
schema:
type: boolean
- description: If true, return only facets instead of full test details.
in: query
name: facets_only
Expand Down
21 changes: 0 additions & 21 deletions examples/v1/synthetics/SearchTests_195957771.py

This file was deleted.

13 changes: 1 addition & 12 deletions src/datadog_api_client/v1/api/synthetics_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,11 +695,6 @@ def __init__(self, api_client=None):
"attribute": "include_full_config",
"location": "query",
},
"search_suites": {
"openapi_types": (bool,),
"attribute": "search_suites",
"location": "query",
},
"facets_only": {
"openapi_types": (bool,),
"attribute": "facets_only",
Expand Down Expand Up @@ -1438,22 +1433,19 @@ def search_tests(
*,
text: Union[str, UnsetType] = unset,
include_full_config: Union[bool, UnsetType] = unset,
search_suites: Union[bool, UnsetType] = unset,
facets_only: Union[bool, UnsetType] = unset,
start: Union[int, UnsetType] = unset,
count: Union[int, UnsetType] = unset,
sort: Union[str, UnsetType] = unset,
) -> SyntheticsListTestsResponse:
"""Search Synthetic tests.

Search for Synthetic tests and Test Suites.
Search for Synthetic tests.

:param text: The search query.
:type text: str, optional
:param include_full_config: If true, include the full configuration for each test in the response.
:type include_full_config: bool, optional
:param search_suites: If true, returns suites instead of tests.
:type search_suites: bool, optional
:param facets_only: If true, return only facets instead of full test details.
:type facets_only: bool, optional
:param start: The offset from which to start returning results.
Expand All @@ -1471,9 +1463,6 @@ def search_tests(
if include_full_config is not unset:
kwargs["include_full_config"] = include_full_config

if search_suites is not unset:
kwargs["search_suites"] = search_suites

if facets_only is not unset:
kwargs["facets_only"] = facets_only

Expand Down
13 changes: 0 additions & 13 deletions tests/v1/features/synthetics.feature
Original file line number Diff line number Diff line change
Expand Up @@ -803,19 +803,6 @@ Feature: Synthetics
When the request is sent
Then the response status is 200 OK - Returns the list of Synthetic tests matching the search.

@team:DataDog/synthetics-managing
Scenario: Search Synthetic tests with boolean query parameters
Given new "SearchTests" request
And request contains "text" parameter with value "tag:value"
And request contains "include_full_config" parameter with value true
And request contains "search_suites" parameter with value true
And request contains "facets_only" parameter with value true
And request contains "start" parameter with value 10
And request contains "count" parameter with value 5
And request contains "sort" parameter with value "name,desc"
When the request is sent
Then the response status is 200 OK - Returns the list of Synthetic tests matching the search.

@generated @skip @team:DataDog/synthetics-managing
Scenario: Trigger Synthetic tests returns "Bad Request" response
Given new "TriggerTests" request
Expand Down