Skip to content

Commit b128e31

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

4 files changed

Lines changed: 2 additions & 60 deletions

File tree

.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

api/datadogV1/api_synthetics.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2248,7 +2248,6 @@ func (a *SyntheticsApi) PatchTest(ctx _context.Context, publicId string, body Sy
22482248
type SearchTestsOptionalParameters struct {
22492249
Text *string
22502250
IncludeFullConfig *bool
2251-
SearchSuites *bool
22522251
FacetsOnly *bool
22532252
Start *int64
22542253
Count *int64
@@ -2273,12 +2272,6 @@ func (r *SearchTestsOptionalParameters) WithIncludeFullConfig(includeFullConfig
22732272
return r
22742273
}
22752274

2276-
// WithSearchSuites sets the corresponding parameter name and returns the struct.
2277-
func (r *SearchTestsOptionalParameters) WithSearchSuites(searchSuites bool) *SearchTestsOptionalParameters {
2278-
r.SearchSuites = &searchSuites
2279-
return r
2280-
}
2281-
22822275
// WithFacetsOnly sets the corresponding parameter name and returns the struct.
22832276
func (r *SearchTestsOptionalParameters) WithFacetsOnly(facetsOnly bool) *SearchTestsOptionalParameters {
22842277
r.FacetsOnly = &facetsOnly
@@ -2304,7 +2297,7 @@ func (r *SearchTestsOptionalParameters) WithSort(sort string) *SearchTestsOption
23042297
}
23052298

23062299
// SearchTests Search Synthetic tests.
2307-
// Search for Synthetic tests and Test Suites.
2300+
// Search for Synthetic tests.
23082301
func (a *SyntheticsApi) SearchTests(ctx _context.Context, o ...SearchTestsOptionalParameters) (SyntheticsListTestsResponse, *_nethttp.Response, error) {
23092302
var (
23102303
localVarHTTPMethod = _nethttp.MethodGet
@@ -2336,9 +2329,6 @@ func (a *SyntheticsApi) SearchTests(ctx _context.Context, o ...SearchTestsOption
23362329
if optionalParams.IncludeFullConfig != nil {
23372330
localVarQueryParams.Add("include_full_config", datadog.ParameterToString(*optionalParams.IncludeFullConfig, ""))
23382331
}
2339-
if optionalParams.SearchSuites != nil {
2340-
localVarQueryParams.Add("search_suites", datadog.ParameterToString(*optionalParams.SearchSuites, ""))
2341-
}
23422332
if optionalParams.FacetsOnly != nil {
23432333
localVarQueryParams.Add("facets_only", datadog.ParameterToString(*optionalParams.FacetsOnly, ""))
23442334
}

examples/v1/synthetics/SearchTests_195957771.go

Lines changed: 0 additions & 29 deletions
This file was deleted.

tests/scenarios/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

0 commit comments

Comments
 (0)