@@ -883,7 +883,7 @@ Feature: Security Monitoring
883883 @team:DataDog/cloud-security-posture-management
884884 Scenario : Create a new signal-based notification rule returns "Successfully created the notification rule." response
885885 Given new "CreateSignalNotificationRule" request
886- And body with value {"data" : {"attributes" : {"enabled" : true, "name" : "Rule 1 " , "selectors" : {"query" : "(source:production_service OR env:prod)" , "rule_types" : ["misconfiguration" , "attack_path" ], "severities" : ["critical" ], "trigger_source" : "security_findings" }, "targets" : ["@john.doe@email.com" ], "time_aggregation" : 86400}, "type" : "notification_rules" }}
886+ And body with value {"data" : {"attributes" : {"enabled" : true, "name" : "Rule {{ uuid }} " , "selectors" : {"query" : "(source:production_service OR env:prod)" , "rule_types" : ["misconfiguration" , "attack_path" ], "severities" : ["critical" ], "trigger_source" : "security_findings" }, "targets" : ["@john.doe@email.com" ], "time_aggregation" : 86400}, "type" : "notification_rules" }}
887887 When the request is sent
888888 Then the response status is 201 Successfully created the notification rule.
889889
@@ -897,7 +897,7 @@ Feature: Security Monitoring
897897 @team:DataDog/cloud-security-posture-management
898898 Scenario : Create a new vulnerability-based notification rule returns "Successfully created the notification rule." response
899899 Given new "CreateVulnerabilityNotificationRule" request
900- And body with value {"data" : {"attributes" : {"enabled" : true, "name" : "Rule 1 " , "selectors" : {"query" : "(source:production_service OR env:prod)" , "rule_types" : ["misconfiguration" , "attack_path" ], "severities" : ["critical" ], "trigger_source" : "security_findings" }, "targets" : ["@john.doe@email.com" ], "time_aggregation" : 86400}, "type" : "notification_rules" }}
900+ And body with value {"data" : {"attributes" : {"enabled" : true, "name" : "Rule {{ uuid }} " , "selectors" : {"query" : "(source:production_service OR env:prod)" , "rule_types" : ["misconfiguration" , "attack_path" ], "severities" : ["critical" ], "trigger_source" : "security_findings" }, "targets" : ["@john.doe@email.com" ], "time_aggregation" : 86400}, "type" : "notification_rules" }}
901901 When the request is sent
902902 Then the response status is 201 Successfully created the notification rule.
903903
@@ -2810,7 +2810,7 @@ Feature: Security Monitoring
28102810 Given new "PatchSignalNotificationRule" request
28112811 And there is a valid "valid_signal_notification_rule" in the system
28122812 And request contains "id" parameter from "valid_signal_notification_rule.data.id"
2813- And body with value {"data" : {"attributes" : {"enabled" : true, "name" : "Rule 1 " , "selectors" : {"query" : "(source:production_service OR env:prod)" , "rule_types" : ["misconfiguration" , "attack_path" ], "severities" : ["critical" ], "trigger_source" : "security_findings" }, "targets" : ["@john.doe@email.com" ], "time_aggregation" : 86400, "version" : 1}, "id" : "aaa-bbb-ccc" , "type" : "notification_rules" }}
2813+ And body with value {"data" : {"attributes" : {"enabled" : true, "name" : "Rule {{ uuid }} " , "selectors" : {"query" : "(source:production_service OR env:prod)" , "rule_types" : ["misconfiguration" , "attack_path" ], "severities" : ["critical" ], "trigger_source" : "security_findings" }, "targets" : ["@john.doe@email.com" ], "time_aggregation" : 86400, "version" : 1}, "id" : "aaa-bbb-ccc" , "type" : "notification_rules" }}
28142814 When the request is sent
28152815 Then the response status is 200 Notification rule successfully patched.
28162816
@@ -2844,7 +2844,7 @@ Feature: Security Monitoring
28442844 Given new "PatchVulnerabilityNotificationRule" request
28452845 And there is a valid "valid_vulnerability_notification_rule" in the system
28462846 And request contains "id" parameter from "valid_vulnerability_notification_rule.data.id"
2847- And body with value {"data" : {"attributes" : {"enabled" : true, "name" : "Rule 1 " , "selectors" : {"query" : "(source:production_service OR env:prod)" , "rule_types" : ["misconfiguration" , "attack_path" ], "severities" : ["critical" ], "trigger_source" : "security_findings" }, "targets" : ["@john.doe@email.com" ], "time_aggregation" : 86400, "version" : 1}, "id" : "aaa-bbb-ccc" , "type" : "notification_rules" }}
2847+ And body with value {"data" : {"attributes" : {"enabled" : true, "name" : "Rule {{ uuid }} " , "selectors" : {"query" : "(source:production_service OR env:prod)" , "rule_types" : ["misconfiguration" , "attack_path" ], "severities" : ["critical" ], "trigger_source" : "security_findings" }, "targets" : ["@john.doe@email.com" ], "time_aggregation" : 86400, "version" : 1}, "id" : "aaa-bbb-ccc" , "type" : "notification_rules" }}
28482848 When the request is sent
28492849 Then the response status is 200 Notification rule successfully patched.
28502850
0 commit comments