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
1 change: 0 additions & 1 deletion LICENSE-3rdparty.csv
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ retry-policies,https://github.com/TrueLayer/retry-policies,MIT OR Apache-2.0,Luc
rustc-demangle,https://github.com/rust-lang/rustc-demangle,MIT OR Apache-2.0,Alex Crichton <[email protected]>
rustix,https://github.com/bytecodealliance/rustix,Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT,"Dan Gohman <[email protected]>, Jakub Konka <[email protected]>"
rustls-pemfile,https://github.com/rustls/pemfile,Apache-2.0 OR ISC OR MIT,The rustls-pemfile Authors
rustversion,https://github.com/dtolnay/rustversion,MIT OR Apache-2.0,David Tolnay <[email protected]>
ryu,https://github.com/dtolnay/ryu,Apache-2.0 OR BSL-1.0,David Tolnay <[email protected]>
schannel,https://github.com/steffengy/schannel-rs,MIT,"Steven Fackler <[email protected]>, Steffen Butzer <[email protected]>"
schemars,https://github.com/GREsau/schemars,MIT,Graham Esau <[email protected]>
Expand Down
27 changes: 0 additions & 27 deletions examples/v1_synthetics_SearchTests_195957771.rs

This file was deleted.

16 changes: 2 additions & 14 deletions src/datadogV1/api/api_synthetics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ pub struct SearchTestsOptionalParams {
pub text: Option<String>,
/// If true, include the full configuration for each test in the response.
pub include_full_config: Option<bool>,
/// If true, returns suites instead of tests.
pub search_suites: Option<bool>,
/// If true, return only facets instead of full test details.
pub facets_only: Option<bool>,
/// The offset from which to start returning results.
Expand All @@ -126,11 +124,6 @@ impl SearchTestsOptionalParams {
self.include_full_config = Some(value);
self
}
/// If true, returns suites instead of tests.
pub fn search_suites(mut self, value: bool) -> Self {
self.search_suites = Some(value);
self
}
/// If true, return only facets instead of full test details.
pub fn facets_only(mut self, value: bool) -> Self {
self.facets_only = Some(value);
Expand Down Expand Up @@ -3801,7 +3794,7 @@ impl SyntheticsAPI {
}
}

/// Search for Synthetic tests and Test Suites.
/// Search for Synthetic tests.
pub async fn search_tests(
&self,
params: SearchTestsOptionalParams,
Expand All @@ -3823,7 +3816,7 @@ impl SyntheticsAPI {
}
}

/// Search for Synthetic tests and Test Suites.
/// Search for Synthetic tests.
pub async fn search_tests_with_http_info(
&self,
params: SearchTestsOptionalParams,
Expand All @@ -3837,7 +3830,6 @@ impl SyntheticsAPI {
// unbox and build optional parameters
let text = params.text;
let include_full_config = params.include_full_config;
let search_suites = params.search_suites;
let facets_only = params.facets_only;
let start = params.start;
let count = params.count;
Expand All @@ -3860,10 +3852,6 @@ impl SyntheticsAPI {
local_req_builder =
local_req_builder.query(&[("include_full_config", &local_query_param.to_string())]);
};
if let Some(ref local_query_param) = search_suites {
local_req_builder =
local_req_builder.query(&[("search_suites", &local_query_param.to_string())]);
};
if let Some(ref local_query_param) = facets_only {
local_req_builder =
local_req_builder.query(&[("facets_only", &local_query_param.to_string())]);
Expand Down
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
4 changes: 0 additions & 4 deletions tests/scenarios/function_mappings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10618,9 +10618,6 @@ fn test_v1_search_tests(world: &mut DatadogWorld, _parameters: &HashMap<String,
let include_full_config = _parameters
.get("include_full_config")
.and_then(|param| Some(serde_json::from_value(param.clone()).unwrap()));
let search_suites = _parameters
.get("search_suites")
.and_then(|param| Some(serde_json::from_value(param.clone()).unwrap()));
let facets_only = _parameters
.get("facets_only")
.and_then(|param| Some(serde_json::from_value(param.clone()).unwrap()));
Expand All @@ -10636,7 +10633,6 @@ fn test_v1_search_tests(world: &mut DatadogWorld, _parameters: &HashMap<String,
let mut params = datadogV1::api_synthetics::SearchTestsOptionalParams::default();
params.text = text;
params.include_full_config = include_full_config;
params.search_suites = search_suites;
params.facets_only = facets_only;
params.start = start;
params.count = count;
Expand Down