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
4 changes: 2 additions & 2 deletions .generated-info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"spec_repo_commit": "bd643af",
"generated": "2025-07-22 16:42:29.313"
"spec_repo_commit": "04d09cb",
"generated": "2025-07-23 09:22:24.045"
}
6 changes: 6 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33827,6 +33827,12 @@ paths:
description: Search for Synthetic tests and Test Suites.
operationId: SearchTests
parameters:
- description: The search query.
in: query
name: text
required: false
schema:
type: string
- description: If true, include the full configuration for each test in the
response.
in: query
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-07-01T15:52:56.329Z
2025-07-22T14:56:49.377Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/v1/synthetics/SearchTests_195957771.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require "datadog_api_client"
api_instance = DatadogAPIClient::V1::SyntheticsAPI.new
opts = {
text: "tag:value",
include_full_config: true,
search_suites: true,
facets_only: true,
Expand Down
1 change: 1 addition & 0 deletions features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,7 @@
"body" => "SyntheticsMobileTest",
},
"v1.SearchTests" => {
"text" => "String",
"include_full_config" => "Boolean",
"search_suites" => "Boolean",
"facets_only" => "Boolean",
Expand Down
1 change: 1 addition & 0 deletions features/v1/synthetics.feature
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,7 @@ Feature: Synthetics
@team:DataDog/synthetics-ct
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
Expand Down
2 changes: 2 additions & 0 deletions lib/datadog_api_client/v1/api/synthetics_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1788,6 +1788,7 @@ def search_tests(opts = {})
# Search for Synthetic tests and Test Suites.
#
# @param opts [Hash] the optional parameters
# @option opts [String] :text The search query.
# @option opts [Boolean] :include_full_config If true, include the full configuration for each test in the response.
# @option opts [Boolean] :search_suites If true, returns suites instead of tests.
# @option opts [Boolean] :facets_only If true, return only facets instead of full test details.
Expand All @@ -1805,6 +1806,7 @@ def search_tests_with_http_info(opts = {})

# query parameters
query_params = opts[:query_params] || {}
query_params[:'text'] = opts[:'text'] if !opts[:'text'].nil?
query_params[:'include_full_config'] = opts[:'include_full_config'] if !opts[:'include_full_config'].nil?
query_params[:'search_suites'] = opts[:'search_suites'] if !opts[:'search_suites'].nil?
query_params[:'facets_only'] = opts[:'facets_only'] if !opts[:'facets_only'].nil?
Expand Down
Loading