Skip to content
Open
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
12 changes: 6 additions & 6 deletions tests/v2/features/audit.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,41 +7,41 @@ Feature: Audit
And a valid "appKeyAuth" key in the system
And an instance of "Audit" API

@generated @skip @team:DataDog/logs-app
@generated @skip @team:DataDog/audit-trail
Scenario: Get a list of Audit Logs events returns "Bad Request" response
Given new "ListAuditLogs" request
When the request is sent
Then the response status is 400 Bad Request

@team:DataDog/logs-app
@team:DataDog/audit-trail
Scenario: Get a list of Audit Logs events returns "OK" response
Given new "ListAuditLogs" request
When the request is sent
Then the response status is 200 OK

@replay-only @skip-validation @team:DataDog/logs-app @with-pagination
@replay-only @skip-validation @team:DataDog/audit-trail @with-pagination
Scenario: Get a list of Audit Logs events returns "OK" response with pagination
Given new "ListAuditLogs" request
And request contains "page[limit]" parameter with value 2
When the request with pagination is sent
Then the response status is 200 OK
And the response has 3 items

@generated @skip @team:DataDog/logs-app
@generated @skip @team:DataDog/audit-trail
Scenario: Search Audit Logs events returns "Bad Request" response
Given new "SearchAuditLogs" request
And body with value {"filter": {"from": "now-15m", "query": "@type:session AND @session.type:user", "to": "now"}, "options": {"timezone": "GMT"}, "page": {"cursor": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "limit": 25}, "sort": "timestamp"}
When the request is sent
Then the response status is 400 Bad Request

@team:DataDog/logs-app
@team:DataDog/audit-trail
Scenario: Search Audit Logs events returns "OK" response
Given new "SearchAuditLogs" request
And body with value {"filter": {"from": "now-15m", "query": "@type:session AND @session.type:user", "to": "now"}, "options": {"time_offset": 0, "timezone": "GMT"}, "page": {"limit": 25}, "sort": "timestamp"}
When the request is sent
Then the response status is 200 OK

@replay-only @skip-validation @team:DataDog/logs-app @with-pagination
@replay-only @skip-validation @team:DataDog/audit-trail @with-pagination
Scenario: Search Audit Logs events returns "OK" response with pagination
Given new "SearchAuditLogs" request
And body with value {"filter": {"from": "now-15m", "to": "now"}, "options": {"timezone": "GMT"}, "page": {"limit": 2}, "sort": "timestamp"}
Expand Down
Loading