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
5 changes: 0 additions & 5 deletions .github/workflows/reusable-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ on:
jobs:
examples:
runs-on: ubuntu-latest
if: >
(github.event.pull_request.draft == false &&
!contains(github.event.pull_request.labels.*.name, 'ci/skip') &&
!contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/')) ||
github.event_name == 'schedule'
steps:
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ on:
required: false

concurrency:
group: integration-${{ github.head_ref }}
group: integration-go-${{ inputs.target-branch || github.head_ref }}
cancel-in-progress: true

jobs:
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/reusable-pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ env:
jobs:
pre-commit:
runs-on: ubuntu-latest
if: >
(github.event.pull_request.draft == false &&
!contains(github.event.pull_request.labels.*.name, 'ci/skip') &&
!contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/')) ||
github.event_name == 'schedule'
steps:
- name: Get GitHub App token
id: get_token
Expand Down
12 changes: 1 addition & 11 deletions api/datadogV1/api_synthetics.go
Original file line number Diff line number Diff line change
Expand Up @@ -2248,7 +2248,6 @@ func (a *SyntheticsApi) PatchTest(ctx _context.Context, publicId string, body Sy
type SearchTestsOptionalParameters struct {
Text *string
IncludeFullConfig *bool
SearchSuites *bool
FacetsOnly *bool
Start *int64
Count *int64
Expand All @@ -2273,12 +2272,6 @@ func (r *SearchTestsOptionalParameters) WithIncludeFullConfig(includeFullConfig
return r
}

// WithSearchSuites sets the corresponding parameter name and returns the struct.
func (r *SearchTestsOptionalParameters) WithSearchSuites(searchSuites bool) *SearchTestsOptionalParameters {
r.SearchSuites = &searchSuites
return r
}

// WithFacetsOnly sets the corresponding parameter name and returns the struct.
func (r *SearchTestsOptionalParameters) WithFacetsOnly(facetsOnly bool) *SearchTestsOptionalParameters {
r.FacetsOnly = &facetsOnly
Expand All @@ -2304,7 +2297,7 @@ func (r *SearchTestsOptionalParameters) WithSort(sort string) *SearchTestsOption
}

// SearchTests Search Synthetic tests.
// Search for Synthetic tests and Test Suites.
// Search for Synthetic tests.
func (a *SyntheticsApi) SearchTests(ctx _context.Context, o ...SearchTestsOptionalParameters) (SyntheticsListTestsResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
Expand Down Expand Up @@ -2336,9 +2329,6 @@ func (a *SyntheticsApi) SearchTests(ctx _context.Context, o ...SearchTestsOption
if optionalParams.IncludeFullConfig != nil {
localVarQueryParams.Add("include_full_config", datadog.ParameterToString(*optionalParams.IncludeFullConfig, ""))
}
if optionalParams.SearchSuites != nil {
localVarQueryParams.Add("search_suites", datadog.ParameterToString(*optionalParams.SearchSuites, ""))
}
if optionalParams.FacetsOnly != nil {
localVarQueryParams.Add("facets_only", datadog.ParameterToString(*optionalParams.FacetsOnly, ""))
}
Expand Down
29 changes: 0 additions & 29 deletions examples/v1/synthetics/SearchTests_195957771.go

This file was deleted.

13 changes: 0 additions & 13 deletions tests/scenarios/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
Loading