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
Copy file name to clipboardExpand all lines: features/v2/security_monitoring.feature
+72Lines changed: 72 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,30 @@ Feature: Security Monitoring
41
41
When the request is sent
42
42
Then the response status is 200 OK
43
43
44
+
@generated@skip@team:DataDog/k9-investigation
45
+
Scenario: Assign or unassign security findings returns "Accepted" response
46
+
Given operation "UpdateFindingsAssignee" enabled
47
+
And new "UpdateFindingsAssignee" request
48
+
And body with value {"data": {"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0"}, "id": "00000000-0000-0000-0000-000000000001", "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "assignee"}}
49
+
When the request is sent
50
+
Then the response status is 202 Accepted
51
+
52
+
@generated@skip@team:DataDog/k9-investigation
53
+
Scenario: Assign or unassign security findings returns "Bad Request" response
54
+
Given operation "UpdateFindingsAssignee" enabled
55
+
And new "UpdateFindingsAssignee" request
56
+
And body with value {"data": {"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0"}, "id": "00000000-0000-0000-0000-000000000001", "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "assignee"}}
57
+
When the request is sent
58
+
Then the response status is 400 Bad Request
59
+
60
+
@generated@skip@team:DataDog/k9-investigation
61
+
Scenario: Assign or unassign security findings returns "Not Found" response
62
+
Given operation "UpdateFindingsAssignee" enabled
63
+
And new "UpdateFindingsAssignee" request
64
+
And body with value {"data": {"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0"}, "id": "00000000-0000-0000-0000-000000000001", "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "assignee"}}
65
+
When the request is sent
66
+
Then the response status is 404 Not Found
67
+
44
68
@team:DataDog/k9-investigation
45
69
Scenario: Attach security finding to a Jira issue returns "OK" response
46
70
Given new "AttachJiraIssue" request
@@ -87,6 +111,30 @@ Feature: Security Monitoring
87
111
And the response "data.attributes.insights" has item with field "resource_id" with value "MTNjN2ZmYWMzMDIxYmU1ZDFiZDRjNWUwN2I1NzVmY2F-YTA3MzllMTUzNWM3NmEyZjdiNzEzOWM5YmViZTMzOGM="
88
112
And the response "data.attributes.jira_issue.result.issue_url" is equal to "https://datadoghq-sandbox-538.atlassian.net/browse/CSMSEC-105476"
89
113
114
+
@generated@skip@team:DataDog/k9-investigation
115
+
Scenario: Attach security findings to a ServiceNow ticket returns "Bad Request" response
116
+
Given operation "AttachServiceNowTicket" enabled
117
+
And new "AttachServiceNowTicket" request
118
+
And body with value {"data": {"attributes": {"servicenow_ticket_url": "https://example.service-now.com/now/nav/ui/classic/params/target/incident.do?sys_id=abcdef0123456789abcdef0123456789"}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}}
119
+
When the request is sent
120
+
Then the response status is 400 Bad Request
121
+
122
+
@generated@skip@team:DataDog/k9-investigation
123
+
Scenario: Attach security findings to a ServiceNow ticket returns "Not Found" response
124
+
Given operation "AttachServiceNowTicket" enabled
125
+
And new "AttachServiceNowTicket" request
126
+
And body with value {"data": {"attributes": {"servicenow_ticket_url": "https://example.service-now.com/now/nav/ui/classic/params/target/incident.do?sys_id=abcdef0123456789abcdef0123456789"}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}}
127
+
When the request is sent
128
+
Then the response status is 404 Not Found
129
+
130
+
@generated@skip@team:DataDog/k9-investigation
131
+
Scenario: Attach security findings to a ServiceNow ticket returns "OK" response
132
+
Given operation "AttachServiceNowTicket" enabled
133
+
And new "AttachServiceNowTicket" request
134
+
And body with value {"data": {"attributes": {"servicenow_ticket_url": "https://example.service-now.com/now/nav/ui/classic/params/target/incident.do?sys_id=abcdef0123456789abcdef0123456789"}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}}
135
+
When the request is sent
136
+
Then the response status is 200 OK
137
+
90
138
@team:DataDog/k9-investigation
91
139
Scenario: Attach security findings to a case returns "Bad Request" response
And body with value {"data": [{"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0", "description": "A description of the ServiceNow ticket.", "priority": "NOT_DEFINED", "title": "A title for the ServiceNow ticket."}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}]}
538
+
When the request is sent
539
+
Then the response status is 400 Bad Request
540
+
541
+
@generated@skip@team:DataDog/k9-investigation
542
+
Scenario: Create ServiceNow tickets for security findings returns "Created" response
543
+
Given operation "CreateServiceNowTickets" enabled
544
+
And new "CreateServiceNowTickets" request
545
+
And body with value {"data": [{"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0", "description": "A description of the ServiceNow ticket.", "priority": "NOT_DEFINED", "title": "A title for the ServiceNow ticket."}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}]}
And body with value {"data": [{"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0", "description": "A description of the ServiceNow ticket.", "priority": "NOT_DEFINED", "title": "A title for the ServiceNow ticket."}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}]}
554
+
When the request is sent
555
+
Then the response status is 404 Not Found
556
+
485
557
@skip-validation@team:DataDog/k9-cloud-siem
486
558
Scenario: Create a cloud_configuration rule returns "OK" response
0 commit comments