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
+56Lines changed: 56 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,30 @@ Feature: Security Monitoring
25
25
When the request is sent
26
26
Then the response status is 404 Not Found
27
27
28
+
@generated@skip@team:DataDog/k9-investigation
29
+
Scenario: Assign or un-assign Jira issues to security findings returns "Accepted" response
30
+
Given operation "AssignIntegrationIssues" enabled
31
+
And new "AssignIntegrationIssues" request
32
+
And body with value {"data": {"attributes": {"action": "assign", "assignment": {"jira": {"https://jira.example.com/browse/SEC-123": ["MDBjMzdhYzgyNGZkZGJiZmY0OGNmYjNiMWQ2ODY0YmR-OTc0YjMzNjM1Y2UyODA2YTEyNWQxYmNkZjhmODllNzg="]}}, "type": "findings"}, "id": "some_id", "type": "issue_assignment"}}
33
+
When the request is sent
34
+
Then the response status is 202 Accepted
35
+
36
+
@generated@skip@team:DataDog/k9-investigation
37
+
Scenario: Assign or un-assign Jira issues to security findings returns "Bad Request" response
38
+
Given operation "AssignIntegrationIssues" enabled
39
+
And new "AssignIntegrationIssues" request
40
+
And body with value {"data": {"attributes": {"action": "assign", "assignment": {"jira": {"https://jira.example.com/browse/SEC-123": ["MDBjMzdhYzgyNGZkZGJiZmY0OGNmYjNiMWQ2ODY0YmR-OTc0YjMzNjM1Y2UyODA2YTEyNWQxYmNkZjhmODllNzg="]}}, "type": "findings"}, "id": "some_id", "type": "issue_assignment"}}
41
+
When the request is sent
42
+
Then the response status is 400 Bad Request
43
+
44
+
@generated@skip@team:DataDog/k9-investigation
45
+
Scenario: Assign or un-assign Jira issues to security findings returns "Not Found" response
46
+
Given operation "AssignIntegrationIssues" enabled
47
+
And new "AssignIntegrationIssues" request
48
+
And body with value {"data": {"attributes": {"action": "assign", "assignment": {"jira": {"https://jira.example.com/browse/SEC-123": ["MDBjMzdhYzgyNGZkZGJiZmY0OGNmYjNiMWQ2ODY0YmR-OTc0YjMzNjM1Y2UyODA2YTEyNWQxYmNkZjhmODllNzg="]}}, "type": "findings"}, "id": "some_id", "type": "issue_assignment"}}
49
+
When the request is sent
50
+
Then the response status is 404 Not Found
51
+
28
52
@team:DataDog/k9-investigation
29
53
Scenario: Attach security finding to a Jira issue returns "OK" response
30
54
Given new "AttachJiraIssue" request
@@ -330,6 +354,14 @@ Feature: Security Monitoring
330
354
And the response "data[0].attributes.insights[0].type" is equal to "SECURITY_FINDING"
331
355
And the response "data[0].attributes.jira_issue.status" is equal to "COMPLETED"
332
356
357
+
@generated@skip@team:DataDog/k9-investigation
358
+
Scenario: Create Jira issues for security findings returns "Accepted" response
0 commit comments