@@ -264,21 +264,21 @@ Feature: Security Monitoring
264264 @generated @skip @team:DataDog/k9-cloud-security-platform
265265 Scenario : Create a suppression rule returns "Bad Request" response
266266 Given new "CreateSecurityMonitoringSuppression" request
267- 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, "expiration_date" : 1703187336000, "name" : "Custom suppression" , "rule_query" : "type:log_detection source:cloudtrail" , "suppression_query" : "env:staging status:low" }, "type" : "suppressions" }}
267+ 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, "expiration_date" : 1703187336000, "name" : "Custom suppression" , "rule_query" : "type:log_detection source:cloudtrail" , "start_date" : 1703187336000, " suppression_query" : "env:staging status:low" }, "type" : "suppressions" }}
268268 When the request is sent
269269 Then the response status is 400 Bad Request
270270
271271 @generated @skip @team:DataDog/k9-cloud-security-platform
272272 Scenario : Create a suppression rule returns "Conflict" response
273273 Given new "CreateSecurityMonitoringSuppression" request
274- 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, "expiration_date" : 1703187336000, "name" : "Custom suppression" , "rule_query" : "type:log_detection source:cloudtrail" , "suppression_query" : "env:staging status:low" }, "type" : "suppressions" }}
274+ 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, "expiration_date" : 1703187336000, "name" : "Custom suppression" , "rule_query" : "type:log_detection source:cloudtrail" , "start_date" : 1703187336000, " suppression_query" : "env:staging status:low" }, "type" : "suppressions" }}
275275 When the request is sent
276276 Then the response status is 409 Conflict
277277
278278 @skip-validation @team:DataDog/k9-cloud-security-platform
279279 Scenario : Create a suppression rule returns "OK" response
280280 Given new "CreateSecurityMonitoringSuppression" request
281- 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" }}
281+ And body with value {"data" : {"attributes" : {"description" : "This rule suppresses low-severity signals in staging environments." , "enabled" : true, "start_date" : {{ timestamp( 'now + 10d' ) }}000, " expiration_date" : {{ timestamp('now + 21d' ) }}000, "name" : "{{ unique }}" , "rule_query" : "type:log_detection source:cloudtrail" , "suppression_query" : "env:staging status:low" }, "type" : "suppressions" }}
282282 When the request is sent
283283 Then the response status is 200 OK
284284 And the response "data.type" is equal to "suppressions"
@@ -288,7 +288,7 @@ Feature: Security Monitoring
288288 @skip-validation @team:DataDog/k9-cloud-security-platform
289289 Scenario : Create a suppression rule with an exclusion query returns "OK" response
290290 Given new "CreateSecurityMonitoringSuppression" request
291- 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" }}
291+ And body with value {"data" : {"attributes" : {"description" : "This rule suppresses low-severity signals in staging environments." , "enabled" : true, "start_date" : {{ timestamp( 'now + 10d' ) }}000, " expiration_date" : {{ timestamp('now + 21d' ) }}000, "name" : "{{ unique }}" , "rule_query" : "type:log_detection source:cloudtrail" , "data_exclusion_query" : "account_id:12345" }, "type" : "suppressions" }}
292292 When the request is sent
293293 Then the response status is 200 OK
294294 And the response "data.type" is equal to "suppressions"
@@ -815,23 +815,23 @@ Feature: Security Monitoring
815815 Scenario : Update a suppression rule returns "Bad Request" response
816816 Given new "UpdateSecurityMonitoringSuppression" request
817817 And request contains "suppression_id" parameter from "REPLACE.ME"
818- 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, "expiration_date" : 1703187336000, "name" : "Custom suppression" , "rule_query" : "type:log_detection source:cloudtrail" , "suppression_query" : "env:staging status:low" }, "type" : "suppressions" }}
818+ 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, "expiration_date" : 1703187336000, "name" : "Custom suppression" , "rule_query" : "type:log_detection source:cloudtrail" , "start_date" : 1703187336000, " suppression_query" : "env:staging status:low" }, "type" : "suppressions" }}
819819 When the request is sent
820820 Then the response status is 400 Bad Request
821821
822822 @generated @skip @team:DataDog/k9-cloud-security-platform
823823 Scenario : Update a suppression rule returns "Concurrent Modification" response
824824 Given new "UpdateSecurityMonitoringSuppression" request
825825 And request contains "suppression_id" parameter from "REPLACE.ME"
826- 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, "expiration_date" : 1703187336000, "name" : "Custom suppression" , "rule_query" : "type:log_detection source:cloudtrail" , "suppression_query" : "env:staging status:low" }, "type" : "suppressions" }}
826+ 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, "expiration_date" : 1703187336000, "name" : "Custom suppression" , "rule_query" : "type:log_detection source:cloudtrail" , "start_date" : 1703187336000, " suppression_query" : "env:staging status:low" }, "type" : "suppressions" }}
827827 When the request is sent
828828 Then the response status is 409 Concurrent Modification
829829
830830 @generated @skip @team:DataDog/k9-cloud-security-platform
831831 Scenario : Update a suppression rule returns "Not Found" response
832832 Given new "UpdateSecurityMonitoringSuppression" request
833833 And request contains "suppression_id" parameter from "REPLACE.ME"
834- 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, "expiration_date" : 1703187336000, "name" : "Custom suppression" , "rule_query" : "type:log_detection source:cloudtrail" , "suppression_query" : "env:staging status:low" }, "type" : "suppressions" }}
834+ 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, "expiration_date" : 1703187336000, "name" : "Custom suppression" , "rule_query" : "type:log_detection source:cloudtrail" , "start_date" : 1703187336000, " suppression_query" : "env:staging status:low" }, "type" : "suppressions" }}
835835 When the request is sent
836836 Then the response status is 404 Not Found
837837
0 commit comments