Skip to content

Commit 10fe454

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

File tree

6 files changed

+3
-66
lines changed

6 files changed

+3
-66
lines changed

.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

LICENSE-3rdparty.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ retry-policies,https://github.com/TrueLayer/retry-policies,MIT OR Apache-2.0,Luc
116116
rustc-demangle,https://github.com/rust-lang/rustc-demangle,MIT OR Apache-2.0,Alex Crichton <alex@alexcrichton.com>
117117
rustix,https://github.com/bytecodealliance/rustix,Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT,"Dan Gohman <dev@sunfishcode.online>, Jakub Konka <kubkon@jakubkonka.com>"
118118
rustls-pemfile,https://github.com/rustls/pemfile,Apache-2.0 OR ISC OR MIT,The rustls-pemfile Authors
119-
rustversion,https://github.com/dtolnay/rustversion,MIT OR Apache-2.0,David Tolnay <dtolnay@gmail.com>
120119
ryu,https://github.com/dtolnay/ryu,Apache-2.0 OR BSL-1.0,David Tolnay <dtolnay@gmail.com>
121120
schannel,https://github.com/steffengy/schannel-rs,MIT,"Steven Fackler <sfackler@gmail.com>, Steffen Butzer <steffen.butzer@outlook.com>"
122121
schemars,https://github.com/GREsau/schemars,MIT,Graham Esau <gesau@hotmail.co.uk>

examples/v1_synthetics_SearchTests_195957771.rs

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

src/datadogV1/api/api_synthetics.rs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ pub struct SearchTestsOptionalParams {
103103
pub text: Option<String>,
104104
/// If true, include the full configuration for each test in the response.
105105
pub include_full_config: Option<bool>,
106-
/// If true, returns suites instead of tests.
107-
pub search_suites: Option<bool>,
108106
/// If true, return only facets instead of full test details.
109107
pub facets_only: Option<bool>,
110108
/// The offset from which to start returning results.
@@ -126,11 +124,6 @@ impl SearchTestsOptionalParams {
126124
self.include_full_config = Some(value);
127125
self
128126
}
129-
/// If true, returns suites instead of tests.
130-
pub fn search_suites(mut self, value: bool) -> Self {
131-
self.search_suites = Some(value);
132-
self
133-
}
134127
/// If true, return only facets instead of full test details.
135128
pub fn facets_only(mut self, value: bool) -> Self {
136129
self.facets_only = Some(value);
@@ -3801,7 +3794,7 @@ impl SyntheticsAPI {
38013794
}
38023795
}
38033796

3804-
/// Search for Synthetic tests and Test Suites.
3797+
/// Search for Synthetic tests.
38053798
pub async fn search_tests(
38063799
&self,
38073800
params: SearchTestsOptionalParams,
@@ -3823,7 +3816,7 @@ impl SyntheticsAPI {
38233816
}
38243817
}
38253818

3826-
/// Search for Synthetic tests and Test Suites.
3819+
/// Search for Synthetic tests.
38273820
pub async fn search_tests_with_http_info(
38283821
&self,
38293822
params: SearchTestsOptionalParams,
@@ -3837,7 +3830,6 @@ impl SyntheticsAPI {
38373830
// unbox and build optional parameters
38383831
let text = params.text;
38393832
let include_full_config = params.include_full_config;
3840-
let search_suites = params.search_suites;
38413833
let facets_only = params.facets_only;
38423834
let start = params.start;
38433835
let count = params.count;
@@ -3860,10 +3852,6 @@ impl SyntheticsAPI {
38603852
local_req_builder =
38613853
local_req_builder.query(&[("include_full_config", &local_query_param.to_string())]);
38623854
};
3863-
if let Some(ref local_query_param) = search_suites {
3864-
local_req_builder =
3865-
local_req_builder.query(&[("search_suites", &local_query_param.to_string())]);
3866-
};
38673855
if let Some(ref local_query_param) = facets_only {
38683856
local_req_builder =
38693857
local_req_builder.query(&[("facets_only", &local_query_param.to_string())]);

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

tests/scenarios/function_mappings.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10618,9 +10618,6 @@ fn test_v1_search_tests(world: &mut DatadogWorld, _parameters: &HashMap<String,
1061810618
let include_full_config = _parameters
1061910619
.get("include_full_config")
1062010620
.and_then(|param| Some(serde_json::from_value(param.clone()).unwrap()));
10621-
let search_suites = _parameters
10622-
.get("search_suites")
10623-
.and_then(|param| Some(serde_json::from_value(param.clone()).unwrap()));
1062410621
let facets_only = _parameters
1062510622
.get("facets_only")
1062610623
.and_then(|param| Some(serde_json::from_value(param.clone()).unwrap()));
@@ -10636,7 +10633,6 @@ fn test_v1_search_tests(world: &mut DatadogWorld, _parameters: &HashMap<String,
1063610633
let mut params = datadogV1::api_synthetics::SearchTestsOptionalParams::default();
1063710634
params.text = text;
1063810635
params.include_full_config = include_full_config;
10639-
params.search_suites = search_suites;
1064010636
params.facets_only = facets_only;
1064110637
params.start = start;
1064210638
params.count = count;

0 commit comments

Comments
 (0)