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:43:53.927"
"spec_repo_commit": "04d09cb",
"generated": "2025-07-23 09:23:45.770"
}
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
1 change: 1 addition & 0 deletions examples/v1/synthetics/SearchTests_195957771.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public static void main(String[] args) {
SyntheticsListTestsResponse result =
apiInstance.searchTests(
new SearchTestsOptionalParameters()
.text("tag:value")
.includeFullConfig(true)
.searchSuites(true)
.facetsOnly(true)
Expand Down
16 changes: 16 additions & 0 deletions src/main/java/com/datadog/api/client/v1/api/SyntheticsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -3918,13 +3918,25 @@ public CompletableFuture<ApiResponse<SyntheticsTestDetails>> patchTestWithHttpIn

/** Manage optional parameters to searchTests. */
public static class SearchTestsOptionalParameters {
private String text;
private Boolean includeFullConfig;
private Boolean searchSuites;
private Boolean facetsOnly;
private Long start;
private Long count;
private String sort;

/**
* Set text.
*
* @param text The search query. (optional)
* @return SearchTestsOptionalParameters
*/
public SearchTestsOptionalParameters text(String text) {
this.text = text;
return this;
}

/**
* Set includeFullConfig.
*
Expand Down Expand Up @@ -4071,6 +4083,7 @@ public CompletableFuture<SyntheticsListTestsResponse> searchTestsAsync(
public ApiResponse<SyntheticsListTestsResponse> searchTestsWithHttpInfo(
SearchTestsOptionalParameters parameters) throws ApiException {
Object localVarPostBody = null;
String text = parameters.text;
Boolean includeFullConfig = parameters.includeFullConfig;
Boolean searchSuites = parameters.searchSuites;
Boolean facetsOnly = parameters.facetsOnly;
Expand All @@ -4083,6 +4096,7 @@ public ApiResponse<SyntheticsListTestsResponse> searchTestsWithHttpInfo(
List<Pair> localVarQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();

localVarQueryParams.addAll(apiClient.parameterToPairs("", "text", text));
localVarQueryParams.addAll(
apiClient.parameterToPairs("", "include_full_config", includeFullConfig));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "search_suites", searchSuites));
Expand Down Expand Up @@ -4122,6 +4136,7 @@ public ApiResponse<SyntheticsListTestsResponse> searchTestsWithHttpInfo(
public CompletableFuture<ApiResponse<SyntheticsListTestsResponse>> searchTestsWithHttpInfoAsync(
SearchTestsOptionalParameters parameters) {
Object localVarPostBody = null;
String text = parameters.text;
Boolean includeFullConfig = parameters.includeFullConfig;
Boolean searchSuites = parameters.searchSuites;
Boolean facetsOnly = parameters.facetsOnly;
Expand All @@ -4134,6 +4149,7 @@ public CompletableFuture<ApiResponse<SyntheticsListTestsResponse>> searchTestsWi
List<Pair> localVarQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();

localVarQueryParams.addAll(apiClient.parameterToPairs("", "text", text));
localVarQueryParams.addAll(
apiClient.parameterToPairs("", "include_full_config", includeFullConfig));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "search_suites", searchSuites));
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"method": "GET",
"path": "/api/v1/synthetics/tests/search",
"queryStringParameters": {
"text": [
"tag:value"
],
"include_full_config": [
"true"
],
Expand Down Expand Up @@ -43,6 +46,6 @@
"timeToLive": {
"unlimited": true
},
"id": "1e11963d-2717-30b4-9395-3ca218c6dc16"
"id": "681b7431-11c5-f9b9-4b35-628f267b43d1"
}
]
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