Skip to content

Commit e680014

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 603ea76a of spec repo
1 parent 5f977dd commit e680014

File tree

6 files changed

+49
-5
lines changed

6 files changed

+49
-5
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-10-21 20:59:42.794353",
8-
"spec_repo_commit": "9ac9609b"
7+
"regenerated": "2024-10-22 18:12:42.657663",
8+
"spec_repo_commit": "603ea76a"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-21 20:59:42.814827",
13-
"spec_repo_commit": "9ac9609b"
12+
"regenerated": "2024-10-22 18:12:42.677376",
13+
"spec_repo_commit": "603ea76a"
1414
}
1515
}
1616
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2024-10-21T20:05:58.636Z

cassettes/features/v2/security_monitoring/List-findings-with-detection-type-query-param-returns-OK-response.yml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# List findings with detection_type query param returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_findings".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
8+
opts = {
9+
filter_vulnerability_type: [
10+
FindingVulnerabilityType::MISCONFIGURATION,
11+
FindingVulnerabilityType::ATTACK_PATH,
12+
],
13+
}
14+
p api_instance.list_findings(opts)

features/v2/security_monitoring.feature

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,14 @@ Feature: Security Monitoring
485485
When the request with pagination is sent
486486
Then the response status is 200 OK
487487

488+
@team:DataDog/cloud-security-posture-management
489+
Scenario: List findings with detection_type query param returns "OK" response
490+
Given operation "ListFindings" enabled
491+
And new "ListFindings" request
492+
And request contains "filter[vulnerability_type]" parameter with value ["misconfiguration", "attack_path"]
493+
When the request is sent
494+
Then the response status is 200 OK
495+
488496
@generated @skip @team:DataDog/k9-cloud-security-platform
489497
Scenario: List rules returns "Bad Request" response
490498
Given new "ListSecurityMonitoringRules" request

lib/datadog_api_client/api_client.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ def build_request(http_method, path, opts = {})
194194
:http_proxyaddr => @config.http_proxyaddr,
195195
:http_proxyport => @config.http_proxyport,
196196
:http_proxyuser => @config.http_proxyuser,
197-
:http_proxypass => @config.http_proxypass
197+
:http_proxypass => @config.http_proxypass,
198+
:query_string_normalizer => HTTParty::Request::NON_RAILS_QUERY_STRING_NORMALIZER
198199
}
199200

200201
req_opts[:pem] = File.read(@config.cert_file) if @config.cert_file

0 commit comments

Comments
 (0)