You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"text": "{\"errors\":[\"input_validation_error(Field 'data.attributes.rule_query' is invalid: field 'rule_query' is required)\",\"input_validation_error(Field 'data.attributes.name' is invalid: name cannot be empty)\"]}"
And body with value {"cases":[{"name":"","status":"info","notifications":[],"condition":"a > 0"}],"hasExtendedTitle":true,"isEnabled":true,"message":"My security monitoring rule","name":"My security monitoring rule","options":{"evaluationWindow":1800,"keepAlive":1800,"maxSignalDuration":1800,"detectionMethod":"threshold"},"queries":[{"query":"source:source_here","groupByFields":["@userIdentity.assumed_role"],"distinctFields":[],"aggregation":"count","name":""}],"tags":["env:prod","team:security"],"type":"log_detection"}
1390
1390
When the request is sent
1391
1391
Then the response status is 204 OK
1392
+
1393
+
@team:DataDog/k9-cloud-security-platform
1394
+
Scenario: Validate a suppression rule returns "Bad Request" response
1395
+
Given new "ValidateSecurityMonitoringSuppression" request
1396
+
And body with value {"data": {"attributes": {"data_exclusion_query": "not enough attributes"}, "type": "suppressions"}}
1397
+
When the request is sent
1398
+
Then the response status is 400 Bad Request
1399
+
1400
+
@team:DataDog/k9-cloud-security-platform
1401
+
Scenario: Validate a suppression rule returns "OK" response
1402
+
Given new "ValidateSecurityMonitoringSuppression" request
1403
+
And body with value {"data": {"attributes": {"data_exclusion_query": "source:cloudtrail account_id:12345", "description": "This rule suppresses low-severity signals in staging environments.", "enabled": true, "name": "Custom suppression", "rule_query": "type:log_detection source:cloudtrail"}, "type": "suppressions"}}
0 commit comments