Skip to content

Commit af6cf20

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Fix failing tests in CI (#1974)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 2493331 commit af6cf20

9 files changed

+19
-19
lines changed

.apigentools-info

+4-4
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:23.098750",
8-
"spec_repo_commit": "77064b00"
7+
"regenerated": "2024-05-20 18:10:22.416230",
8+
"spec_repo_commit": "6340fda5"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-05-17 20:25:23.116461",
13-
"spec_repo_commit": "77064b00"
12+
"regenerated": "2024-05-20 18:10:22.438911",
13+
"spec_repo_commit": "6340fda5"
1414
}
1515
}
1616
}

examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
attributes=SecurityMonitoringSuppressionCreateAttributes(
2121
description="This rule suppresses low-severity signals in staging environments.",
2222
enabled=True,
23-
expiration_date=1703187336000,
23+
expiration_date=1638443471000,
2424
name="Example-Security-Monitoring",
2525
rule_query="type:log_detection source:cloudtrail",
2626
suppression_query="env:staging status:low",

examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
attributes=SecurityMonitoringSuppressionCreateAttributes(
2121
description="This rule suppresses low-severity signals in staging environments.",
2222
enabled=True,
23-
expiration_date=1703187336000,
23+
expiration_date=1638443471000,
2424
name="Example-Security-Monitoring",
2525
rule_query="type:log_detection source:cloudtrail",
2626
data_exclusion_query="account_id:12345",

tests/v1/features/synthetics.feature

+1-1
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
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/v2/cassettes/test_scenarios/test_create_a_suppression_rule_returns_ok_response.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
33
body: '{"data":{"attributes":{"description":"This rule suppresses low-severity
4-
signals in staging environments.","enabled":true,"expiration_date":1703187336000,"name":"Test-Create_a_suppression_rule_returns_OK_response-1715358875","rule_query":"type:log_detection
4+
signals in staging environments.","enabled":true,"expiration_date":1718039223000,"name":"Test-Create_a_suppression_rule_returns_OK_response-1716224823","rule_query":"type:log_detection
55
source:cloudtrail","suppression_query":"env:staging status:low"},"type":"suppressions"}}'
66
headers:
77
accept:
@@ -12,9 +12,9 @@ interactions:
1212
uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions
1313
response:
1414
body:
15-
string: '{"data":{"id":"lzo-uda-vpz","attributes":{"name":"Test-Create_a_suppression_rule_returns_OK_response-1715358875","enabled":true,"description":"This
15+
string: '{"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
headers:
@@ -29,7 +29,7 @@ interactions:
2929
accept:
3030
- '*/*'
3131
method: DELETE
32-
uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/lzo-uda-vpz
32+
uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/8qj-mmz-zym
3333
response:
3434
body:
3535
string: ''
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/v2/cassettes/test_scenarios/test_create_a_suppression_rule_with_an_exclusion_query_returns_ok_response.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
33
body: '{"data":{"attributes":{"data_exclusion_query":"account_id:12345","description":"This
4-
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
4+
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
55
source:cloudtrail"},"type":"suppressions"}}'
66
headers:
77
accept:
@@ -12,9 +12,9 @@ interactions:
1212
uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions
1313
response:
1414
body:
15-
string: '{"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+
string: '{"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
headers:
@@ -29,7 +29,7 @@ interactions:
2929
accept:
3030
- '*/*'
3131
method: DELETE
32-
uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/ted-g18-ebn
32+
uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/i9m-nqb-ets
3333
response:
3434
body:
3535
string: ''

tests/v2/features/security_monitoring.feature

+2-2
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)