Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add limit
  • Loading branch information
BrunoQuaresma committed Sep 16, 2022
commit 897f2894cef3a9e773f08b956a0c65309677da13
6 changes: 5 additions & 1 deletion coderd/audit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ func TestAuditLogsFilter(t *testing.T) {
require.NoError(t, err)
// Create one log with "Delete"
err = client.CreateTestAuditLog(ctx, codersdk.CreateTestAuditLogRequest{
Action: codersdk.AuditActionDelete,
Action: codersdk.AuditActionDelete,
ResourceType: codersdk.ResourceTypeUser,
})
require.NoError(t, err)

Expand All @@ -78,6 +79,9 @@ func TestAuditLogsFilter(t *testing.T) {
// Verify the number of delete logs
actionDeleteLogs, err := client.AuditLogs(ctx, codersdk.AuditLogsRequest{
SearchQuery: "action:delete",
Pagination: codersdk.Pagination{
Limit: 25,
},
})

require.NoError(t, err)
Expand Down