@@ -298,22 +298,22 @@ Feature: Security Monitoring
298
298
Scenario : Update an existing rule returns "Bad Request" response
299
299
Given new "UpdateSecurityMonitoringRule" request
300
300
And request contains "rule_id" parameter from "REPLACE.ME"
301
- 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}
301
+ 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" : [], "metrics" : [] }], "tags" : [], "version" : 1}
302
302
When the request is sent
303
303
Then the response status is 400 Bad Request
304
304
305
305
@generated @skip @team:DataDog/k9-cloud-security-platform
306
306
Scenario : Update an existing rule returns "Not Found" response
307
307
Given new "UpdateSecurityMonitoringRule" request
308
308
And request contains "rule_id" parameter from "REPLACE.ME"
309
- 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}
309
+ 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" : [], "metrics" : [] }], "tags" : [], "version" : 1}
310
310
When the request is sent
311
311
Then the response status is 404 Not Found
312
312
313
313
@generated @skip @team:DataDog/k9-cloud-security-platform
314
314
Scenario : Update an existing rule returns "OK" response
315
315
Given new "UpdateSecurityMonitoringRule" request
316
316
And request contains "rule_id" parameter from "REPLACE.ME"
317
- 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}
317
+ 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" : [], "metrics" : [] }], "tags" : [], "version" : 1}
318
318
When the request is sent
319
319
Then the response status is 200 OK
0 commit comments