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
27 changes: 0 additions & 27 deletions examples/v1/synthetics/SearchTests_195957771.ts

This file was deleted.

4 changes: 0 additions & 4 deletions features/support/scenarios_model_mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2110,10 +2110,6 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
"type": "boolean",
"format": "",
},
"searchSuites": {
"type": "boolean",
"format": "",
},
"facetsOnly": {
"type": "boolean",
"format": "",
Expand Down
13 changes: 0 additions & 13 deletions features/v1/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
16 changes: 1 addition & 15 deletions packages/datadog-api-client-v1/apis/SyntheticsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,6 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory {
public async searchTests(
text?: string,
includeFullConfig?: boolean,
searchSuites?: boolean,
facetsOnly?: boolean,
start?: number,
count?: number,
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand All @@ -4556,7 +4543,6 @@ export class SyntheticsApi {
const requestContextPromise = this.requestFactory.searchTests(
param.text,
param.includeFullConfig,
param.searchSuites,
param.facetsOnly,
param.start,
param.count,
Expand Down