mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add audit log filter for autostarted and autostopped workspace builds (#5830)
* added query * fixed query * added example to dropdown * added documentation * added test * fixed formatting * fixed format
This commit is contained in:
@@ -179,6 +179,11 @@ func TestAuditLogsFilter(t *testing.T) {
|
||||
SearchQuery: "resource_type:workspace_build action:stop",
|
||||
ExpectedResult: 1,
|
||||
},
|
||||
{
|
||||
Name: "FilterOnWorkspaceBuildStartByInitiator",
|
||||
SearchQuery: "resource_type:workspace_build action:start build_reason:start",
|
||||
ExpectedResult: 1,
|
||||
},
|
||||
}
|
||||
|
||||
for _, testCase := range testCases {
|
||||
|
||||
Reference in New Issue
Block a user