@@ -226,22 +226,22 @@ Feature: Security Monitoring
226
226
Scenario : Update an existing rule returns "Bad Request" response
227
227
Given new "UpdateSecurityMonitoringRule" request
228
228
And request contains "rule_id" parameter from "REPLACE.ME"
229
- And body with value {"cases" : [{"notifications" : [], "status" : "critical" }], "filters" : [{"action" : "require" }], "hasExtendedTitle" : true, "options" : {"detectionMethod" : "threshold" , "evaluationWindow" : 0, "hardcodedEvaluatorType" : "log4shell" , "impossibleTravelOptions" : {"baselineUserLocations" : true}, "keepAlive" : 0, "maxSignalDuration" : 0, "newValueOptions" : {"forgetAfter" : 1, "learningDuration" : 0, "learningMethod" : "duration" , "learningThreshold" : 0}}, "queries" : [{"aggregation" : "count" , "distinctFields" : [], "groupByFields" : []}], "tags" : [], "version" : 1}
229
+ And body with value {"cases" : [{"notifications" : [], "status" : "critical" }], "filters" : [{"action" : "require" }], "hasExtendedTitle" : true, "options" : {"decreaseCriticalityBasedOnEnv" : false, " detectionMethod" : "threshold" , "evaluationWindow" : 0, "hardcodedEvaluatorType" : "log4shell" , "impossibleTravelOptions" : {"baselineUserLocations" : true}, "keepAlive" : 0, "maxSignalDuration" : 0, "newValueOptions" : {"forgetAfter" : 1, "learningDuration" : 0, "learningMethod" : "duration" , "learningThreshold" : 0}}, "queries" : [{"aggregation" : "count" , "distinctFields" : [], "groupByFields" : []}], "tags" : [], "version" : 1}
230
230
When the request is sent
231
231
Then the response status is 400 Bad Request
232
232
233
233
@generated @skip @team:DataDog/k9-cloud-security-platform
234
234
Scenario : Update an existing rule returns "Not Found" response
235
235
Given new "UpdateSecurityMonitoringRule" request
236
236
And request contains "rule_id" parameter from "REPLACE.ME"
237
- And body with value {"cases" : [{"notifications" : [], "status" : "critical" }], "filters" : [{"action" : "require" }], "hasExtendedTitle" : true, "options" : {"detectionMethod" : "threshold" , "evaluationWindow" : 0, "hardcodedEvaluatorType" : "log4shell" , "impossibleTravelOptions" : {"baselineUserLocations" : true}, "keepAlive" : 0, "maxSignalDuration" : 0, "newValueOptions" : {"forgetAfter" : 1, "learningDuration" : 0, "learningMethod" : "duration" , "learningThreshold" : 0}}, "queries" : [{"aggregation" : "count" , "distinctFields" : [], "groupByFields" : []}], "tags" : [], "version" : 1}
237
+ And body with value {"cases" : [{"notifications" : [], "status" : "critical" }], "filters" : [{"action" : "require" }], "hasExtendedTitle" : true, "options" : {"decreaseCriticalityBasedOnEnv" : false, " detectionMethod" : "threshold" , "evaluationWindow" : 0, "hardcodedEvaluatorType" : "log4shell" , "impossibleTravelOptions" : {"baselineUserLocations" : true}, "keepAlive" : 0, "maxSignalDuration" : 0, "newValueOptions" : {"forgetAfter" : 1, "learningDuration" : 0, "learningMethod" : "duration" , "learningThreshold" : 0}}, "queries" : [{"aggregation" : "count" , "distinctFields" : [], "groupByFields" : []}], "tags" : [], "version" : 1}
238
238
When the request is sent
239
239
Then the response status is 404 Not Found
240
240
241
241
@generated @skip @team:DataDog/k9-cloud-security-platform
242
242
Scenario : Update an existing rule returns "OK" response
243
243
Given new "UpdateSecurityMonitoringRule" request
244
244
And request contains "rule_id" parameter from "REPLACE.ME"
245
- And body with value {"cases" : [{"notifications" : [], "status" : "critical" }], "filters" : [{"action" : "require" }], "hasExtendedTitle" : true, "options" : {"detectionMethod" : "threshold" , "evaluationWindow" : 0, "hardcodedEvaluatorType" : "log4shell" , "impossibleTravelOptions" : {"baselineUserLocations" : true}, "keepAlive" : 0, "maxSignalDuration" : 0, "newValueOptions" : {"forgetAfter" : 1, "learningDuration" : 0, "learningMethod" : "duration" , "learningThreshold" : 0}}, "queries" : [{"aggregation" : "count" , "distinctFields" : [], "groupByFields" : []}], "tags" : [], "version" : 1}
245
+ And body with value {"cases" : [{"notifications" : [], "status" : "critical" }], "filters" : [{"action" : "require" }], "hasExtendedTitle" : true, "options" : {"decreaseCriticalityBasedOnEnv" : false, " detectionMethod" : "threshold" , "evaluationWindow" : 0, "hardcodedEvaluatorType" : "log4shell" , "impossibleTravelOptions" : {"baselineUserLocations" : true}, "keepAlive" : 0, "maxSignalDuration" : 0, "newValueOptions" : {"forgetAfter" : 1, "learningDuration" : 0, "learningMethod" : "duration" , "learningThreshold" : 0}}, "queries" : [{"aggregation" : "count" , "distinctFields" : [], "groupByFields" : []}], "tags" : [], "version" : 1}
246
246
When the request is sent
247
247
Then the response status is 200 OK
0 commit comments