Skip to content

Commit f3fb532

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix failing tests in CI (#2291)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 5089de1 commit f3fb532

9 files changed

+21
-21
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:15.848970",
8-
"spec_repo_commit": "77064b00"
7+
"regenerated": "2024-05-20 18:10:16.201309",
8+
"spec_repo_commit": "6340fda5"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-05-17 20:25:15.866742",
13-
"spec_repo_commit": "77064b00"
12+
"regenerated": "2024-05-20 18:10:16.220015",
13+
"spec_repo_commit": "6340fda5"
1414
}
1515
}
1616
}

examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static void main(String[] args) {
2424
"This rule suppresses low-severity signals in staging"
2525
+ " environments.")
2626
.enabled(true)
27-
.expirationDate(1703187336000L)
27+
.expirationDate(1638443471000L)
2828
.name("Example-Security-Monitoring")
2929
.ruleQuery("type:log_detection source:cloudtrail")
3030
.suppressionQuery("env:staging status:low"))

examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static void main(String[] args) {
2424
"This rule suppresses low-severity signals in staging"
2525
+ " environments.")
2626
.enabled(true)
27-
.expirationDate(1703187336000L)
27+
.expirationDate(1638443471000L)
2828
.name("Example-Security-Monitoring")
2929
.ruleQuery("type:log_detection source:cloudtrail")
3030
.dataExclusionQuery("account_id:12345"))
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-05-10T16:34:35.792Z
1+
2024-05-20T17:07:03.155Z

src/test/resources/cassettes/features/v2/Create_a_suppression_rule_returns_OK_response.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"httpRequest": {
44
"body": {
55
"type": "JSON",
6-
"json": "{\"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\"}}"
6+
"json": "{\"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\"}}"
77
},
88
"headers": {},
99
"method": "POST",
@@ -12,7 +12,7 @@
1212
"secure": true
1313
},
1414
"httpResponse": {
15-
"body": "{\"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",
15+
"body": "{\"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",
1616
"headers": {
1717
"Content-Type": [
1818
"application/json"
@@ -27,13 +27,13 @@
2727
"timeToLive": {
2828
"unlimited": true
2929
},
30-
"id": "9c96081c-2012-7baf-3f28-1bec0d5d7ad4"
30+
"id": "27a1f916-3c5e-7ca4-58af-a4dfedcf653a"
3131
},
3232
{
3333
"httpRequest": {
3434
"headers": {},
3535
"method": "DELETE",
36-
"path": "/api/v2/security_monitoring/configuration/suppressions/lzo-uda-vpz",
36+
"path": "/api/v2/security_monitoring/configuration/suppressions/8qj-mmz-zym",
3737
"keepAlive": false,
3838
"secure": true
3939
},
@@ -52,6 +52,6 @@
5252
"timeToLive": {
5353
"unlimited": true
5454
},
55-
"id": "97c1f919-798f-3021-dc56-2eaae1eb5dd6"
55+
"id": "d9f9b01e-0568-0cee-8935-b3a7c3962d93"
5656
}
5757
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-05-10T16:34:36.621Z
1+
2024-05-20T17:07:12.131Z

src/test/resources/cassettes/features/v2/Create_a_suppression_rule_with_an_exclusion_query_returns_OK_response.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"httpRequest": {
44
"body": {
55
"type": "JSON",
6-
"json": "{\"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\"}}"
6+
"json": "{\"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\"}}"
77
},
88
"headers": {},
99
"method": "POST",
@@ -12,7 +12,7 @@
1212
"secure": true
1313
},
1414
"httpResponse": {
15-
"body": "{\"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",
15+
"body": "{\"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",
1616
"headers": {
1717
"Content-Type": [
1818
"application/json"
@@ -27,13 +27,13 @@
2727
"timeToLive": {
2828
"unlimited": true
2929
},
30-
"id": "fb714a19-bad8-74d1-e479-5f572c6840e1"
30+
"id": "297112e6-457f-d059-13f3-dea87bc09b1f"
3131
},
3232
{
3333
"httpRequest": {
3434
"headers": {},
3535
"method": "DELETE",
36-
"path": "/api/v2/security_monitoring/configuration/suppressions/ted-g18-ebn",
36+
"path": "/api/v2/security_monitoring/configuration/suppressions/i9m-nqb-ets",
3737
"keepAlive": false,
3838
"secure": true
3939
},
@@ -52,6 +52,6 @@
5252
"timeToLive": {
5353
"unlimited": true
5454
},
55-
"id": "1c15c4e6-a7a5-efed-6118-8e7a711bf9a2"
55+
"id": "634e6e91-f885-024b-6ea2-4fe399feb9ff"
5656
}
5757
]

src/test/resources/com/datadog/api/client/v1/api/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

src/test/resources/com/datadog/api/client/v2/api/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)