Skip to content

Commit 8a9f236

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 3574b706 of spec repo
1 parent d2c5cbe commit 8a9f236

File tree

5 files changed

+47
-4
lines changed

5 files changed

+47
-4
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-18 21:00:59.110329",
8-
"spec_repo_commit": "37070fd4"
7+
"regenerated": "2024-10-21 20:09:35.072094",
8+
"spec_repo_commit": "3574b706"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-18 21:00:59.128824",
13-
"spec_repo_commit": "37070fd4"
12+
"regenerated": "2024-10-21 20:09:35.091572",
13+
"spec_repo_commit": "3574b706"
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

0 commit comments

Comments
 (0)