Skip to content

Commit 295d412

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Fix failing tests in CI (#1624)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 20ab8e4 commit 295d412

File tree

9 files changed

+31
-31
lines changed

9 files changed

+31
-31
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-05-17 20:25:17.165272",
8-
"spec_repo_commit": "77064b00"
7+
"regenerated": "2024-05-20 18:10:24.317437",
8+
"spec_repo_commit": "6340fda5"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-05-17 20:25:17.183286",
13-
"spec_repo_commit": "77064b00"
12+
"regenerated": "2024-05-20 18:10:24.336343",
13+
"spec_repo_commit": "6340fda5"
1414
}
1515
}
1616
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-05-10T16:34:35.792Z"
1+
"2024-05-20T17:07:03.155Z"

cassettes/v2/Security-Monitoring_1187227211/Create-a-suppression-rule-returns-OK-response_1135731355/recording.har

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "9c96081c20127baf3f281bec0d5d7ad4",
11+
"_id": "27a1f9163c5e7ca458afa4dfedcf653a",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
@@ -26,13 +26,13 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 616,
29+
"headersSize": 614,
3030
"httpVersion": "HTTP/1.1",
3131
"method": "POST",
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"description\":\"This rule suppresses low-severity signals in staging environments.\",\"enabled\":true,\"expiration_date\":1703187336000,\"name\":\"Test-Create_a_suppression_rule_returns_OK_response-1715358875\",\"rule_query\":\"type:log_detection source:cloudtrail\",\"suppression_query\":\"env:staging status:low\"},\"type\":\"suppressions\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"This rule suppresses low-severity signals in staging environments.\",\"enabled\":true,\"expiration_date\":1718039223000,\"name\":\"Test-Create_a_suppression_rule_returns_OK_response-1716224823\",\"rule_query\":\"type:log_detection source:cloudtrail\",\"suppression_query\":\"env:staging status:low\"},\"type\":\"suppressions\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions"
@@ -42,7 +42,7 @@
4242
"content": {
4343
"mimeType": "application/json",
4444
"size": 569,
45-
"text": "{\"data\":{\"id\":\"lzo-uda-vpz\",\"attributes\":{\"name\":\"Test-Create_a_suppression_rule_returns_OK_response-1715358875\",\"enabled\":true,\"description\":\"This rule suppresses low-severity signals in staging environments.\",\"rule_query\":\"type:log_detection source:cloudtrail\",\"suppression_query\":\"env:staging status:low\",\"data_exclusion_query\":\"\",\"expiration_date\":1703187336000,\"version\":1,\"creation_date\":1715358876178,\"update_date\":1715358876178,\"creator\":{\"name\":null,\"handle\":\"frog@datadoghq.com\"},\"updater\":{\"name\":null,\"handle\":\"frog@datadoghq.com\"}},\"type\":\"suppressions\"}}\n"
45+
"text": "{\"data\":{\"id\":\"8qj-mmz-zym\",\"attributes\":{\"name\":\"Test-Create_a_suppression_rule_returns_OK_response-1716224823\",\"enabled\":true,\"description\":\"This rule suppresses low-severity signals in staging environments.\",\"rule_query\":\"type:log_detection source:cloudtrail\",\"suppression_query\":\"env:staging status:low\",\"data_exclusion_query\":\"\",\"expiration_date\":1718039223000,\"version\":1,\"creation_date\":1716224823374,\"update_date\":1716224823374,\"creator\":{\"name\":null,\"handle\":\"frog@datadoghq.com\"},\"updater\":{\"name\":null,\"handle\":\"frog@datadoghq.com\"}},\"type\":\"suppressions\"}}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2024-05-10T16:34:35.794Z",
61-
"time": 470
60+
"startedDateTime": "2024-05-20T17:07:03.163Z",
61+
"time": 200
6262
},
6363
{
64-
"_id": "97c1f919798f3021dc562eaae1eb5dd6",
64+
"_id": "d9f9b01e05680cee8935b3a7c3962d93",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -74,11 +74,11 @@
7474
"value": "*/*"
7575
}
7676
],
77-
"headersSize": 564,
77+
"headersSize": 562,
7878
"httpVersion": "HTTP/1.1",
7979
"method": "DELETE",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/lzo-uda-vpz"
81+
"url": "https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/8qj-mmz-zym"
8282
},
8383
"response": {
8484
"bodySize": 0,
@@ -99,8 +99,8 @@
9999
"status": 204,
100100
"statusText": "No Content"
101101
},
102-
"startedDateTime": "2024-05-10T16:34:36.268Z",
103-
"time": 350
102+
"startedDateTime": "2024-05-20T17:07:03.375Z",
103+
"time": 165
104104
}
105105
],
106106
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-05-10T16:34:36.621Z"
1+
"2024-05-20T17:07:12.131Z"

cassettes/v2/Security-Monitoring_1187227211/Create-a-suppression-rule-with-an-exclusion-query-returns-OK-response_3158025700/recording.har

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "fb714a19bad874d1e4795f572c6840e1",
11+
"_id": "297112e6457fd05913f3dea87bc09b1f",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
@@ -32,7 +32,7 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"data_exclusion_query\":\"account_id:12345\",\"description\":\"This rule suppresses low-severity signals in staging environments.\",\"enabled\":true,\"expiration_date\":1703187336000,\"name\":\"Test-Create_a_suppression_rule_with_an_exclusion_query_returns_OK_response-1715358876\",\"rule_query\":\"type:log_detection source:cloudtrail\"},\"type\":\"suppressions\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"data_exclusion_query\":\"account_id:12345\",\"description\":\"This rule suppresses low-severity signals in staging environments.\",\"enabled\":true,\"expiration_date\":1718039232000,\"name\":\"Test-Create_a_suppression_rule_with_an_exclusion_query_returns_OK_response-1716224832\",\"rule_query\":\"type:log_detection source:cloudtrail\"},\"type\":\"suppressions\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions"
@@ -42,7 +42,7 @@
4242
"content": {
4343
"mimeType": "application/json",
4444
"size": 587,
45-
"text": "{\"data\":{\"id\":\"ted-g18-ebn\",\"attributes\":{\"name\":\"Test-Create_a_suppression_rule_with_an_exclusion_query_returns_OK_response-1715358876\",\"enabled\":true,\"description\":\"This rule suppresses low-severity signals in staging environments.\",\"rule_query\":\"type:log_detection source:cloudtrail\",\"suppression_query\":\"\",\"data_exclusion_query\":\"account_id:12345\",\"expiration_date\":1703187336000,\"version\":1,\"creation_date\":1715358876924,\"update_date\":1715358876924,\"creator\":{\"name\":null,\"handle\":\"frog@datadoghq.com\"},\"updater\":{\"name\":null,\"handle\":\"frog@datadoghq.com\"}},\"type\":\"suppressions\"}}\n"
45+
"text": "{\"data\":{\"id\":\"i9m-nqb-ets\",\"attributes\":{\"name\":\"Test-Create_a_suppression_rule_with_an_exclusion_query_returns_OK_response-1716224832\",\"enabled\":true,\"description\":\"This rule suppresses low-severity signals in staging environments.\",\"rule_query\":\"type:log_detection source:cloudtrail\",\"suppression_query\":\"\",\"data_exclusion_query\":\"account_id:12345\",\"expiration_date\":1718039232000,\"version\":1,\"creation_date\":1716224832354,\"update_date\":1716224832355,\"creator\":{\"name\":null,\"handle\":\"frog@datadoghq.com\"},\"updater\":{\"name\":null,\"handle\":\"frog@datadoghq.com\"}},\"type\":\"suppressions\"}}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2024-05-10T16:34:36.623Z",
61-
"time": 390
60+
"startedDateTime": "2024-05-20T17:07:12.139Z",
61+
"time": 208
6262
},
6363
{
64-
"_id": "1c15c4e6a7a5efed61188e7a711bf9a2",
64+
"_id": "634e6e91f885024b6ea24fe399feb9ff",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -78,7 +78,7 @@
7878
"httpVersion": "HTTP/1.1",
7979
"method": "DELETE",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/ted-g18-ebn"
81+
"url": "https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/i9m-nqb-ets"
8282
},
8383
"response": {
8484
"bodySize": 0,
@@ -99,8 +99,8 @@
9999
"status": 204,
100100
"statusText": "No Content"
101101
},
102-
"startedDateTime": "2024-05-10T16:34:37.020Z",
103-
"time": 570
102+
"startedDateTime": "2024-05-20T17:07:12.360Z",
103+
"time": 169
104104
}
105105
],
106106
"pages": [],

examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const params: v2.SecurityMonitoringApiCreateSecurityMonitoringSuppressionRequest
1515
description:
1616
"This rule suppresses low-severity signals in staging environments.",
1717
enabled: true,
18-
expirationDate: 1703187336000,
18+
expirationDate: 1638443471000,
1919
name: "Example-Security-Monitoring",
2020
ruleQuery: "type:log_detection source:cloudtrail",
2121
suppressionQuery: "env:staging status:low",

examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const params: v2.SecurityMonitoringApiCreateSecurityMonitoringSuppressionRequest
1515
description:
1616
"This rule suppresses low-severity signals in staging environments.",
1717
enabled: true,
18-
expirationDate: 1703187336000,
18+
expirationDate: 1638443471000,
1919
name: "Example-Security-Monitoring",
2020
ruleQuery: "type:log_detection source:cloudtrail",
2121
dataExclusionQuery: "account_id:12345",

features/v1/synthetics.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Feature: Synthetics
100100
When the request is sent
101101
Then the response status is 200 OK
102102

103-
@team:DataDog/synthetics-app
103+
@replay-only @team:DataDog/synthetics-app
104104
Scenario: Create a private location returns "OK" response
105105
Given there is a valid "role" in the system
106106
And new "CreatePrivateLocation" request

features/v2/security_monitoring.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Feature: Security Monitoring
174174
@skip-validation @team:DataDog/k9-cloud-security-platform
175175
Scenario: Create a suppression rule returns "OK" response
176176
Given new "CreateSecurityMonitoringSuppression" request
177-
And body with value {"data": {"attributes": {"description": "This rule suppresses low-severity signals in staging environments.", "enabled": true, "expiration_date": 1703187336000, "name": "{{ unique }}", "rule_query": "type:log_detection source:cloudtrail", "suppression_query": "env:staging status:low"}, "type": "suppressions"}}
177+
And body with value {"data": {"attributes": {"description": "This rule suppresses low-severity signals in staging environments.", "enabled": true, "expiration_date": {{ timestamp('now + 21d') }}000, "name": "{{ unique }}", "rule_query": "type:log_detection source:cloudtrail", "suppression_query": "env:staging status:low"}, "type": "suppressions"}}
178178
When the request is sent
179179
Then the response status is 200 OK
180180
And the response "data.type" is equal to "suppressions"
@@ -184,7 +184,7 @@ Feature: Security Monitoring
184184
@skip-validation @team:DataDog/k9-cloud-security-platform
185185
Scenario: Create a suppression rule with an exclusion query returns "OK" response
186186
Given new "CreateSecurityMonitoringSuppression" request
187-
And body with value {"data": {"attributes": {"description": "This rule suppresses low-severity signals in staging environments.", "enabled": true, "expiration_date": 1703187336000, "name": "{{ unique }}", "rule_query": "type:log_detection source:cloudtrail", "data_exclusion_query": "account_id:12345"}, "type": "suppressions"}}
187+
And body with value {"data": {"attributes": {"description": "This rule suppresses low-severity signals in staging environments.", "enabled": true, "expiration_date": {{ timestamp('now + 21d') }}000, "name": "{{ unique }}", "rule_query": "type:log_detection source:cloudtrail", "data_exclusion_query": "account_id:12345"}, "type": "suppressions"}}
188188
When the request is sent
189189
Then the response status is 200 OK
190190
And the response "data.type" is equal to "suppressions"

0 commit comments

Comments
 (0)