Skip to content

Commit fe6ccdd

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix failing tests in CI (#2498)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent a113f95 commit fe6ccdd

9 files changed

+19
-19
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:16.081111",
8-
"spec_repo_commit": "77064b00"
7+
"regenerated": "2024-05-20 18:10:24.268068",
8+
"spec_repo_commit": "6340fda5"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-05-17 20:25:16.099343",
13-
"spec_repo_commit": "77064b00"
12+
"regenerated": "2024-05-20 18:10:24.286542",
13+
"spec_repo_commit": "6340fda5"
1414
}
1515
}
1616
}

examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func main() {
1818
Attributes: datadogV2.SecurityMonitoringSuppressionCreateAttributes{
1919
Description: datadog.PtrString("This rule suppresses low-severity signals in staging environments."),
2020
Enabled: true,
21-
ExpirationDate: datadog.PtrInt64(1703187336000),
21+
ExpirationDate: datadog.PtrInt64(1638443471000),
2222
Name: "Example-Security-Monitoring",
2323
RuleQuery: "type:log_detection source:cloudtrail",
2424
SuppressionQuery: datadog.PtrString("env:staging status:low"),

examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func main() {
1818
Attributes: datadogV2.SecurityMonitoringSuppressionCreateAttributes{
1919
Description: datadog.PtrString("This rule suppresses low-severity signals in staging environments."),
2020
Enabled: true,
21-
ExpirationDate: datadog.PtrInt64(1703187336000),
21+
ExpirationDate: datadog.PtrInt64(1638443471000),
2222
Name: "Example-Security-Monitoring",
2323
RuleQuery: "type:log_detection source:cloudtrail",
2424
DataExclusionQuery: datadog.PtrString("account_id:12345"),
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-05-10T16:34:35.792Z
1+
2024-05-20T17:07:03.155Z

tests/scenarios/cassettes/TestScenarios/v2/Feature_Security_Monitoring/Scenario_Create_a_suppression_rule_returns_OK_response.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
33
body: |
4-
{"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"}}
4+
{"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"}}
55
form: {}
66
headers:
77
Accept:
@@ -12,9 +12,9 @@ interactions:
1212
method: POST
1313
url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions
1414
response:
15-
body: '{"data":{"id":"lzo-uda-vpz","attributes":{"name":"Test-Create_a_suppression_rule_returns_OK_response-1715358875","enabled":true,"description":"This
15+
body: '{"data":{"id":"8qj-mmz-zym","attributes":{"name":"Test-Create_a_suppression_rule_returns_OK_response-1716224823","enabled":true,"description":"This
1616
rule suppresses low-severity signals in staging environments.","rule_query":"type:log_detection
17-
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":"[email protected]"},"updater":{"name":null,"handle":"[email protected]"}},"type":"suppressions"}}
17+
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":"[email protected]"},"updater":{"name":null,"handle":"[email protected]"}},"type":"suppressions"}}
1818
1919
'
2020
code: 200
@@ -31,7 +31,7 @@ interactions:
3131
- '*/*'
3232
id: 1
3333
method: DELETE
34-
url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/lzo-uda-vpz
34+
url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/8qj-mmz-zym
3535
response:
3636
body: ''
3737
code: 204
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-05-10T16:34:36.621Z
1+
2024-05-20T17:07:12.131Z

tests/scenarios/cassettes/TestScenarios/v2/Feature_Security_Monitoring/Scenario_Create_a_suppression_rule_with_an_exclusion_query_returns_OK_response.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
33
body: |
4-
{"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"}}
4+
{"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"}}
55
form: {}
66
headers:
77
Accept:
@@ -12,9 +12,9 @@ interactions:
1212
method: POST
1313
url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions
1414
response:
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
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
1616
rule suppresses low-severity signals in staging environments.","rule_query":"type:log_detection
17-
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":"[email protected]"},"updater":{"name":null,"handle":"[email protected]"}},"type":"suppressions"}}
17+
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":"[email protected]"},"updater":{"name":null,"handle":"[email protected]"}},"type":"suppressions"}}
1818
1919
'
2020
code: 200
@@ -31,7 +31,7 @@ interactions:
3131
- '*/*'
3232
id: 1
3333
method: DELETE
34-
url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/ted-g18-ebn
34+
url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/i9m-nqb-ets
3535
response:
3636
body: ''
3737
code: 204

tests/scenarios/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

tests/scenarios/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)