Skip to content

Commit fcc92c1

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Remove any references to synthetics test suites (#2817)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 51ee991 commit fcc92c1

File tree

4 files changed

+2
-39
lines changed

4 files changed

+2
-39
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34053,7 +34053,7 @@ paths:
3405334053
- synthetics_write
3405434054
/api/v1/synthetics/tests/search:
3405534055
get:
34056-
description: Search for Synthetic tests and Test Suites.
34056+
description: Search for Synthetic tests.
3405734057
operationId: SearchTests
3405834058
parameters:
3405934059
- description: The search query.
@@ -34069,12 +34069,6 @@ paths:
3406934069
required: false
3407034070
schema:
3407134071
type: boolean
34072-
- description: If true, returns suites instead of tests.
34073-
in: query
34074-
name: search_suites
34075-
required: false
34076-
schema:
34077-
type: boolean
3407834072
- description: If true, return only facets instead of full test details.
3407934073
in: query
3408034074
name: facets_only

features/v1/synthetics.feature

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -803,19 +803,6 @@ Feature: Synthetics
803803
When the request is sent
804804
Then the response status is 200 OK - Returns the list of Synthetic tests matching the search.
805805

806-
@team:DataDog/synthetics-managing
807-
Scenario: Search Synthetic tests with boolean query parameters
808-
Given new "SearchTests" request
809-
And request contains "text" parameter with value "tag:value"
810-
And request contains "include_full_config" parameter with value true
811-
And request contains "search_suites" parameter with value true
812-
And request contains "facets_only" parameter with value true
813-
And request contains "start" parameter with value 10
814-
And request contains "count" parameter with value 5
815-
And request contains "sort" parameter with value "name,desc"
816-
When the request is sent
817-
Then the response status is 200 OK - Returns the list of Synthetic tests matching the search.
818-
819806
@generated @skip @team:DataDog/synthetics-managing
820807
Scenario: Trigger Synthetic tests returns "Bad Request" response
821808
Given new "TriggerTests" request

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,10 +2120,6 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
21202120
type: "boolean",
21212121
format: "",
21222122
},
2123-
searchSuites: {
2124-
type: "boolean",
2125-
format: "",
2126-
},
21272123
facetsOnly: {
21282124
type: "boolean",
21292125
format: "",

services/synthetics/src/v1/SyntheticsApi.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,6 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory {
13521352
public async searchTests(
13531353
text?: string,
13541354
includeFullConfig?: boolean,
1355-
searchSuites?: boolean,
13561355
facetsOnly?: boolean,
13571356
start?: number,
13581357
count?: number,
@@ -1397,13 +1396,6 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory {
13971396
"",
13981397
);
13991398
}
1400-
if (searchSuites !== undefined) {
1401-
requestContext.setQueryParam(
1402-
"search_suites",
1403-
serialize(searchSuites, TypingInfo, "boolean", ""),
1404-
"",
1405-
);
1406-
}
14071399
if (facetsOnly !== undefined) {
14081400
requestContext.setQueryParam(
14091401
"facets_only",
@@ -4090,11 +4082,6 @@ export interface SyntheticsApiSearchTestsRequest {
40904082
* @type boolean
40914083
*/
40924084
includeFullConfig?: boolean;
4093-
/**
4094-
* If true, returns suites instead of tests.
4095-
* @type boolean
4096-
*/
4097-
searchSuites?: boolean;
40984085
/**
40994086
* If true, return only facets instead of full test details.
41004087
* @type boolean
@@ -4814,7 +4801,7 @@ export class SyntheticsApi {
48144801
}
48154802

48164803
/**
4817-
* Search for Synthetic tests and Test Suites.
4804+
* Search for Synthetic tests.
48184805
* @param param The request object
48194806
*/
48204807
public searchTests(
@@ -4824,7 +4811,6 @@ export class SyntheticsApi {
48244811
const requestContextPromise = this.requestFactory.searchTests(
48254812
param.text,
48264813
param.includeFullConfig,
4827-
param.searchSuites,
48284814
param.facetsOnly,
48294815
param.start,
48304816
param.count,

0 commit comments

Comments
 (0)