Skip to content

Commit b436664

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a26b725 of spec repo
1 parent 219117e commit b436664

File tree

5 files changed

+3
-65
lines changed

5 files changed

+3
-65
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34051,7 +34051,7 @@ paths:
3405134051
- synthetics_write
3405234052
/api/v1/synthetics/tests/search:
3405334053
get:
34054-
description: Search for Synthetic tests and Test Suites.
34054+
description: Search for Synthetic tests.
3405534055
operationId: SearchTests
3405634056
parameters:
3405734057
- description: The search query.
@@ -34067,12 +34067,6 @@ paths:
3406734067
required: false
3406834068
schema:
3406934069
type: boolean
34070-
- description: If true, returns suites instead of tests.
34071-
in: query
34072-
name: search_suites
34073-
required: false
34074-
schema:
34075-
type: boolean
3407634070
- description: If true, return only facets instead of full test details.
3407734071
in: query
3407834072
name: facets_only

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
@@ -10610,9 +10610,6 @@ fn test_v1_search_tests(world: &mut DatadogWorld, _parameters: &HashMap<String,
1061010610
let include_full_config = _parameters
1061110611
.get("include_full_config")
1061210612
.and_then(|param| Some(serde_json::from_value(param.clone()).unwrap()));
10613-
let search_suites = _parameters
10614-
.get("search_suites")
10615-
.and_then(|param| Some(serde_json::from_value(param.clone()).unwrap()));
1061610613
let facets_only = _parameters
1061710614
.get("facets_only")
1061810615
.and_then(|param| Some(serde_json::from_value(param.clone()).unwrap()));
@@ -10628,7 +10625,6 @@ fn test_v1_search_tests(world: &mut DatadogWorld, _parameters: &HashMap<String,
1062810625
let mut params = datadogV1::api_synthetics::SearchTestsOptionalParams::default();
1062910626
params.text = text;
1063010627
params.include_full_config = include_full_config;
10631-
params.search_suites = search_suites;
1063210628
params.facets_only = facets_only;
1063310629
params.start = start;
1063410630
params.count = count;

0 commit comments

Comments
 (0)