You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OR env:prod)","rule_types":["sast_vulnerability","secret_vulnerability"],"severities":["critical"],"trigger_source":"security_findings"},"targets":["@john.doe@email.com"],"time_aggregation":86400},"type":"notification_rules"}}'
Copy file name to clipboardExpand all lines: tests/v2/features/security_monitoring.feature
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -591,6 +591,13 @@ Feature: Security Monitoring
591
591
When the request is sent
592
592
Then the response status is 201 Successfully created the notification rule.
593
593
594
+
@team:DataDog/cloud-security-posture-management
595
+
Scenario: Create a new vulnerability-based notification rule with sast and secret rule types returns "Successfully created the notification rule." response
596
+
Given new "CreateVulnerabilityNotificationRule" request
597
+
And body with value {"data": {"attributes": {"enabled": true, "name": "{{ unique }}", "selectors": {"query": "(source:production_service OR env:prod)", "rule_types": ["sast_vulnerability", "secret_vulnerability"], "severities": ["critical"], "trigger_source": "security_findings"}, "targets": ["@john.doe@email.com"], "time_aggregation": 86400}, "type": "notification_rules"}}
598
+
When the request is sent
599
+
Then the response status is 201 Successfully created the notification rule.
600
+
594
601
@team:DataDog/k9-cloud-siem
595
602
Scenario: Create a scheduled detection rule returns "OK" response
0 commit comments