diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index dc6c8110eef5..6c5f428b9c37 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -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. @@ -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 diff --git a/examples/v1/synthetics/SearchTests_195957771.ts b/examples/v1/synthetics/SearchTests_195957771.ts deleted file mode 100644 index 9de97db30363..000000000000 --- a/examples/v1/synthetics/SearchTests_195957771.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Search Synthetic tests with boolean query parameters - */ - -import { client, v1 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v1.SyntheticsApi(configuration); - -const params: v1.SyntheticsApiSearchTestsRequest = { - text: "tag:value", - includeFullConfig: true, - searchSuites: true, - facetsOnly: true, - start: 10, - count: 5, - sort: "name,desc", -}; - -apiInstance - .searchTests(params) - .then((data: v1.SyntheticsListTestsResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/features/support/scenarios_model_mapping.ts b/features/support/scenarios_model_mapping.ts index db6f5bfd44e6..0e0424d53925 100644 --- a/features/support/scenarios_model_mapping.ts +++ b/features/support/scenarios_model_mapping.ts @@ -2110,10 +2110,6 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { "type": "boolean", "format": "", }, - "searchSuites": { - "type": "boolean", - "format": "", - }, "facetsOnly": { "type": "boolean", "format": "", diff --git a/features/v1/synthetics.feature b/features/v1/synthetics.feature index bee6e5de8ca6..401514da28d4 100644 --- a/features/v1/synthetics.feature +++ b/features/v1/synthetics.feature @@ -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 diff --git a/packages/datadog-api-client-v1/apis/SyntheticsApi.ts b/packages/datadog-api-client-v1/apis/SyntheticsApi.ts index 3045831c88bf..491f7889427d 100644 --- a/packages/datadog-api-client-v1/apis/SyntheticsApi.ts +++ b/packages/datadog-api-client-v1/apis/SyntheticsApi.ts @@ -1069,7 +1069,6 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { public async searchTests( text?: string, includeFullConfig?: boolean, - searchSuites?: boolean, facetsOnly?: boolean, start?: number, count?: number, @@ -1103,13 +1102,6 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { "" ); } - if (searchSuites !== undefined) { - requestContext.setQueryParam( - "search_suites", - ObjectSerializer.serialize(searchSuites, "boolean", ""), - "" - ); - } if (facetsOnly !== undefined) { requestContext.setQueryParam( "facets_only", @@ -3823,11 +3815,6 @@ export interface SyntheticsApiSearchTestsRequest { * @type boolean */ includeFullConfig?: boolean; - /** - * If true, returns suites instead of tests. - * @type boolean - */ - searchSuites?: boolean; /** * If true, return only facets instead of full test details. * @type boolean @@ -4546,7 +4533,7 @@ export class SyntheticsApi { } /** - * Search for Synthetic tests and Test Suites. + * Search for Synthetic tests. * @param param The request object */ public searchTests( @@ -4556,7 +4543,6 @@ export class SyntheticsApi { const requestContextPromise = this.requestFactory.searchTests( param.text, param.includeFullConfig, - param.searchSuites, param.facetsOnly, param.start, param.count,