Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions tests/v1/features/security_monitoring.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ Feature: Security Monitoring
And a valid "appKeyAuth" key in the system
And an instance of "SecurityMonitoring" API

@generated @skip @team:DataDog/k9-cloud-siem
@generated @skip @team:DataDog/cloud-siem
Scenario: Add a security signal to an incident returns "Bad Request" response
Given new "AddSecurityMonitoringSignalToIncident" request
And request contains "signal_id" parameter from "REPLACE.ME"
And body with value {"incident_id": 2066, "version": 0}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/k9-cloud-siem
@generated @skip @team:DataDog/cloud-siem
Scenario: Add a security signal to an incident returns "Not Found" response
Given new "AddSecurityMonitoringSignalToIncident" request
And request contains "signal_id" parameter from "REPLACE.ME"
And body with value {"incident_id": 2066, "version": 0}
When the request is sent
Then the response status is 404 Not Found

@replay-only @team:DataDog/k9-cloud-siem
@replay-only @team:DataDog/cloud-siem
Scenario: Add a security signal to an incident returns "OK" response
Given new "AddSecurityMonitoringSignalToIncident" request
And request contains "signal_id" parameter with value "AQAAAYDiB_Ol8PbzFAAAAABBWURpQl9PbEFBQU0yeXhGTG9ZV2JnQUE"
Expand All @@ -34,23 +34,23 @@ Feature: Security Monitoring
Then the response status is 200 OK
And the response "status" is equal to "done"

@generated @skip @team:DataDog/k9-cloud-siem
@generated @skip @team:DataDog/cloud-siem
Scenario: Change the triage state of a security signal returns "Bad Request" response
Given new "EditSecurityMonitoringSignalState" request
And request contains "signal_id" parameter from "REPLACE.ME"
And body with value {"archiveReason": "none", "state": "open", "version": 0}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/k9-cloud-siem
@generated @skip @team:DataDog/cloud-siem
Scenario: Change the triage state of a security signal returns "Not Found" response
Given new "EditSecurityMonitoringSignalState" request
And request contains "signal_id" parameter from "REPLACE.ME"
And body with value {"archiveReason": "none", "state": "open", "version": 0}
When the request is sent
Then the response status is 404 Not Found

@replay-only @team:DataDog/k9-cloud-siem
@replay-only @team:DataDog/cloud-siem
Scenario: Change the triage state of a security signal returns "OK" response
Given new "EditSecurityMonitoringSignalState" request
And request contains "signal_id" parameter with value "AQAAAYDiB_Ol8PbzFAAAAABBWURpQl9PbEFBQU0yeXhGTG9ZV2JnQUE"
Expand All @@ -59,23 +59,23 @@ Feature: Security Monitoring
Then the response status is 200 OK
And the response "status" is equal to "done"

@generated @skip @team:DataDog/k9-cloud-siem
@generated @skip @team:DataDog/cloud-siem
Scenario: Modify the triage assignee of a security signal returns "Bad Request" response
Given new "EditSecurityMonitoringSignalAssignee" request
And request contains "signal_id" parameter from "REPLACE.ME"
And body with value {"assignee": "773b045d-ccf8-4808-bd3b-955ef6a8c940", "version": 0}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/k9-cloud-siem
@generated @skip @team:DataDog/cloud-siem
Scenario: Modify the triage assignee of a security signal returns "Not Found" response
Given new "EditSecurityMonitoringSignalAssignee" request
And request contains "signal_id" parameter from "REPLACE.ME"
And body with value {"assignee": "773b045d-ccf8-4808-bd3b-955ef6a8c940", "version": 0}
When the request is sent
Then the response status is 404 Not Found

@replay-only @team:DataDog/k9-cloud-siem
@replay-only @team:DataDog/cloud-siem
Scenario: Modify the triage assignee of a security signal returns "OK" response
Given new "EditSecurityMonitoringSignalAssignee" request
And request contains "signal_id" parameter with value "AQAAAYDiB_Ol8PbzFAAAAABBWURpQl9PbEFBQU0yeXhGTG9ZV2JnQUE"
Expand Down
Loading
Loading