@@ -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"
@@ -867,23 +867,23 @@ Feature: Security Monitoring
867867 Scenario : Update a suppression rule returns "Bad Request" response
868868 Given new "UpdateSecurityMonitoringSuppression" request
869869 And request contains "suppression_id" parameter from "REPLACE.ME"
870- 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" }}
870+ 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" }}
871871 When the request is sent
872872 Then the response status is 400 Bad Request
873873
874874 @generated @skip @team:DataDog/k9-cloud-security-platform
875875 Scenario : Update a suppression rule returns "Concurrent Modification" response
876876 Given new "UpdateSecurityMonitoringSuppression" request
877877 And request contains "suppression_id" parameter from "REPLACE.ME"
878- 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" }}
878+ 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" }}
879879 When the request is sent
880880 Then the response status is 409 Concurrent Modification
881881
882882 @generated @skip @team:DataDog/k9-cloud-security-platform
883883 Scenario : Update a suppression rule returns "Not Found" response
884884 Given new "UpdateSecurityMonitoringSuppression" request
885885 And request contains "suppression_id" parameter from "REPLACE.ME"
886- 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" }}
886+ 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" }}
887887 When the request is sent
888888 Then the response status is 404 Not Found
889889
0 commit comments